Interface OwnableService

All Known Implementing Classes:
OwnableServiceImpl, OwnableServiceNOOPImpl

public interface OwnableService
Service support around managing ownership.
Author:
Andy Hind
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getOwner(NodeRef nodeRef)
    Get the username of the owner of the given object.
    boolean
    hasOwner(NodeRef nodeRef)
    Does the given node have an owner?
    void
    setOwner(NodeRef nodeRef, String userName)
    Set the owner of the object.
    void
    Set the owner of the object to be the current user.
  • Field Details

  • Method Details

    • getOwner

      @Auditable(parameters="nodeRef") String getOwner(NodeRef nodeRef)
      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

      @Auditable(parameters={"nodeRef","userName"}) void setOwner(NodeRef nodeRef, String userName)
      Set the owner of the object.
      Parameters:
      nodeRef - NodeRef
      userName - String
    • takeOwnership

      @Auditable(parameters="nodeRef") void takeOwnership(NodeRef nodeRef)
      Set the owner of the object to be the current user.
      Parameters:
      nodeRef - NodeRef
    • hasOwner

      @Auditable(parameters="nodeRef") boolean hasOwner(NodeRef nodeRef)
      Does the given node have an owner?
      Parameters:
      nodeRef - NodeRef
      Returns:
      boolean