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
Modifier and TypeMethodDescriptionintcheckItemPermission(PK principalPK, PK permissionPK) intcheckOwnGlobalPermission(PK permissionPK) getGlobalPermissionPKs(boolean negative) getPermissionPKs(PK principalPK, boolean negative) getPrincipalToBooleanListMap(List<PK> rightPKs) finds all restricted principals for a given list of user rights.booleanremoveGlobalPermission(PK permissionPK) booleanremoveGlobalPermissions(Collection<PermissionContainer> permissions) booleanremovePermission(PK principalPK, PK permissionPK) booleanremovePermissions(Collection<PermissionContainer> permissions) booleansetGlobalPermission(PK permissionPK, boolean negative) booleansetGlobalPermissions(Collection<PermissionContainer> permissions) booleansetPermission(PK principalPK, PK permissionPK, boolean negative) booleansetPermissions(Collection<PermissionContainer> permissions) voidchanges restricted principals for a given list of user rights.
-
Method Details
-
getRestrictedPrincipalPKs
Collection<PK> getRestrictedPrincipalPKs() -
getPrincipalToBooleanListMap
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(List<PK> rightPKs, Map<PK, List<Boolean>> principalPKToBooleanListMap) throws EJBSecurityExceptionchanges 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
-
getPermissionPKs
-
setPermission
boolean setPermission(PK principalPK, PK permissionPK, boolean negative) throws EJBSecurityException - Throws:
EJBSecurityException
-
setGlobalPermission
- Throws:
EJBSecurityException
-
setPermissions
- Throws:
EJBSecurityException
-
setGlobalPermissions
boolean setGlobalPermissions(Collection<PermissionContainer> permissions) throws EJBSecurityException - Throws:
EJBSecurityException
-
removePermission
- Throws:
EJBSecurityException
-
removeGlobalPermission
- Throws:
EJBSecurityException
-
removePermissions
- Throws:
EJBSecurityException
-
removeGlobalPermissions
boolean removeGlobalPermissions(Collection<PermissionContainer> permissions) throws EJBSecurityException - Throws:
EJBSecurityException
-
getGlobalPermissionPKs
-
checkOwnGlobalPermission
-
checkItemPermission
-