Package com.qfs.snl.dtos
Class DtoUtil
java.lang.Object
com.qfs.snl.dtos.DtoUtil
Collection of helper methods about DTOs.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormFieldTypeDtoCreates the DTO for a field type.static FormFieldDtocreateFormFieldDto(IFormField field) Creates the DTO for a form field.static TaskDtocreateTaskDto(IUserTask task) Creates a task DTO from a given task.
-
Method Details
-
createTaskDto
Creates a task DTO from a given task.- Parameters:
task- task to convert as DTO- Returns:
- the equivalent DTO
-
createFormFieldDto
Creates the DTO for a form field.- Parameters:
field- the form field to convert- Returns:
- the equivalent DTO
-
createFieldTypeDto
Creates the DTO for a field type.- Parameters:
type- type to convert into DTO- Returns:
- the equivalent DTO
-