Class EntityV3DtoConverters
java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.converters.EntityV3DtoConverters
Converters between entities and V3 DTOs.
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 UserResourcesSummary
toUserResourceSummaryDto
(UserJobResourcesAggregate userJobResourcesAggregate) Convert a user resources summary to a DTO.
-
Method Details
-
toJobDto
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
Convert job execution database data into a DTO.- Parameters:
jobExecutionProjection
- The database data- Returns:
JobExecution
instance
-
toJobMetadataDto
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
-