Class Permission

    • Constructor Detail

      • Permission

        protected Permission​(Integer precedence,
                             Collection<GrantAndDenial> grantsAndDenials)
        Creates a new instance
        Parameters:
        precedence - the precedence of this permission (-1 to use the default)
        grantsAndDenials - the set of GrantAndDenials
    • Method Detail

      • getPrecedence

        public Integer getPrecedence()
        Gets the precedence of this permission.
        Returns:
        the precedence
      • getGrants

        public Set<GrantAndDenial> getGrants()
        Gets the set of grants only.
        Returns:
        the grants
      • getDenials

        public Set<GrantAndDenial> getDenials()
        Gets the set of denials only.
        Returns:
        the denials