Class CMSCockpitUIAccessRightService
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService
de.hybris.platform.cmscockpit.services.security.impl.CMSCockpitUIAccessRightService
- All Implemented Interfaces:
UIAccessRightService
CMS cockpit specific implementation of
UIAccessRightService. Adds functionality of checking page locks.-
Field Summary
FieldsFields inherited from class de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService
cockpitUIComponentAccessRightDaoFields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisObjectWritable(TypedObject item) booleanisWritable(ObjectType type, PropertyDescriptor propDescr, boolean creationMode) Returns whether the current user has write access to the specified item property.booleanisWritable(ObjectType type, TypedObject item) Returns whether the current user has write access to the specified item.booleanisWritable(ObjectType type, TypedObject item, PropertyDescriptor propDescr, boolean creationMode) Returns whether the current user has write access to the specified item property.voidsetCmsPageLockingService(CMSPageLockingService cmsPageLockingService) voidsetCmsPageService(CMSPageService cmsPageService) Methods inherited from class de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService
canRead, canWrite, canWrite, getBaseTypeCode, getSessionContext, getSystemService, getUserService, isReadable, isReadable, isWritable, restricts, setCockpitUIComponentAccessRightDao, setSystemService, setUserServiceMethods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
Field Details
-
LOG
protected static final org.apache.log4j.Logger LOG
-
-
Constructor Details
-
CMSCockpitUIAccessRightService
public CMSCockpitUIAccessRightService()
-
-
Method Details
-
isWritable
Description copied from interface:UIAccessRightServiceReturns whether the current user has write access to the specified item.- Specified by:
isWritablein interfaceUIAccessRightService- Overrides:
isWritablein classDefaultUIAccessRightService- Parameters:
type- item typeitem- the item instance to check access for- Returns:
trueif user has write access,falseotherwise
-
isWritable
public boolean isWritable(ObjectType type, TypedObject item, PropertyDescriptor propDescr, boolean creationMode) Description copied from interface:UIAccessRightServiceReturns whether the current user has write access to the specified item property.- Specified by:
isWritablein interfaceUIAccessRightService- Overrides:
isWritablein classDefaultUIAccessRightService- Parameters:
type- item typeitem- item instancepropDescr- item attribute to check access forcreationMode- creation mode or not- Returns:
trueif user has write access,falseotherwise
-
isWritable
Description copied from interface:UIAccessRightServiceReturns whether the current user has write access to the specified item property.- Specified by:
isWritablein interfaceUIAccessRightService- Overrides:
isWritablein classDefaultUIAccessRightService- Parameters:
type- item typepropDescr- item attribute to check access forcreationMode- creation mode or not- Returns:
trueif user has write access,falseotherwise
-
isObjectWritable
-
setCmsPageLockingService
-
getCmsPageLockingService
-
getCmsPageService
-
setCmsPageService
-