Class WorkflowPojoMapper
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.pojo.WorkflowPojoMapper
-
public class WorkflowPojoMapper extends java.lang.ObjectUtility class which allows to map workflow models to workflow POJOs
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<WorkflowEntity>mapDtoToWorkflowEntity(ElementDto<ItemModel> elementDto)MapsElementDtotoWorkflowEntitystatic java.util.Optional<Workflow>mapItemToWorkflow(ItemModel itemModel)static java.util.Optional<WorkflowEntity>mapItemToWorkflowEntity(ItemModel itemModel)MapsItemModeltoWorkflowEntity.
-
-
-
Method Detail
-
mapItemToWorkflow
public static java.util.Optional<Workflow> mapItemToWorkflow(ItemModel itemModel)
- Parameters:
itemModel- model to map- Returns:
Optionalwith instance ofWorkflow. IfItemModelis neither instance ofWorkflowTemplateModelnorWorkflowModelthen emptyOptionalis returned
-
mapItemToWorkflowEntity
public static java.util.Optional<WorkflowEntity> mapItemToWorkflowEntity(ItemModel itemModel)
- Parameters:
itemModel- model to map- Returns:
Optionalwith instance ofWorkflow. IfItemModelhas no correspondingWorkflowEntitythen emptyOptionalis returned
-
mapDtoToWorkflowEntity
public static java.util.Optional<WorkflowEntity> mapDtoToWorkflowEntity(ElementDto<ItemModel> elementDto)
MapsElementDtotoWorkflowEntity- Parameters:
elementDto- model to map- Returns:
Optionalwith instance ofWorkflow. IfElementDtohas no correspondingWorkflowEntitythen emptyOptionalis returned
-
-