|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.util.security.acl.AccessControlList
public class AccessControlList
Value class for Access Control Lists
Field Summary | |
---|---|
static int |
REMOVE_INHERIT_COPY_PERMISSIONS
|
static int |
REMOVE_INHERIT_REMOVE_PERMISSIONS
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REMOVE_INHERIT_COPY_PERMISSIONS
public static final int REMOVE_INHERIT_REMOVE_PERMISSIONS
Constructor Detail |
---|
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.
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |