Class AccessControlList

    • Constructor Detail

      • AccessControlList

        public AccessControlList()
        No-arg constructor needed by JAXB
    • Method Detail

      • isValid

        public boolean isValid()
      • merge

        public AccessControlList merge​(AccessControlList acl)
        Merge this access control list with another one based on roles specified within. In case both lists specify rules for a specific role, the set of rules from the access control list passed as argument to this method will take precedence over the internal set of rules. Example:
                  ROLE_USER1   ROLE_USER2   ROLE_USER3
                  read  write  read  write  read  write
         this     ok    ok     ok    ok
         argument              ok           ok
         result   ok    ok     ok           ok
         
        Parameters:
        acl - Access control list to merge with
        Returns:
        Merged access control list
      • mergeActions

        public AccessControlList mergeActions​(AccessControlList acl)
        Merge this access control list with another one based on actions specified within. In case both lists specify rules for a specific action, the rules from the access control list passed as argument to this method will take precedence over the internal rules. Example:
                  ROLE_USER1   ROLE_USER2   ROLE_USER3
                  read  write  read  write  read  write
         this     ok    ok     ok    ok
         argument              ok           ok
         result   ok    ok     ok    ok     ok
         
        Parameters:
        acl - Access control list to merge with
        Returns:
        Merged access control list
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object