public class AccessControlList extends Object implements ICloneableConfig<AccessControlList>, ICloneableCacheEntry
Modifier and Type | Field and Description |
---|---|
static int |
REMOVE_INHERIT_COPY_PERMISSIONS |
static int |
REMOVE_INHERIT_REMOVE_PERMISSIONS |
Constructor and Description |
---|
AccessControlList(String id,
AccessControlEntry[] accessControlEntries,
boolean inheriting) |
AccessControlList(String id,
AccessControlEntry[] accessControlEntries,
boolean inheriting,
String parentId)
Creates a new access control list with the data given.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(Collection<String> principalIds,
IPermission permission)
Deprecated.
Since 4.2.1, this method is no longer used and
may be removed in the future.
|
boolean |
checkPermission(String principalId,
IPermission permission)
Checks if the specified principal has access to the given
permission.
|
AccessControlList |
clone() |
void |
deserialize(Node accessControlListNode) |
AccessControlEntry[] |
getEntries() |
AccessControlEntry |
getEntry(String entryId) |
String |
getId() |
AccessControlEntry[] |
getLocalEntries() |
String |
getParentId() |
void |
inherit(AccessControlList parentAccessControlList) |
void |
inherit(AccessControlList parentAccessControlList,
HashMap<Integer,Integer> permissionsMapping) |
boolean |
isInheriting() |
void |
removeInheritance(int removeType) |
void |
serialize(AccessControlList accessControlList,
OutputStream outputStream) |
void |
setImpliedPermissions(int[] permissionImplies) |
void |
setInheriting(boolean inheriting) |
void |
setLocalEntries(AccessControlEntry[] entries) |
void |
setParentId(String parentId) |
public static final int REMOVE_INHERIT_COPY_PERMISSIONS
public static final int REMOVE_INHERIT_REMOVE_PERMISSIONS
public AccessControlList(String id, AccessControlEntry[] accessControlEntries, boolean inheriting)
public AccessControlList(String id, AccessControlEntry[] accessControlEntries, boolean inheriting, String parentId)
The parentACL is not currently read from parentId. It is filled only when
inherit(lumis.util.security.acl.AccessControlList)
method is called. On the inherit(lumis.util.security.acl.AccessControlList)
method, the
parentId is also filled.
public String getId()
public boolean isInheriting()
public void setInheriting(boolean inheriting)
public String getParentId()
public void setParentId(String parentId)
public AccessControlEntry getEntry(String entryId)
public AccessControlEntry[] getEntries()
public AccessControlEntry[] getLocalEntries()
public void setLocalEntries(AccessControlEntry[] entries)
public void setImpliedPermissions(int[] permissionImplies)
public void inherit(AccessControlList parentAccessControlList)
public void inherit(AccessControlList parentAccessControlList, HashMap<Integer,Integer> permissionsMapping)
public void removeInheritance(int removeType)
@Deprecated public boolean checkPermission(Collection<String> principalIds, IPermission permission)
principalIds
- permission
- public boolean checkPermission(String principalId, IPermission permission) throws PortalException
This method needs a transactional context to be executed.
principalId
- the principal identifier.permission
- the permission.PortalException
public void serialize(AccessControlList accessControlList, OutputStream outputStream) throws PortalException
PortalException
public void deserialize(Node accessControlListNode) throws PortalException
PortalException
public AccessControlList clone() throws CloneNotSupportedException
clone
in interface ICloneableCacheEntry
clone
in interface ICloneableConfig<AccessControlList>
clone
in class Object
CloneNotSupportedException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.