Class CxReplaceComponentWithContainerExecutor
- java.lang.Object
-
- de.hybris.platform.personalizationwebservices.queries.impl.AbstractRestQueryExecutor
-
- de.hybris.platform.personalizationcmsweb.queries.CxReplaceComponentWithContainerExecutor
-
- All Implemented Interfaces:
RestQueryExecutor
public class CxReplaceComponentWithContainerExecutor extends AbstractRestQueryExecutor
This executor replaces a component in a slot with CxCmsContainer and set the component as default of this container.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OLD_COMPONENT_CATALOG
static java.lang.String
OLD_ID
static java.lang.String
SLOT_ID
-
Constructor Summary
Constructors Constructor Description CxReplaceComponentWithContainerExecutor()
-
Method Summary
-
Methods inherited from class de.hybris.platform.personalizationwebservices.queries.impl.AbstractRestQueryExecutor
execute, getCatalogFromParams, getLocalViewExecutor, getQueryEndpointPermissionsChecker, setLocalViewExecutor, setQueryEndpointPermissionsChecker, validate, validateMissingField
-
-
-
-
Field Detail
-
OLD_ID
public static final java.lang.String OLD_ID
- See Also:
- Constant Field Values
-
OLD_COMPONENT_CATALOG
public static final java.lang.String OLD_COMPONENT_CATALOG
- See Also:
- Constant Field Values
-
SLOT_ID
public static final java.lang.String SLOT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateInputParams
protected void validateInputParams(java.util.Map<java.lang.String,java.lang.String> params, org.springframework.validation.Errors errors)
- Specified by:
validateInputParams
in classAbstractRestQueryExecutor
-
executeAfterValidation
protected java.lang.Object executeAfterValidation(java.util.Map<java.lang.String,java.lang.String> params)
- Specified by:
executeAfterValidation
in classAbstractRestQueryExecutor
-
findSlot
protected ContentSlotModel findSlot(java.util.Map<java.lang.String,java.lang.String> params)
-
findComponent
protected SimpleCMSComponentModel findComponent(java.util.Map<java.lang.String,java.lang.String> params)
-
getActiveCatalogVersion
protected CatalogVersionModel getActiveCatalogVersion(java.lang.String componentCatalog)
-
replaceComponentWithContainer
protected CxCmsComponentContainerModel replaceComponentWithContainer(SimpleCMSComponentModel component, ContentSlotModel slot)
-
isComponentInSlot
protected boolean isComponentInSlot(AbstractCMSComponentModel component, ContentSlotModel slot)
-
createCxContainer
protected CxCmsComponentContainerModel createCxContainer(SimpleCMSComponentModel component, ContentSlotModel slot)
-
replaceAndSaveComponents
protected void replaceAndSaveComponents(AbstractCMSComponentModel component, CxCmsComponentContainerModel container, ContentSlotModel slot)
-
findCxContainerWithComponentInSlot
protected CxCmsComponentContainerModel findCxContainerWithComponentInSlot(SimpleCMSComponentModel component, ContentSlotModel slot)
-
isContainerInSlotCatalog
protected boolean isContainerInSlotCatalog(CxCmsComponentContainerModel container, ContentSlotModel slot)
-
copyCxContainer
protected CxCmsComponentContainerModel copyCxContainer(CxCmsComponentContainerModel originalContainer, ContentSlotModel slot)
-
getCatalogsForWriteAccess
public java.util.List<CatalogVersionWsDTO> getCatalogsForWriteAccess(java.util.Map<java.lang.String,java.lang.String> params)
- Returns:
- The catalogs the query needs to write on.
-
getCatalogsForReadAccess
public java.util.List<CatalogVersionWsDTO> getCatalogsForReadAccess(java.util.Map<java.lang.String,java.lang.String> params)
- Returns:
- The catalogs the query needs toread from.
-
createCatalogVersionDTO
protected CatalogVersionWsDTO createCatalogVersionDTO(java.lang.String catalog, java.lang.String catalogVersion)
-
getCmsComponentService
protected CMSComponentService getCmsComponentService()
- Returns:
- the cmsComponentService
-
setCmsComponentService
public void setCmsComponentService(CMSComponentService cmsComponentService)
- Parameters:
cmsComponentService
- the cmsComponentService to set
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
- Returns:
- the catalogVersionService
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
- Parameters:
catalogVersionService
- the catalogVersionService to set
-
getModelService
protected ModelService getModelService()
- Returns:
- the modelService
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService
- the modelService to set
-
getConverter
protected Converter<CxCmsComponentContainerModel,CxCmsComponentContainerData> getConverter()
- Returns:
- the converter
-
setConverter
public void setConverter(Converter<CxCmsComponentContainerModel,CxCmsComponentContainerData> converter)
- Parameters:
converter
- the converter to set
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
getCatalogService
protected CatalogService getCatalogService()
-
setCatalogService
public void setCatalogService(CatalogService catalogService)
-
-