Interface DeprecatedExtendedSecurityService

All Known Subinterfaces:
ExtendedSecurityService
All Known Implementing Classes:
ExtendedSecurityServiceImpl

public interface DeprecatedExtendedSecurityService
Deprecated extended security service for compatibility.
Author:
Roy Wetherall
  • Method Details

    • getExtendedReaders

      Set<String> getExtendedReaders(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
    • getExtendedWriters

      Set<String> getExtendedWriters(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
    • addExtendedSecurity

      @Deprecated void addExtendedSecurity(NodeRef nodeRef, Set<String> readers, Set<String> writers)
      Add extended security for the specified authorities to a node. As of, 2.5 this method no longer applies the extended security to parents.
      Parameters:
      nodeRef - node reference
      readers - set of authorities to add extended read permissions
      writers - set of authorities to add extended write permissions
    • addExtendedSecurity

      @Deprecated void addExtendedSecurity(NodeRef nodeRef, Set<String> readers, Set<String> writers, boolean applyToParents)
      Deprecated.
      as of 2.5, because extended security is no longer applied to parents. Note that calling this method will only apply the extended security to the node and the applyToParents parameter value will be ignored.
      Add extended security for the specified authorities to a node.

      If specified, the read and write extended permissions are applied to all parents up to the file plan as extended read. This ensures parental read, but not parental write.

      Parameters:
      nodeRef - node reference
      readers - set of authorities to add extended read permissions
      writers - set of authorities to add extended write permissions
      applyToParents - true if extended security applied to parents (read only) false otherwise.
      See Also:
    • removeAllExtendedSecurity

      @Deprecated void removeAllExtendedSecurity(NodeRef nodeRef)
      Deprecated.
      Remove all extended readers and writers from the given node reference.
      Parameters:
      nodeRef - node reference
    • removeExtendedSecurity

      @Deprecated void removeExtendedSecurity(NodeRef nodeRef, Set<String> readers, Set<String> writers)
      Deprecated.
      as of 2.5, because partial removal of readers and writers from node or parents is no longer supported. Note that calling this method will now remove all extended security from the node and never applied to parents.
      Remove the extended security for the specified authorities from a node.
      Parameters:
      nodeRef - node reference
      readers - set of authorities to remove as extended readers
      writers - set of authorities to remove as extended writers
    • removeExtendedSecurity

      @Deprecated void removeExtendedSecurity(NodeRef nodeRef, Set<String> readers, Set<String> writers, boolean applyToParents)
      Deprecated.
      as of 2.5, because partial removal of readers and writers from node or parents is no longer supported. Note that calling this method will now remove all extended security from the node and never applied to parents.
      Remove the extended security for the specified authorities from a node.

      If specified, extended security will also be removed from the parent hierarchy.(read only). Note that extended security is records as a reference count, so security will only be utterly removed from the parent hierarchy if all references to the authority are removed.

      Parameters:
      nodeRef - node reference
      readers - set of authorities to remove as extended readers
      writers - set of authorities to remove as extedned writers
      applyToParents - true if removal of extended security is applied to parent hierarchy (read only), false otherwise
    • removeAllExtendedSecurity

      @Deprecated void removeAllExtendedSecurity(NodeRef nodeRef, boolean applyToParents)
      Deprecated.
      as of 2.5, because partial removal of readers and writers from node or parents is no longer supported. Note that calling this method will now remove all extended security from the node and never applied to parents.
      Remove all extended readers and writers from the given node reference.
      Parameters:
      nodeRef - node reference
      applyToParents - if true then apply removal to parent hierarchy (read only) false otherwise.