Package org.alfresco.repo.ownable.impl
Class OwnableServiceNOOPImpl
- java.lang.Object
-
- org.alfresco.repo.ownable.impl.OwnableServiceNOOPImpl
-
- All Implemented Interfaces:
OwnableService
public class OwnableServiceNOOPImpl extends Object implements OwnableService
A simple implementation that does not support ownership.- Author:
- Andy Hind
-
-
Field Summary
-
Fields inherited from interface org.alfresco.service.cmr.security.OwnableService
NO_OWNER
-
-
Constructor Summary
Constructors Constructor Description OwnableServiceNOOPImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOwner(NodeRef nodeRef)Get the username of the owner of the given object.booleanhasOwner(NodeRef nodeRef)Does the given node have an owner?voidsetOwner(NodeRef nodeRef, String userName)Set the owner of the object.voidtakeOwnership(NodeRef nodeRef)Set the owner of the object to be the current user.
-
-
-
Method Detail
-
getOwner
public String getOwner(NodeRef nodeRef)
Description copied from interface:OwnableServiceGet the username of the owner of the given object.- Specified by:
getOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRef- Returns:
- the username or null if the object has no owner
-
setOwner
public void setOwner(NodeRef nodeRef, String userName)
Description copied from interface:OwnableServiceSet the owner of the object.- Specified by:
setOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRefuserName- String
-
takeOwnership
public void takeOwnership(NodeRef nodeRef)
Description copied from interface:OwnableServiceSet the owner of the object to be the current user.- Specified by:
takeOwnershipin interfaceOwnableService- Parameters:
nodeRef- NodeRef
-
hasOwner
public boolean hasOwner(NodeRef nodeRef)
Description copied from interface:OwnableServiceDoes the given node have an owner?- Specified by:
hasOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRef- Returns:
- boolean
-
-