public MutableAnalysisJobMetadata(final AnalysisJobMetadata metadata) { _jobName = metadata.getJobName(); _jobVersion = metadata.getJobVersion(); _jobDescription = metadata.getJobDescription(); _author = metadata.getAuthor(); _createdDate = metadata.getCreatedDate(); _updatedDate = metadata.getUpdatedDate(); final Map<String, String> variables = metadata.getVariables(); if (variables == null) { _variables = new HashMap<>(); } else { _variables = new HashMap<>(variables); } final Map<String, String> properties = metadata.getProperties(); if (properties == null) { _properties = new HashMap<>(); } else { _properties = new HashMap<>(properties); } }
protected void buildMainSection(final JobMetadataType jobMetadata, final AnalysisJob analysisJob) throws Exception { final AnalysisJobMetadata metadata = getMetadata(analysisJob); final Date createdDate = metadata.getCreatedDate(); if (createdDate != null) { final GregorianCalendar c = new GregorianCalendar(); c.setTime(createdDate); jobMetadata.setCreatedDate(_datatypeFactory.newXMLGregorianCalendar(c)); } jobMetadata.setUpdatedDate(_datatypeFactory.newXMLGregorianCalendar(new GregorianCalendar())); jobMetadata.setAuthor(_author == null ? metadata.getAuthor() : _author); jobMetadata.setJobName(_jobName == null ? metadata.getJobName() : _jobName); jobMetadata.setJobDescription(_jobDescription == null ? metadata.getJobDescription() : _jobDescription); jobMetadata.setJobVersion(_jobVersion == null ? metadata.getJobVersion() : _jobVersion); }
_centerPanel.add(Box.createVerticalStrut(separatorHeight)); final String jobVersion = _metadata.getJobVersion(); if (jobVersion != null) { _centerPanel.add(new JLabel("<html><b>Job version:</b></html>"));
final String jobVersion = existingMetadata.getJobVersion();