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