Class AclBinding


  • public class AclBinding
    extends java.lang.Object
    Represents an Access Control Binding. A Resource has a list of associated AceEntry . It allows for existence of duplicate aceEntry.
    • Constructor Detail

      • AclBinding

        public AclBinding​(Resource resource)
        Creates an Access Control Binding for a given resource with empty AceEntries.
        Parameters:
        resource - the resource for which this AclBinding is created.
    • Method Detail

      • getResource

        public Resource getResource()
      • getAceEntries

        public java.util.Collection<AceEntry> getAceEntries()
        Returns an unmodifiable list of existing ace entries.
        Returns:
      • addAceEntries

        public void addAceEntries​(java.util.Collection<AceEntry> aceEntries)
        Add a list of AceEntry to the existing list of Aces.
        Parameters:
        aceEntries - a list of entries to be added.
      • addAceEntry

        public void addAceEntry​(AceEntry aceEntry)
        Add one AceEntry to the existing list of Aces.
        Parameters:
        aceEntry - The entry to be added.
      • removeAceEntry

        public void removeAceEntry​(AceEntry aceEntry)
        Remove one AceEntry from the existing list of Aces. If there are multiple matching entries only one will be removed.
        Parameters:
        aceEntry - The entry to be removed.
      • countAceEntries

        public int countAceEntries()
        count the number of AceEntries in the AclBinding
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object