Class CxReplaceComponentWithContainerExecutor
java.lang.Object
de.hybris.platform.personalizationwebservices.queries.impl.AbstractRestQueryExecutor
de.hybris.platform.personalizationcmsweb.queries.CxReplaceComponentWithContainerExecutor
- All Implemented Interfaces:
RestQueryExecutor
This executor replaces a component in a slot with CxCmsContainer and set the component as default of this container.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CxCmsComponentContainerModelcopyCxContainer(CxCmsComponentContainerModel originalContainer, ContentSlotModel slot) protected CatalogVersionWsDTOcreateCatalogVersionDTO(String catalog, String catalogVersion) protected CxCmsComponentContainerModelcreateCxContainer(SimpleCMSComponentModel component, ContentSlotModel slot) protected ObjectexecuteAfterValidation(Map<String, String> params) protected SimpleCMSComponentModelfindComponent(Map<String, String> params) protected CxCmsComponentContainerModelfindCxContainerWithComponentInSlot(SimpleCMSComponentModel component, ContentSlotModel slot) protected ContentSlotModelprotected CatalogVersionModelgetActiveCatalogVersion(String componentCatalog) protected CatalogServicegetCatalogsForReadAccess(Map<String, String> params) getCatalogsForWriteAccess(Map<String, String> params) protected CatalogVersionServiceprotected CMSComponentServiceprotected FlexibleSearchServiceprotected ModelServiceprotected booleanisComponentInSlot(AbstractCMSComponentModel component, ContentSlotModel slot) protected booleanisContainerInSlotCatalog(CxCmsComponentContainerModel container, ContentSlotModel slot) protected voidreplaceAndSaveComponents(AbstractCMSComponentModel component, CxCmsComponentContainerModel container, ContentSlotModel slot) protected CxCmsComponentContainerModelreplaceComponentWithContainer(SimpleCMSComponentModel component, ContentSlotModel slot) voidsetCatalogService(CatalogService catalogService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsComponentService(CMSComponentService cmsComponentService) voidvoidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetModelService(ModelService modelService) protected voidvalidateInputParams(Map<String, String> params, org.springframework.validation.Errors errors) Methods inherited from class de.hybris.platform.personalizationwebservices.queries.impl.AbstractRestQueryExecutor
execute, getCatalogFromParams, getLocalViewExecutor, getQueryEndpointPermissionsChecker, setLocalViewExecutor, setQueryEndpointPermissionsChecker, validate, validateMissingField
-
Field Details
-
OLD_ID
- See Also:
-
OLD_COMPONENT_CATALOG
- See Also:
-
SLOT_ID
- See Also:
-
-
Constructor Details
-
CxReplaceComponentWithContainerExecutor
public CxReplaceComponentWithContainerExecutor()
-
-
Method Details
-
validateInputParams
protected void validateInputParams(Map<String, String> params, org.springframework.validation.Errors errors) - Specified by:
validateInputParamsin classAbstractRestQueryExecutor
-
executeAfterValidation
- Specified by:
executeAfterValidationin classAbstractRestQueryExecutor
-
findSlot
-
findComponent
-
getActiveCatalogVersion
-
replaceComponentWithContainer
protected CxCmsComponentContainerModel replaceComponentWithContainer(SimpleCMSComponentModel component, ContentSlotModel slot) -
isComponentInSlot
-
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
- Returns:
- The catalogs the query needs to write on.
-
getCatalogsForReadAccess
- Returns:
- The catalogs the query needs toread from.
-
createCatalogVersionDTO
-
getCmsComponentService
- Returns:
- the cmsComponentService
-
setCmsComponentService
- Parameters:
cmsComponentService- the cmsComponentService to set
-
getCatalogVersionService
- Returns:
- the catalogVersionService
-
setCatalogVersionService
- Parameters:
catalogVersionService- the catalogVersionService to set
-
getModelService
- Returns:
- the modelService
-
setModelService
- Parameters:
modelService- the modelService to set
-
getConverter
- Returns:
- the converter
-
setConverter
public void setConverter(Converter<CxCmsComponentContainerModel, CxCmsComponentContainerData> converter) - Parameters:
converter- the converter to set
-
getFlexibleSearchService
-
setFlexibleSearchService
-
getCatalogService
-
setCatalogService
-