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 FormFieldTypeDto
Creates the DTO for a field type.static FormFieldDto
createFormFieldDto
(IFormField field) Creates the DTO for a form field.static TaskDto
createTaskDto
(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
-