Examples of MetadataJob


Examples of com.socrata.datasync.job.MetadataJob

                                if(openedFileExtension.equals(STANDARD_JOB_FILE_EXTENSION)) {
                                    addJobTab(new IntegrationJob(openedFileLocation));
                                } else if(openedFileExtension.equals(PORT_JOB_FILE_EXTENSION)) {
                                    addJobTab(new PortJob(openedFileLocation));
                                } else if (openedFileExtension.equals(METADATA_JOB_FILE_EXTENSION)) {
                                  addJobTab(new MetadataJob(openedFileLocation));
                                } else {
                                    throw new Exception("unrecognized file extension (" + openedFileExtension + ")");
                                }
                            }
                            // Switch to opened file's tab
View Full Code Here

Examples of com.socrata.datasync.job.MetadataJob

        }
    }

    private class NewMetadataJobListener implements ActionListener {
      public void actionPerformed(ActionEvent e) {
        addJobTab(new MetadataJob());
        jobTabsPane.setSelectedIndex(jobTabsPane.getTabCount() - 1);
      }
View Full Code Here

Examples of com.socrata.datasync.job.MetadataJob

        }
    }
   
    private void populateJobFromFields() {
      if (metadataJob == null) {
        metadataJob = new MetadataJob();
      }
      metadataJob.setDatasetID(datasetIDTextField.getText());
      metadataJob.setTitle(titleTextField.getText());
      metadataJob.setDescription(descriptionTextArea.getText());
      metadataJob.setCategory(categoryTextField.getText());
View Full Code Here

Examples of com.socrata.datasync.job.MetadataJob

    private class LoadMetadataActionListener implements ActionListener {
      public void actionPerformed(ActionEvent event) {
        int confirmResult = JOptionPane.showConfirmDialog(mainFrame, "This will reset the values in all metadata fields with the saved metadata values.  Any unsaved changes will be lost.  Do you want to continue?", "Reset Metadata Fields", JOptionPane.OK_CANCEL_OPTION);
        if (confirmResult == JOptionPane.OK_OPTION) {
          if (metadataJob == null) {
            metadataJob = new MetadataJob();
          }
         
          metadataJob.setDatasetID(datasetIDTextField.getText());         
          String resultingErrors = metadataJob.loadCurrentMetadata();
          if (!StringUtils.isBlank(resultingErrors)) {
View Full Code Here

Examples of com.socrata.datasync.job.MetadataJob

        if(jobFile.exists()) {
            try {
              Job job;
              //TODO BW: Follow how port jobs are run from command line?
              if (jobFileToRun.endsWith(MetadataJobTab.JOB_FILE_EXTENSION)) {
                job = new MetadataJob(jobFileToRun);
              }
              else {
                job = new IntegrationJob(jobFileToRun);
              }
                JobStatus status = job.run();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.