Package org.jitterbit.integration.data.project

Examples of org.jitterbit.integration.data.project.IntegrationProject$ContentStringBuilder


      StringKeyValuePairs keyValues = dataParser.parse(interchangeProjects[i]);

      String stName = keyValues.getString(IntegrationProject.PROPERTY_INTERCHANGE_PROJECT_NAME);
      String sId = keyValues.getString(IntegrationProject.PROPERTY_INTERCHANGE_PROJECT_ID);
      IntegrationProjectId id = (IntegrationProjectId)EntityType.Project.getIntegrationId(sId);
      IntegrationProject project = IntegrationProject.createExistingProjectShell(stName, id);
      project.setGlobalDataElements(new DefaultGlobalDataElements());
      m_integrationProjectMap.put(id, project);
    }
  }
View Full Code Here


      Folder folder = new Folder(folderId, stName, entityType);

      m_folderIdFolderMap.put(folderId, folder);

      // Assign to InterchangeProject if possible.
      IntegrationProject project = null;
      String sProjectId = keyValues.getString(IntegrationProject.PROPERTY_INTERCHANGE_PROJECT_ID);
      if ( sProjectId != null ) {
        IntegrationProjectId projectId = (IntegrationProjectId)EntityType.Project.getIntegrationId(sProjectId);
        project = m_integrationProjectMap.get(projectId);
      }
View Full Code Here

      // Check if it is specified to which project this entity belongs.
      String sProjectId = keyValues.getString(IntegrationProject.PROPERTY_INTERCHANGE_PROJECT_ID);
      if ( sProjectId != null ) {
        IntegrationProjectId projectId = (IntegrationProjectId)EntityType.Project.getIntegrationId(sProjectId);
        IntegrationProject project = m_integrationProjectMap.get(projectId);
        addEntityToFolderOrProject(entity, project);
      }
    }
  }
View Full Code Here

    }

    private String getScheduleString(Operation op) {
        ScheduleId scheduleId = op.getScheduleId();
        if (scheduleId != null) {
            IntegrationProject project = ProjectUtils.getProject(op);
            if (project != null) {
                Schedule schedule = project.getItemLookup().getEntity(scheduleId, Schedule.class);
                if (schedule != null) {
                    return schedule.getName();
                }
            }
            return "Yes";
View Full Code Here

            EventQueue.invokeAndWait(new Runnable() {

                @Override
                public void run() {
                    ExpressionArea area = new ExpressionArea();
                    IntegrationProject project = IntegrationProject.createNewProject("Test");
                    Operation op = new Operation("Op");
                    project.insertEntityUnderRoot(op);
                    String oldPath = new EntityPath(op).toString();
                    String expression = getRunOperationCall(op);
                    area.setText(ScriptConstants.wrapInTags(expression));
                    op.setName("$Op");
                    String newPath = new EntityPath(op).toString();
View Full Code Here

            displayer.setModel(null);
        }

        @Override
        public void projectOpened(ProjectManagerEvent evt) {
            IntegrationProject project = evt.getProject();
            ManagedProject mp = project.getExtensionObject(ManagedProject.class);
            displayer.setModel(mp.getValidationModel());
        }
View Full Code Here

     */
    public IntegrationProject createNewProject(String projectName, File dir)
                    throws IntegrationProjectFactoryException {
        try {
            IntegrationProjectLock.acquire();
            IntegrationProject project = projectManager.createNewProject(projectName, dir);
            ProjectLocationBrowser.setNewProjectLocation(dir.getParentFile());
            return project;
        } catch (Exception ex) {
            throw convert(projectName, dir, ex);
        } finally {
View Full Code Here

    public IntegrationProject loadExistingProject(String projectName, File dir)
                    throws IntegrationProjectFactoryException, ProjectLoadingCancelledException,
                    UnsupportedVersionException {
        try {
            IntegrationProjectLock.acquire();
            IntegrationProject project = projectManager.loadProject(projectName, dir, new LoadingIssuesPresenter());
            return project;
        } catch (Exception ex) {
            throw convert(projectName, dir, ex);
        } finally {
            IntegrationProjectLock.release();
View Full Code Here

            this.waitLock = waitLock;
        }
       
        @Override
        public void run() {
            IntegrationProject project = loadProject();
            if (project != null) {
                internalCallback.handle(project);
            } else {
                waitLock.release();
            }
View Full Code Here

            this.pageDisplayer = pageDisplayer;
        }

        @Override
        public void testOperation(Transformation tx) {
            IntegrationProject project = ProjectUtils.getProject(tx);
            if (project == null) {
                return;
            }
            DependencyStore dependencies = project.getCurrentDependencies();
            try {
                Operation op = getOperationToTest(dependencies, tx);
                if (op != null && isOperationTestable(op)) {
                    checkDeployAndRun(tx, op);
                }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.project.IntegrationProject$ContentStringBuilder

Copyright © 2018 www.massapicom. 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.