public class RestrictedTypeCodeActionEnabledStrategy extends Object implements ComponentAdminActionEnabledStrategy
| Constructor and Description |
|---|
RestrictedTypeCodeActionEnabledStrategy() |
| Modifier and Type | Method and Description |
|---|---|
CMSComponentService |
getCmsComponentService() |
TypeService |
getTypeService() |
protected void |
init() |
boolean |
isEnabled(ComponentActionMenuRequestData request) |
protected boolean |
isInitialized() |
boolean |
isVisible(ComponentActionMenuRequestData request,
boolean enabled) |
boolean |
isVisibleIfDisabled() |
void |
setCmsComponentService(CMSComponentService cmsComponentService) |
void |
setTypeCodes(List<String> typeCodes) |
void |
setTypeService(TypeService typeService) |
void |
setVisibleIfDisabled(boolean visibleIfDisabled) |
public RestrictedTypeCodeActionEnabledStrategy()
public boolean isEnabled(ComponentActionMenuRequestData request)
isEnabled in interface ComponentAdminActionEnabledStrategyprotected void init()
protected boolean isInitialized()
public CMSComponentService getCmsComponentService()
public void setCmsComponentService(CMSComponentService cmsComponentService)
cmsComponentService - the cmsComponentService to setpublic TypeService getTypeService()
public void setTypeService(TypeService typeService)
public boolean isVisibleIfDisabled()
public void setVisibleIfDisabled(boolean visibleIfDisabled)
public boolean isVisible(ComponentActionMenuRequestData request, boolean enabled)
isVisible in interface ComponentAdminActionEnabledStrategyCopyright © 2017 SAP SE. All Rights Reserved.