public class AccessControlEntry extends Object implements ICloneableConfig<AccessControlEntry>
Modifier and Type | Field and Description |
---|---|
static int |
COPY_AS_INHERITED |
static int |
COPY_AS_NOT_INHERITED |
Constructor and Description |
---|
AccessControlEntry(AccessControlEntry parentAccessControlListEntry,
int copyType,
HashMap<Integer,Integer> permissionsMapping) |
AccessControlEntry(String principalId,
Permissions permissions,
boolean inherited) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(IPermission permission) |
AccessControlEntry |
clone() |
protected void |
deserialize(Node aclEntryNode) |
boolean |
equals(Object obj) |
Permissions |
getPermissions() |
String |
getPrincipalId() |
boolean |
hasDenyPermission(IPermission permission)
Checks if this ACL Entry has the been denied the given permission.
|
int |
hashCode() |
void |
inherit(AccessControlEntry parentAccessControlListEntry) |
void |
inherit(AccessControlEntry parentAccessControlListEntry,
HashMap<Integer,Integer> permissionsMapping) |
boolean |
isInherited() |
void |
removeInheritance() |
protected void |
serialize(AccessControlEntry aclEntry,
StringBuilder stringBuilder) |
void |
setImpliedPermissions(int[] permissionImplies) |
void |
setPermissions(Permissions permissions) |
public static final int COPY_AS_INHERITED
public static final int COPY_AS_NOT_INHERITED
public AccessControlEntry(String principalId, Permissions permissions, boolean inherited)
public AccessControlEntry(AccessControlEntry parentAccessControlListEntry, int copyType, HashMap<Integer,Integer> permissionsMapping)
public boolean isInherited()
public Permissions getPermissions()
public void setPermissions(Permissions permissions)
public String getPrincipalId()
public void setImpliedPermissions(int[] permissionImplies)
public void inherit(AccessControlEntry parentAccessControlListEntry)
public void inherit(AccessControlEntry parentAccessControlListEntry, HashMap<Integer,Integer> permissionsMapping)
public void removeInheritance()
public boolean checkPermission(IPermission permission)
public boolean hasDenyPermission(IPermission permission)
permission
- protected void serialize(AccessControlEntry aclEntry, StringBuilder stringBuilder)
protected void deserialize(Node aclEntryNode) throws PortalException
PortalException
public AccessControlEntry clone() throws CloneNotSupportedException
clone
in interface ICloneableConfig<AccessControlEntry>
clone
in class Object
CloneNotSupportedException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.