Class OwnableServiceNOOPImpl

  • All Implemented Interfaces:
    OwnableService

    public class OwnableServiceNOOPImpl
    extends Object
    implements OwnableService
    A simple implementation that does not support ownership.
    Author:
    Andy Hind
    • Constructor Detail

      • OwnableServiceNOOPImpl

        public OwnableServiceNOOPImpl()
    • Method Detail

      • getOwner

        public String getOwner​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Description copied from interface: OwnableService
        Get the username of the owner of the given object.
        Specified by:
        getOwner in interface OwnableService
        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,
                             String userName)
        Description copied from interface: OwnableService
        Set the owner of the object.
        Specified by:
        setOwner in interface OwnableService
        Parameters:
        nodeRef - NodeRef
        userName - String
      • takeOwnership

        public void takeOwnership​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Description copied from interface: OwnableService
        Set the owner of the object to be the current user.
        Specified by:
        takeOwnership in interface OwnableService
        Parameters:
        nodeRef - NodeRef
      • hasOwner

        public boolean hasOwner​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Description copied from interface: OwnableService
        Does the given node have an owner?
        Specified by:
        hasOwner in interface OwnableService
        Parameters:
        nodeRef - NodeRef
        Returns:
        boolean