public LabelDTO copy(final LabelDTO original) { final LabelDTO copy = new LabelDTO(); copy.setId(original.getId()); copy.setParentGroupId(original.getParentGroupId()); copy.setLabel(original.getLabel()); copy.setStyle(copy(original.getStyle())); copy.setPosition(original.getPosition()); copy.setWidth(original.getWidth()); copy.setHeight(original.getHeight()); copy.setVersionedComponentId(original.getVersionedComponentId()); return copy; }
private ProcessorDTO buildProcessorDto(String id, final String annotationData, Map<String, String> properties){ ProcessorDTO processorDto = new ProcessorDTO(); processorDto.setId(id); ProcessorConfigDTO configDto = new ProcessorConfigDTO(); processorDto.setConfig(configDto); configDto.setAnnotationData(annotationData); configDto.setProperties(properties); return processorDto; }
@Override public NodeSystemDiagnosticsSnapshotDTO clone() { final NodeSystemDiagnosticsSnapshotDTO other = new NodeSystemDiagnosticsSnapshotDTO(); other.setAddress(getAddress()); other.setApiPort(getApiPort()); other.setNodeId(getNodeId()); other.setSnapshot(getSnapshot().clone()); return other; } }
@Override public CounterDTO clone() { final CounterDTO other = new CounterDTO(); other.setId(getId()); other.setName(getName()); other.setContext(getContext()); other.setValue(getValue()); other.setValueCount(getValueCount()); return other; } }
@Override public GarbageCollectionDTO clone() { final GarbageCollectionDTO other = new GarbageCollectionDTO(); other.setName(getName()); other.setCollectionCount(getCollectionCount()); other.setCollectionTime(getCollectionTime()); other.setCollectionMillis(getCollectionMillis()); return other; } }
public RemoteProcessGroupDTO(final RemoteProcessGroupDTO toCopy) { setId(toCopy.getId()); setPosition(toCopy.getPosition()); targetUri = toCopy.getTargetUri(); name = toCopy.getName(); }
public FunnelDTO copy(final FunnelDTO original) { final FunnelDTO copy = new FunnelDTO(); copy.setId(original.getId()); copy.setParentGroupId(original.getParentGroupId()); copy.setPosition(original.getPosition()); copy.setVersionedComponentId(original.getVersionedComponentId()); return copy; }
@Override public NodeCountersSnapshotDTO clone() { final NodeCountersSnapshotDTO other = new NodeCountersSnapshotDTO(); other.setNodeId(getNodeId()); other.setAddress(getAddress()); other.setApiPort(getApiPort()); other.setSnapshot(getSnapshot().clone()); return other; }
private void updateControllerServiceIdentifiers(final FlowSnippetDTO snippet, final Map<String, String> serviceIdMap) { final Set<ProcessorDTO> processors = snippet.getProcessors(); if (processors != null) { for (final ProcessorDTO processor : processors) { updateControllerServiceIdentifiers(processor.getConfig(), serviceIdMap); } } for (final ProcessGroupDTO processGroupDto : snippet.getProcessGroups()) { updateControllerServiceIdentifiers(processGroupDto.getContents(), serviceIdMap); } }
public BundleDTO copy(final BundleDTO original) { if (original == null) { return null; } final BundleDTO copy = new BundleDTO(); copy.setGroup(original.getGroup()); copy.setArtifact(original.getArtifact()); copy.setVersion(original.getVersion()); return copy; }
private ControllerServiceDTO createDTOWithDesiredRunStatus(final String id, final String runStatus) { final ControllerServiceDTO dto = new ControllerServiceDTO(); dto.setId(id); dto.setState(runStatus); return dto; }
@Override public BulletinEntity createBulletin(final BulletinDTO bulletinDTO, final Boolean canRead){ final Bulletin bulletin = BulletinFactory.createBulletin(bulletinDTO.getCategory(),bulletinDTO.getLevel(),bulletinDTO.getMessage()); bulletinRepository.addBulletin(bulletin); return entityFactory.createBulletinEntity(dtoFactory.createBulletinDto(bulletin),canRead); }
private ReportingTaskDTO createDTOWithDesiredRunStatus(final String id, final String runStatus) { final ReportingTaskDTO dto = new ReportingTaskDTO(); dto.setId(id); dto.setState(runStatus); return dto; }
private ProcessorDTO createDTOWithDesiredRunStatus(final String id, final String runStatus) { final ProcessorDTO dto = new ProcessorDTO(); dto.setId(id); dto.setState(runStatus); return dto; }
@Override public String toString() { return "ConnectionDTO [id: " + getId() + "]"; } }
/** * Creates a ProcessGroupDTO from the specified ProcessGroup. * * @param group group * @param recurse recurse * @return dto */ public ProcessGroupDTO createProcessGroupDto(final ProcessGroup group, final boolean recurse) { final ProcessGroupDTO dto = createConciseProcessGroupDto(group); dto.setContents(createProcessGroupContentsDto(group, recurse)); return dto; }
@Override public String getStateExplanation() { return dto.getStateExplanation(); } })
/** * Creates a ProcessGroupDTO from the specified ProcessGroup. * * @param group group * @return dto */ public ProcessGroupDTO createProcessGroupDto(final ProcessGroup group) { return createProcessGroupDto(group, false); }