Class EntityV3DtoConverters

java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.converters.EntityV3DtoConverters

public final class EntityV3DtoConverters extends Object
Converters between entities and V3 DTOs.
Since:
3.3.0
  • Method Details

    • toJobDto

      public static Job toJobDto(JobProjection jobProjection)
      Convert the data in this job projection into a job DTO for external exposure.
      Parameters:
      jobProjection - The data from the database
      Returns:
      The job DTO representation
    • toJobExecutionDto

      public static JobExecution toJobExecutionDto(JobExecutionProjection jobExecutionProjection)
      Convert job execution database data into a DTO.
      Parameters:
      jobExecutionProjection - The database data
      Returns:
      JobExecution instance
    • toJobMetadataDto

      public static JobMetadata toJobMetadataDto(JobMetadataProjection jobMetadataProjection)
      Convert job metadata information to a DTO.
      Parameters:
      jobMetadataProjection - The database information
      Returns:
      A JobMetadata instance
    • toUserResourceSummaryDto

      public static UserResourcesSummary toUserResourceSummaryDto(UserJobResourcesAggregate userJobResourcesAggregate)
      Convert a user resources summary to a DTO.
      Parameters:
      userJobResourcesAggregate - The database data to convert
      Returns:
      A UserResourcesSummary instance