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
public class CMSCockpitUIAccessRightService extends DefaultUIAccessRightService
CMS cockpit specific implementation ofUIAccessRightService. Adds functionality of checking page locks.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOG-
Fields inherited from class de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService
cockpitUIComponentAccessRightDao
-
Fields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService
-
-
Constructor Summary
Constructors Constructor Description CMSCockpitUIAccessRightService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMSPageLockingServicegetCmsPageLockingService()CMSPageServicegetCmsPageService()protected 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, setUserService
-
Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
-
-
-
Method Detail
-
isWritable
public boolean isWritable(ObjectType type, TypedObject item)
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
public boolean isWritable(ObjectType type, 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 typepropDescr- item attribute to check access forcreationMode- creation mode or not- Returns:
trueif user has write access,falseotherwise
-
isObjectWritable
protected boolean isObjectWritable(TypedObject item)
-
setCmsPageLockingService
public void setCmsPageLockingService(CMSPageLockingService cmsPageLockingService)
-
getCmsPageLockingService
public CMSPageLockingService getCmsPageLockingService()
-
getCmsPageService
public CMSPageService getCmsPageService()
-
setCmsPageService
public void setCmsPageService(CMSPageService cmsPageService)
-
-