public ProcessGroupFlowEntity createProcessGroupFlowEntity(final ProcessGroupFlowDTO dto, final PermissionsDTO permissions) { final ProcessGroupFlowEntity entity = new ProcessGroupFlowEntity(); entity.setProcessGroupFlow(dto); entity.setPermissions(permissions); return entity; }
public RegistryEntity createRegistryEntity(final RegistryDTO dto) { final RegistryEntity entity = new RegistryEntity(); if (dto != null) { entity.setRegistry(dto); } return entity; }
public static void merge(AllowableValueEntity clientAllowableValue, Collection<AllowableValueEntity> allowableValues) { for (AllowableValueEntity allowableValue : allowableValues) { if (clientAllowableValue.getCanRead() && !allowableValue.getCanRead()) { clientAllowableValue.setAllowableValue(allowableValue.getAllowableValue()); clientAllowableValue.setCanRead(allowableValue.getCanRead()); } } } }
public AllowableValueEntity createAllowableValueEntity(final AllowableValueDTO dto, final boolean canRead) { final AllowableValueEntity entity = new AllowableValueEntity(); entity.setCanRead(canRead); entity.setAllowableValue(dto); return entity; }
public VersionControlInformationEntity createVersionControlInformationEntity(final VersionControlInformationDTO dto, final RevisionDTO processGroupRevision) { final VersionControlInformationEntity entity = new VersionControlInformationEntity(); entity.setVersionControlInformation(dto); entity.setProcessGroupRevision(processGroupRevision); return entity; }
private VersionedFlowSnapshotMetadataEntity createVersionedFlowSnapshotMetadataEntity(final String registryId, final VersionedFlowSnapshotMetadata metadata) { if (metadata == null) { return null; } final VersionedFlowSnapshotMetadataEntity entity = new VersionedFlowSnapshotMetadataEntity(); entity.setRegistryId(registryId); entity.setVersionedFlowMetadata(metadata); return entity; }
@Override protected ProcessGroupFlowDTO getDto(final ProcessGroupFlowEntity entity) { return entity.getProcessGroupFlow(); }
public SnippetEntity createSnippetEntity(final SnippetDTO dto) { final SnippetEntity entity = new SnippetEntity(); entity.setSnippet(dto); return entity; }
@Override protected ControllerDTO getDto(ControllerEntity entity) { return entity.getController(); }
@Override protected SystemDiagnosticsDTO getDto(SystemDiagnosticsEntity entity) { return entity.getSystemDiagnostics(); }
@Override protected CountersDTO getDto(CountersEntity entity) { return entity.getCounters(); }
@Override protected Set<DocumentedTypeDTO> getDto(ControllerServiceTypesEntity entity) { return entity.getControllerServiceTypes(); }
@Override protected ControllerStatusDTO getDto(ControllerStatusEntity entity) { return entity.getControllerStatus(); }
@Override protected ComponentStateDTO getDto(ComponentStateEntity entity) { return entity.getComponentState(); }
@Override protected DropRequestDTO getDto(DropRequestEntity entity) { return entity.getDropRequest(); }
@Override protected BulletinBoardDTO getDto(BulletinBoardEntity entity) { return entity.getBulletinBoard(); }
@Override protected Set<DocumentedTypeDTO> getDto(PrioritizerTypesEntity entity) { return entity.getPrioritizerTypes(); }
@Override protected ListingRequestDTO getDto(ListingRequestEntity entity) { return entity.getListingRequest(); }
@Override protected ProvenanceEventDTO getDto(ProvenanceEventEntity entity) { return entity.getProvenanceEvent(); }
@Override protected Set<DocumentedTypeDTO> getDto(ReportingTaskTypesEntity entity) { return entity.getReportingTaskTypes(); }