Interface ExtendedSecurityService

All Superinterfaces:
DeprecatedExtendedSecurityService
All Known Implementing Classes:
ExtendedSecurityServiceImpl

@AlfrescoPublicApi public interface ExtendedSecurityService extends DeprecatedExtendedSecurityService
Extended security service.
Since:
2.1
Author:
Roy Wetherall
  • Field Details

  • Method Details

    • hasExtendedSecurity

      boolean hasExtendedSecurity(NodeRef nodeRef)
      Indicates whether a node has extended security.
      Parameters:
      nodeRef - node reference
      Returns:
      boolean true if the node has extended security, false otherwise
    • getReaders

      Set<String> getReaders(NodeRef nodeRef)
      Gets the set of authorities that are extended readers for the given node.
      Parameters:
      nodeRef - node reference
      Returns:
      Set<String> set of extended readers
    • getWriters

      Set<String> getWriters(NodeRef nodeRef)
      Get the set of authorities that are extended writers for the given node.
      Parameters:
      nodeRef - node reference
      Returns:
      Set<String> set of extended writers
    • set

      void set(NodeRef nodeRef, Pair<Set<String>,Set<String>> readersAndWriters)
      Helper to allow caller to provide authority sets as a pair where the first is the readers and the second is the writers.
      Parameters:
      nodeRef - node reference
      readersAndWriters - pair where first is the set of readers and the second is the set of writers
      See Also:
    • set

      void set(NodeRef nodeRef, Set<String> readers, Set<String> writers)
      Set extended security for a node, where the readers will be granted ReadRecord permission and ViewRecord capability to the node and where the writers will be granted Filling permission and Filling capability to the node.

      Note it is vaild to provide 'null' values for readers and/or writers.

      Parameters:
      nodeRef - node reference
      readers - set of readers
      writers - set of writers
      Since:
      2.5
    • remove

      void remove(NodeRef nodeRef)
      Removes all extended security from a node.
      Parameters:
      nodeRef - node reference