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
  • Constructor Details

    • OwnableServiceNOOPImpl

      public OwnableServiceNOOPImpl()
  • Method Details

    • getOwner

      public String getOwner(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(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(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(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