Class ACLCache
java.lang.Object
de.hybris.platform.persistence.security.ACLCache
- All Implemented Interfaces:
Serializable,Cloneable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()static ACLCachevoidintfindPermission(PK principalPK, PK permissionPK) getPermissionMap(List<PK> rightPKs) rights = [ r1 , r2 ,r3 ] map = { pcpl1 -> [ T ,F ,null ], pcpl2 -> [ null ,F, ,null ] }getPermissions(PK principalPK, boolean negative) longbooleanisPermissionRemoved(PK principalPK, PK permissionPK) static ACLCacheload(PK itemPK, long version, Collection<ACLEntryCache> allACLs) booleanbooleanremovePermission(PK principalPK, PK permissionPK) booleansetPermission(PK principalPK, PK permissionPK, boolean negative) voidrights = [ r1 , r2 ,r3 ] map = { pcpl1 -> [ T ,F ,null ], pcpl2 -> [ null ,F, ,null ] }voidsetVersion(long newVersion) static booleantranslatePermissionToBoolean(int result) Maps the 4-state results of calculatePermission(...) to boolean values.void
-
Method Details
-
create
-
load
-
translatePermissionToBoolean
public static boolean translatePermissionToBoolean(int result) Maps the 4-state results of calculatePermission(...) to boolean values. Uses DEFAULT_PERMISSION as return value for ACLRemote.EVEN and ACLRemote.NOT_FOUND. -
needsUpdate
public boolean needsUpdate() -
getUpdateableACLs
-
wroteChanges
public void wroteChanges() -
getItemPK
-
getVersion
public long getVersion() -
setVersion
public void setVersion(long newVersion) -
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getRestrictedPrincipals
- Returns:
- Collection of principal PK strings.
-
getPermissionMap
rights = [ r1 , r2 ,r3 ] map = { pcpl1 -> [ T ,F ,null ], pcpl2 -> [ null ,F, ,null ] } -
setPermissionMap
public void setPermissionMap(List<PK> rightPKs, Map<PK, List<Boolean>> principalToBooleanMap) throws EJBSecurityExceptionrights = [ r1 , r2 ,r3 ] map = { pcpl1 -> [ T ,F ,null ], pcpl2 -> [ null ,F, ,null ] }- Parameters:
rightPKs-principalToBooleanMap-- Throws:
EJBSecurityException
-
getPermissions
- Returns:
- collection of UserRight PK strings.
-
findPermission
-
isPermissionRemoved
-
setPermission
public boolean setPermission(PK principalPK, PK permissionPK, boolean negative) throws EJBSecurityException - Throws:
EJBSecurityException
-
removePermission
- Throws:
EJBSecurityException
-
deletePermission
public void deletePermission()
-