Interface OwnableService
- All Known Implementing Classes:
OwnableServiceImpl,OwnableServiceNOOPImpl
public interface OwnableService
Service support around managing ownership.
- Author:
- Andy Hind
-
Field Summary
Fields -
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.
-
Field Details
-
NO_OWNER
- See Also:
-
-
Method Details
-
getOwner
Get the username of the owner of the given object.- Parameters:
nodeRef- NodeRef- Returns:
- the username or null if the object has no owner
-
setOwner
Set the owner of the object.- Parameters:
nodeRef- NodeRefuserName- String
-
takeOwnership
Set the owner of the object to be the current user.- Parameters:
nodeRef- NodeRef
-
hasOwner
Does the given node have an owner?- Parameters:
nodeRef- NodeRef- Returns:
- boolean
-