Package org.alfresco.repo.ownable.impl
Class OwnableServiceNOOPImpl
java.lang.Object
org.alfresco.repo.ownable.impl.OwnableServiceNOOPImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the username of the owner of the given object.booleanDoes the given node have an owner?voidSet the owner of the object.voidtakeOwnership(NodeRef nodeRef) Set the owner of the object to be the current user.
-
Constructor Details
-
OwnableServiceNOOPImpl
public OwnableServiceNOOPImpl()
-
-
Method Details
-
getOwner
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
Description copied from interface:OwnableServiceSet the owner of the object.- Specified by:
setOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRefuserName- String
-
takeOwnership
Description copied from interface:OwnableServiceSet the owner of the object to be the current user.- Specified by:
takeOwnershipin interfaceOwnableService- Parameters:
nodeRef- NodeRef
-
hasOwner
Description copied from interface:OwnableServiceDoes the given node have an owner?- Specified by:
hasOwnerin interfaceOwnableService- Parameters:
nodeRef- NodeRef- Returns:
- boolean
-