public interface OwnableService
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.
|
static final String NO_OWNER
@Auditable(parameters="nodeRef") String getOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRef@Auditable(parameters={"nodeRef","userName"}) void setOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef, String userName)
nodeRef
- NodeRefuserName
- String@Auditable(parameters="nodeRef") void takeOwnership(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRef@Auditable(parameters="nodeRef") boolean hasOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.