Class EntityV3DtoConverters
- java.lang.Object
-
- com.netflix.genie.web.data.services.impl.jpa.converters.EntityV3DtoConverters
-
public final class EntityV3DtoConverters extends java.lang.Object
Converters between entities and V3 DTOs.- Since:
- 3.3.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Job
toJobDto(JobProjection jobProjection)
Convert the data in this job projection into a job DTO for external exposure.static JobExecution
toJobExecutionDto(JobExecutionProjection jobExecutionProjection)
Convert job execution database data into a DTO.static JobMetadata
toJobMetadataDto(JobMetadataProjection jobMetadataProjection)
Convert job metadata information to a DTO.static JobRequest
toJobRequestDto(JobRequestProjection jobRequestProjection)
Convert database record into a DTO.static UserResourcesSummary
toUserResourceSummaryDto(UserJobResourcesAggregate userJobResourcesAggregate)
Convert a user resources summary to a DTO.
-
-
-
Method Detail
-
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
-
toJobRequestDto
public static JobRequest toJobRequestDto(JobRequestProjection jobRequestProjection)
Convert database record into a DTO.- Parameters:
jobRequestProjection
- The database data to convert- Returns:
- A
JobRequest
instance
-
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
-
-