Class CMSWorkflowTaskDataPopulator
java.lang.Object
de.hybris.platform.cmsfacades.workflow.populator.CMSWorkflowTaskDataPopulator
- All Implemented Interfaces:
Populator<WorkflowActionModel,List<CMSWorkflowTaskData>>
public class CMSWorkflowTaskDataPopulator
extends Object
implements Populator<WorkflowActionModel,List<CMSWorkflowTaskData>>
Populates a list of
CMSWorkflowTaskData instance from the WorkflowActionModel source data model.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Converter<WorkflowActionModel,CMSWorkflowActionData> protected CMSWorkflowParticipantServiceprotected LocalizedPopulatorgetNewPageCatalogNameMap(CMSWorkflowAttachmentData workflowAttachmentData) protected TypeServiceprotected UserServiceprotected Predicate<WorkflowItemAttachmentModel>Verifies that the item type of given attachment is a page type.protected Predicate<WorkflowActionModel>Verifies that the PrincipalAssigned of givenWorkflowActionModelis part of related principals of current user.voidpopulate(WorkflowActionModel workflowActionModel, List<CMSWorkflowTaskData> cmsWorkflowTaskDataList) Populate the target instance with values from the source instance.protected CMSWorkflowAttachmentDatapopulateWorkflowAttachmentData(CMSItemModel attachmentItem) Returns the attachment data for the providedCMSItemModel.voidsetCmsWorkflowActionDataConverter(Converter<WorkflowActionModel, CMSWorkflowActionData> cmsWorkflowActionDataConverter) voidsetCmsWorkflowParticipantService(CMSWorkflowParticipantService cmsWorkflowParticipantService) voidsetLocalizedPopulator(LocalizedPopulator localizedPopulator) voidsetTypeService(TypeService typeService) voidsetUserService(UserService userService)
-
Constructor Details
-
CMSWorkflowTaskDataPopulator
public CMSWorkflowTaskDataPopulator()
-
-
Method Details
-
populate
public void populate(WorkflowActionModel workflowActionModel, List<CMSWorkflowTaskData> cmsWorkflowTaskDataList) throws ConversionException Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<WorkflowActionModel,List<CMSWorkflowTaskData>> - Parameters:
workflowActionModel- the source objectcmsWorkflowTaskDataList- the target to fill- Throws:
ConversionException- if an error occurs
-
populateWorkflowAttachmentData
Returns the attachment data for the providedCMSItemModel.- Parameters:
attachmentItem- The attached page.- Returns:
- The associated
CMSWorkflowAttachmentData.
-
isPageTypeAttachment
Verifies that the item type of given attachment is a page type.- Returns:
- true if the attachment is of type page, false otherwise.
-
isPrincipalAssignedInCurrentPrincipals
Verifies that the PrincipalAssigned of givenWorkflowActionModelis part of related principals of current user.- Returns:
- true if the PrincipalAssigned is part of the related principals of current user, false otherwise.
-
getCmsWorkflowActionDataConverter
-
setCmsWorkflowActionDataConverter
public void setCmsWorkflowActionDataConverter(Converter<WorkflowActionModel, CMSWorkflowActionData> cmsWorkflowActionDataConverter) -
getUserService
-
setUserService
-
getCmsWorkflowParticipantService
-
setCmsWorkflowParticipantService
public void setCmsWorkflowParticipantService(CMSWorkflowParticipantService cmsWorkflowParticipantService) -
getTypeService
-
setTypeService
-
getNewPageCatalogNameMap
protected Map<String,String> getNewPageCatalogNameMap(CMSWorkflowAttachmentData workflowAttachmentData) -
getLocalizedPopulator
-
setLocalizedPopulator
-