Class DtoUtil

java.lang.Object
com.qfs.snl.dtos.DtoUtil

public class DtoUtil extends Object
Collection of helper methods about DTOs.
Author:
ActiveViam
  • Method Details Link icon

    • createTaskDto Link icon

      public static TaskDto createTaskDto(IUserTask task)
      Creates a task DTO from a given task.
      Parameters:
      task - task to convert as DTO
      Returns:
      the equivalent DTO
    • createFormFieldDto Link icon

      public static FormFieldDto createFormFieldDto(IFormField field)
      Creates the DTO for a form field.
      Parameters:
      field - the form field to convert
      Returns:
      the equivalent DTO
    • createFieldTypeDto Link icon

      public static FormFieldTypeDto createFieldTypeDto(IFormField.IType type)
      Creates the DTO for a field type.
      Parameters:
      type - type to convert into DTO
      Returns:
      the equivalent DTO