lumis.util.security.acl
Class AccessControlEntry
java.lang.Object
lumis.util.security.acl.AccessControlEntry
- All Implemented Interfaces:
- Cloneable, ICloneableConfig<AccessControlEntry>
public class AccessControlEntry
- extends 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
COPY_AS_INHERITED
public static final int COPY_AS_INHERITED
- See Also:
- Constant Field Values
COPY_AS_NOT_INHERITED
public static final int COPY_AS_NOT_INHERITED
- See Also:
- Constant Field Values
AccessControlEntry
public AccessControlEntry(String principalId,
Permissions permissions,
boolean inherited)
AccessControlEntry
public AccessControlEntry(AccessControlEntry parentAccessControlListEntry,
int copyType,
HashMap<Integer,Integer> permissionsMapping)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
isInherited
public boolean isInherited()
getPermissions
public Permissions getPermissions()
setPermissions
public void setPermissions(Permissions permissions)
getPrincipalId
public String getPrincipalId()
setImpliedPermissions
public void setImpliedPermissions(int[] permissionImplies)
inherit
public void inherit(AccessControlEntry parentAccessControlListEntry)
inherit
public void inherit(AccessControlEntry parentAccessControlListEntry,
HashMap<Integer,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,
StringBuilder stringBuilder)
deserialize
protected void deserialize(Node aclEntryNode)
throws PortalException
- Throws:
PortalException
clone
public AccessControlEntry clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface ICloneableConfig<AccessControlEntry>
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
Lumisportal 5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.