public class PositionComponentSlotAdminActionEnabledStrategy extends java.lang.Object implements ComponentSlotAdminActionEnabledStrategy
| Constructor and Description |
|---|
PositionComponentSlotAdminActionEnabledStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentSlotNameModel |
getContentSlotName(PageTemplateModel pageTemplate,
java.lang.String position) |
boolean |
isEnabled(SlotActionMenuRequestData request) |
protected boolean |
isValidForComponentTypeGroup(ContentSlotNameModel contentSlotName,
TypeModel typeModel) |
protected boolean |
isValidForValidComponentTypes(ContentSlotNameModel contentSlotName,
TypeModel typeModel) |
boolean |
isValidType(ContentSlotNameModel contentSlotName) |
boolean |
isVisible(SlotActionMenuRequestData request,
boolean enabled) |
boolean |
isVisibleIfDisabled() |
void |
setCmsPageService(CMSPageService cmsPageService) |
void |
setTypeCode(java.lang.String typeCode) |
void |
setTypeService(TypeService typeService) |
void |
setVisibleIfDisabled(boolean visibleIfDisabled) |
public PositionComponentSlotAdminActionEnabledStrategy()
protected ContentSlotNameModel getContentSlotName(PageTemplateModel pageTemplate, java.lang.String position)
public boolean isValidType(ContentSlotNameModel contentSlotName)
protected boolean isValidForValidComponentTypes(ContentSlotNameModel contentSlotName, TypeModel typeModel)
protected boolean isValidForComponentTypeGroup(ContentSlotNameModel contentSlotName, TypeModel typeModel)
public boolean isEnabled(SlotActionMenuRequestData request)
isEnabled in interface ComponentSlotAdminActionEnabledStrategypublic boolean isVisibleIfDisabled()
public void setVisibleIfDisabled(boolean visibleIfDisabled)
public boolean isVisible(SlotActionMenuRequestData request, boolean enabled)
isVisible in interface ComponentSlotAdminActionEnabledStrategypublic void setTypeCode(java.lang.String typeCode)
public void setCmsPageService(CMSPageService cmsPageService)
public void setTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.