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 int
checkItemPermission(PK principalPK, PK permissionPK)
int
checkOwnGlobalPermission(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()
boolean
removeGlobalPermission(PK permissionPK)
boolean
removeGlobalPermissions(java.util.Collection<PermissionContainer> permissions)
boolean
removePermission(PK principalPK, PK permissionPK)
boolean
removePermissions(java.util.Collection<PermissionContainer> permissions)
boolean
setGlobalPermission(PK permissionPK, boolean negative)
boolean
setGlobalPermissions(java.util.Collection<PermissionContainer> permissions)
boolean
setPermission(PK principalPK, PK permissionPK, boolean negative)
boolean
setPermissions(java.util.Collection<PermissionContainer> permissions)
void
setPrincipalToBooleanListMap(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)
-
-