Class AccessControlEntry

    • Constructor Detail

      • AccessControlEntry

        public AccessControlEntry​(java.lang.String principalId,
                                  Permissions permissions,
                                  boolean inherited)
      • AccessControlEntry

        public AccessControlEntry​(AccessControlEntry parentAccessControlListEntry,
                                  int copyType,
                                  java.util.HashMap<java.lang.Integer,​java.lang.Integer> permissionsMapping)
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isInherited

        public boolean isInherited()
      • setPermissions

        public void setPermissions​(Permissions permissions)
      • getPrincipalId

        public java.lang.String getPrincipalId()
      • setImpliedPermissions

        public void setImpliedPermissions​(int[] permissionImplies)
      • inherit

        public void inherit​(AccessControlEntry parentAccessControlListEntry,
                            java.util.HashMap<java.lang.Integer,​java.lang.Integer> permissionsMapping)
      • removeInheritance

        public void removeInheritance()
      • checkPermission

        public boolean checkPermission​(IPermission permission)
      • hasDenyPermission

        public boolean hasDenyPermission​(IPermission permission)
        Checks if this ACL Entry has the been denied the given permission.
        Parameters:
        permission -
        Returns:
      • serialize

        protected void serialize​(AccessControlEntry aclEntry,
                                 java.lang.StringBuilder stringBuilder)