public class OwnableServiceNOOPImpl extends Object implements OwnableService
NO_OWNER
Constructor and Description |
---|
OwnableServiceNOOPImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the username of the owner of the given object.
|
boolean |
hasOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Does the given node have an owner?
|
void |
setOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String userName)
Set the owner of the object.
|
void |
takeOwnership(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Set the owner of the object to be the current user.
|
public String getOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
OwnableService
getOwner
in interface OwnableService
nodeRef
- NodeRefpublic void setOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef, String userName)
OwnableService
setOwner
in interface OwnableService
nodeRef
- NodeRefuserName
- Stringpublic void takeOwnership(org.alfresco.service.cmr.repository.NodeRef nodeRef)
OwnableService
takeOwnership
in interface OwnableService
nodeRef
- NodeRefpublic boolean hasOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
OwnableService
hasOwner
in interface OwnableService
nodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.