Class CMSWorkflowTaskDataPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.workflow.populator.CMSWorkflowTaskDataPopulator
-
- All Implemented Interfaces:
Populator<WorkflowActionModel,java.util.List<CMSWorkflowTaskData>>
public class CMSWorkflowTaskDataPopulator extends java.lang.Object implements Populator<WorkflowActionModel,java.util.List<CMSWorkflowTaskData>>
Populates a list ofCMSWorkflowTaskDatainstance from theWorkflowActionModelsource data model.
-
-
Constructor Summary
Constructors Constructor Description CMSWorkflowTaskDataPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter<WorkflowActionModel,CMSWorkflowActionData>getCmsWorkflowActionDataConverter()protected CMSWorkflowParticipantServicegetCmsWorkflowParticipantService()protected TypeServicegetTypeService()protected UserServicegetUserService()protected java.util.function.Predicate<WorkflowItemAttachmentModel>isPageTypeAttachment()Verifies that the item type of given attachment is a page type.protected java.util.function.Predicate<WorkflowActionModel>isPrincipalAssignedInCurrentPrincipals()Verifies that the PrincipalAssigned of givenWorkflowActionModelis part of related principals of current user.voidpopulate(WorkflowActionModel workflowActionModel, java.util.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)voidsetTypeService(TypeService typeService)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
populate
public void populate(WorkflowActionModel workflowActionModel, java.util.List<CMSWorkflowTaskData> cmsWorkflowTaskDataList) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<WorkflowActionModel,java.util.List<CMSWorkflowTaskData>>- Parameters:
workflowActionModel- the source objectcmsWorkflowTaskDataList- the target to fill- Throws:
ConversionException- if an error occurs
-
populateWorkflowAttachmentData
protected CMSWorkflowAttachmentData populateWorkflowAttachmentData(CMSItemModel attachmentItem)
Returns the attachment data for the providedCMSItemModel.- Parameters:
attachmentItem- The attached page.- Returns:
- The associated
CMSWorkflowAttachmentData.
-
isPageTypeAttachment
protected java.util.function.Predicate<WorkflowItemAttachmentModel> 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
protected java.util.function.Predicate<WorkflowActionModel> 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
protected Converter<WorkflowActionModel,CMSWorkflowActionData> getCmsWorkflowActionDataConverter()
-
setCmsWorkflowActionDataConverter
public void setCmsWorkflowActionDataConverter(Converter<WorkflowActionModel,CMSWorkflowActionData> cmsWorkflowActionDataConverter)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCmsWorkflowParticipantService
protected CMSWorkflowParticipantService getCmsWorkflowParticipantService()
-
setCmsWorkflowParticipantService
public void setCmsWorkflowParticipantService(CMSWorkflowParticipantService cmsWorkflowParticipantService)
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-