Package de.hybris.platform.persistence
Interface ItemPermissionFacade
-
- All Known Implementing Classes:
AtomicType_HJMPWrapper,AtomicTypeEJB,AttributeDescriptor_HJMPWrapper,AttributeDescriptorEJB,CollectionType_HJMPWrapper,CollectionTypeEJB,ComposedType_HJMPWrapper,ComposedTypeEJB,EnumerationValue_HJMPWrapper,EnumerationValueEJB,ExtensibleItemEJB,GenericBMPBean,GenericItemEJB,GenericLinkBMPBean,HierarchieTypeEJB,ItemDummy,ItemEJB,LinkEJB,LocalizableItemEJB,MapType_HJMPWrapper,MapTypeEJB,MetaInformation_HJMPWrapper,MetaInformationEJB,SearchRestriction_HJMPWrapper,SearchRestrictionEJB,TestItem_HJMPWrapper,TestItemEJB,TypeEJB,TypeManagerManagedEJB
public interface ItemPermissionFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcheckItemPermission(PK principalPK, PK permissionPK)intcheckOwnGlobalPermission(PK permissionPK)java.util.Collection<PK>getGlobalPermissionPKs(boolean negative)java.util.Collection<PK>getPermissionPKs(PK principalPK, boolean negative)java.util.Map<ItemPropertyValue,java.util.List<java.lang.Boolean>>getPrincipalToBooleanListMap(java.util.List<PK> rightPKs)finds all restricted principals for a given list of user rights.java.util.Collection<PK>getRestrictedPrincipalPKs()booleanremoveGlobalPermission(PK permissionPK)booleanremoveGlobalPermissions(java.util.Collection<PermissionContainer> permissions)booleanremovePermission(PK principalPK, PK permissionPK)booleanremovePermissions(java.util.Collection<PermissionContainer> permissions)booleansetGlobalPermission(PK permissionPK, boolean negative)booleansetGlobalPermissions(java.util.Collection<PermissionContainer> permissions)booleansetPermission(PK principalPK, PK permissionPK, boolean negative)booleansetPermissions(java.util.Collection<PermissionContainer> permissions)voidsetPrincipalToBooleanListMap(java.util.List<PK> rightPKs, java.util.Map<PK,java.util.List<java.lang.Boolean>> principalPKToBooleanListMap)changes restricted principals for a given list of user rights.
-
-
-
Method Detail
-
getRestrictedPrincipalPKs
java.util.Collection<PK> getRestrictedPrincipalPKs()
-
getPrincipalToBooleanListMap
java.util.Map<ItemPropertyValue,java.util.List<java.lang.Boolean>> getPrincipalToBooleanListMap(java.util.List<PK> rightPKs)
finds all restricted principals for a given list of user rights. further each principal is mapped to a row caontaining its setting regarding the user right at this position- Parameters:
rightPKs- the user right pks to get principals and permissions for- Returns:
- a map { principalPK -> [ Boolean.TRUE == negative | Boolean.FALSE == positive | null == not set]
-
setPrincipalToBooleanListMap
void setPrincipalToBooleanListMap(java.util.List<PK> rightPKs, java.util.Map<PK,java.util.List<java.lang.Boolean>> principalPKToBooleanListMap) throws EJBSecurityException
changes restricted principals for a given list of user rights.- Parameters:
rightPKs- the user right pks to get principals and permissions forprincipalPKToBooleanListMap- a map { principalPK -> [ Boolean.TRUE | Boolean.FALSE | null ]- Throws:
EJBSecurityException
-
setPermission
boolean setPermission(PK principalPK, PK permissionPK, boolean negative) throws EJBSecurityException
- Throws:
EJBSecurityException
-
setGlobalPermission
boolean setGlobalPermission(PK permissionPK, boolean negative) throws EJBSecurityException
- Throws:
EJBSecurityException
-
setPermissions
boolean setPermissions(java.util.Collection<PermissionContainer> permissions) throws EJBSecurityException
- Throws:
EJBSecurityException
-
setGlobalPermissions
boolean setGlobalPermissions(java.util.Collection<PermissionContainer> permissions) throws EJBSecurityException
- Throws:
EJBSecurityException
-
removePermission
boolean removePermission(PK principalPK, PK permissionPK) throws EJBSecurityException
- Throws:
EJBSecurityException
-
removeGlobalPermission
boolean removeGlobalPermission(PK permissionPK) throws EJBSecurityException
- Throws:
EJBSecurityException
-
removePermissions
boolean removePermissions(java.util.Collection<PermissionContainer> permissions) throws EJBSecurityException
- Throws:
EJBSecurityException
-
removeGlobalPermissions
boolean removeGlobalPermissions(java.util.Collection<PermissionContainer> permissions) throws EJBSecurityException
- Throws:
EJBSecurityException
-
getGlobalPermissionPKs
java.util.Collection<PK> getGlobalPermissionPKs(boolean negative)
-
checkOwnGlobalPermission
int checkOwnGlobalPermission(PK permissionPK)
-
-