Class AccessControlEntry

  • All Implemented Interfaces:
    java.lang.Cloneable, ICloneableConfig<AccessControlEntry>

    public class AccessControlEntry
    extends java.lang.Object
    implements ICloneableConfig<AccessControlEntry>
    Value class for an entry of an Access Control List, which represents a principal and its permissions.
    Since:
    4.0.9
    Version:
    $Revision: 10753 $ $Date: 2009-07-27 20:08:07 -0300 (Mon, 27 Jul 2009) $
    • 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)