Package org.jitterbit.integration.data.entity.id

Examples of org.jitterbit.integration.data.entity.id.IntegrationProjectId


     *            the name of the new project.
     * @return a new, empty <tt>IntegrationProject</tt> instance.
     * @see #createExistingProjectShell(String, IntegrationProjectId)
     */
    public static IntegrationProject createNewProject(String name) {
        IntegrationProjectId id = new IntegrationProjectId();
        if (name == null) {
            name = id.toString();
        }
        IntegrationProject p = new IntegrationProject(name, id);
        Date date = new Date();
        p.setCreatedAt(date);
        p.setModifiedAt(date);
View Full Code Here


     * <p>
     * <strong>Note:</strong> Do not use this method unless you absolutely know what you are doing.
     * Changing the ID of an existing <code>IntegrationProject</code> is almost always a bad idea.
     */
    public void generateNewId() {
        setID(new IntegrationProjectId());
    }
View Full Code Here

        String location = p.getString("location");
        if (location == null) {
            return null;
        }
        try {
            return new ProjectDescriptor(new IntegrationProjectId(guid), name, new File(location));
        } catch (Exception ex) {
            // Invalid GUID
            ex.printStackTrace();
            return null;
        }
View Full Code Here

    for( int i = 0; i < N; ++i ) {
      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

      // 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);
      }

            if( parentFolderId == null ) {
        RootFolder rootFolder = getRootFolder(entityType, project);
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

        @Override
        public ProjectBackupDescriptor apply(ProjectBackupTabRow row) {
            Builder builder = ProjectBackupDescriptor.builder();
            builder.setBackupId(row.get_projectbackup_id())
                   .setProjectId(new IntegrationProjectId(row.get_interchangeproject_guid()))
                   .setServerId(new ServerGuid(KongaGuid.createGuid().toString()))
                   .setFilePath(new File(kongaHome, row.get_uploadedfilename()).getAbsolutePath())
                   .setBackupDate(row.get_uploadtime())
                   .setTag(row.get_tag())
                   .setUser(getUserName(row));
View Full Code Here

        return properties.getProperty(key);
    }

    public IntegrationProjectId getProjectID() {
        String s = properties.getProperty(PROJECT_ID);
        IntegrationProjectId id = null;
        if (s != null && s.length() > 0) {
            try {
                id = new IntegrationProjectId(s);
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
            }
        }
        return id;
View Full Code Here

     *
     */
    public IntegrationProjectId getProjectId() {
        if (properties != null) {
            String id = properties.getProperty(ProjectFile.PROJECT_ID);
            return new IntegrationProjectId(id);
        }
        return null;
    }
View Full Code Here

                    throws InterchangeLoadingException, UnsupportedVersionException {
        logger.fine("Loading the project " + name + " from " + rootDirectory.getAbsolutePath());
        checkPreReqs(name, rootDirectory);
        tracker.beginLoadingProject();
        ProjectFile projectFile = loadProjectFile(name, rootDirectory);
        IntegrationProjectId id = projectFile.getProjectID();
        if (id == null) {
            throw new InterchangeLoadingException("There is a problem with the project: the project ID is missing. " +
                "Please contact Jitterbit support.");
        }
        IntegrationProject project = IntegrationProject.createExistingProjectShell(name, id);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.IntegrationProjectId

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.