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 java.lang.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 java.lang.StringgetOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)Get the username of the owner of the given object.booleanhasOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)Does the given node have an owner?voidsetOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String userName)Set the owner of the object.voidtakeOwnership(org.alfresco.service.cmr.repository.NodeRef nodeRef)Set the owner of the object to be the current user.
-
-
-
Method Detail
-
getOwner
public java.lang.String getOwner(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String userName)Description copied from interface:OwnableServiceSet the owner of the object.- Specified by:
setOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRefuserName- String
-
takeOwnership
public void takeOwnership(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface:OwnableServiceDoes the given node have an owner?- Specified by:
hasOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRef- Returns:
- boolean
-
-