Class PublishPostWorkflowAction
java.lang.Object
de.hybris.platform.cmsfacades.workflow.postaction.impl.PublishPostWorkflowAction
- All Implemented Interfaces:
PostWorkflowAction
Automatic action performed after the completion of the Publish action in the workflow.
Note: Purposefully not implemented as an AutomatedWorkflowTemplateJob; see CMSX-8521 for more details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SyncRequestDatabuildSyncRequestData(Map.Entry<String, Set<CMSItemModel>> itemsByCatalogVersionEntry) Creates aSyncRequestDataobject determining the catalog and catalog versions to be used by the synchronization job.voidexecute(WorkflowModel workflow) protected Map<String,Set<CMSItemModel>> Find all items defined in a non-active catalog version and group the items by catalog.protected ItemSynchronizationServiceprotected SyncConfigprotected CMSWorkflowActionServiceprotected voidperformItemsSync(Map.Entry<String, Set<CMSItemModel>> itemsByCatalogVersionEntry) Synchronizes all items defined in the same catalog version to the associated active catalog version.protected voidpublishItems(List<CMSItemModel> items) Synchronizes items from a non-active catalog version to the respective active catalog version.voidsetItemSynchronizationService(ItemSynchronizationService itemSynchronizationService) voidsetSyncConfig(SyncConfig syncConfig) voidsetWorkflowActionService(CMSWorkflowActionService workflowActionService)
-
Constructor Details
-
PublishPostWorkflowAction
public PublishPostWorkflowAction()
-
-
Method Details
-
isApplicable
- Specified by:
isApplicablein interfacePostWorkflowAction
-
execute
- Specified by:
executein interfacePostWorkflowAction
-
publishItems
Synchronizes items from a non-active catalog version to the respective active catalog version.- Parameters:
items- the items to be synchronized
-
performItemsSync
Synchronizes all items defined in the same catalog version to the associated active catalog version.- Parameters:
itemsByCatalogVersionEntry- the entry containing the source catalog version name and a collection of items that are defined in the same source catalog version.
-
buildSyncRequestData
protected SyncRequestData buildSyncRequestData(Map.Entry<String, Set<CMSItemModel>> itemsByCatalogVersionEntry) Creates aSyncRequestDataobject determining the catalog and catalog versions to be used by the synchronization job.- Parameters:
itemsByCatalogVersionEntry- the entry containing the source catalog version name and a collection of items that are defined in the same source catalog version.
-
findNonActiveItemsGroupedByCatalog
protected Map<String,Set<CMSItemModel>> findNonActiveItemsGroupedByCatalog(List<CMSItemModel> items) Find all items defined in a non-active catalog version and group the items by catalog.- Returns:
- a map of
<catalogId, CMSItems>
-
getItemSynchronizationService
-
setItemSynchronizationService
-
getSyncConfig
-
setSyncConfig
-
getWorkflowActionService
-
setWorkflowActionService
-