Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.EntityType


    public void insertEntity(IntegrationEntity entity, IntegrationEntity parent) {
        // TODO: We should perhaps handle the case where entity already
        // belongs to another parent. That should never happen, but since this
        // is a public method and all...
        if (parent == null) {
            EntityType type = EntityUtils.getItemType(entity);
            parent = getRootFolder(type);
        }
        if (ProjectUtils.getProject(parent) != this) {
            return;
        }
View Full Code Here


                }
            }
        }

        private RootFolder getRootFolderForEntity(IntegrationEntity e) {
            EntityType type = EntityUtils.getItemType(e);
            RootFolder rf = projectShell.getRootFolder(type);
            return rf;
        }
View Full Code Here

        }

        private IntegrationEntity attachToParent() {
            remainingItems.remove(currentParent);
            if (currentParent instanceof RootFolder) {
                EntityType type = EntityUtils.getItemType(currentEntity);
                RootFolder rf = projectShell.getRootFolder(type);
                currentEntity.setParent(rf);
                return null;
            }
            IntegrationEntity parentClone = getParentClone(currentParent);
View Full Code Here

        }
    }

    public void add(IntegrationEntity e) {
        if (this.items.add(e)) {
            EntityType type = EntityUtils.getItemType(e);
            typeMap.put(type, e);
            if (type.isWizardType()) {
                containsWizards = true;
            }
            IntegrationEntity parent = e.getParent();
            while (parent != null && !(parent instanceof RootFolder)) {
                typeMap.put(type, parent);
View Full Code Here

        }
    }

    private void processSharedItems(Folder root) {
        Folder shared = null;
        EntityType type = root.getItemType();
        for (IntegrationEntity e : root.getAllItems()) {
            if (SalesforceUtils.isSalesforceWizardObject(e)) {
                if (shared == null) {
                    shared = SalesforceProjectFolders.createSharedItemsFolder(type);
                    project.insertEntity(shared, root);
View Full Code Here

    public void visit(PipelineActivity a) {
        if (a instanceof IntegrationEntityPipelineActivity) {
            IntegrationEntityPipelineActivity<?> ia = (IntegrationEntityPipelineActivity) a;
            set(ia);
            EntityType type = ia.getEntityType();
            if (type == EntityType.Transformation || type == EntityType.WebServiceCall) {
                set((Function) ia.getContent());
            }
        }
    }
View Full Code Here

    InterchangeDataParser dataParser = new InterchangeDataParser(folders);

    InterchangeDataRow[] arrData = folders.getRows();
    int iCurrentEntityType = 0;
    EntityType entityType = null;

    // Create a list where "orphaned" folders are stored.
    // These will be adopted once all the folders have been created.
    List<OrphanFolder> orphanFolders = Lists.newArrayList();
View Full Code Here

      FolderId parentFolderId = getFolderId(keyValues.get(FolderItem.PARENT_FOLDER_ID));
      if ( parentFolderId != null ) {
        Folder folder = m_folderIdFolderMap.get(parentFolderId);
        if ( folder != null ) {
          int iEntityTypeId = keyValues.getInt(FolderItem.ENTITY_TYPE_ID);
          EntityType et = EntityType.fromId(iEntityTypeId);
          IntegrationEntityId itemId = et.getIntegrationId( keyValues.get(FolderItem.ITEM_ID) );
          addEntityToFolder(itemId, folder);
        }
      }
    }
  }
View Full Code Here

        return activityPageManager;
    }

    private ActivitySubject getEntrySubject(IntegrationEntity entity) throws IllegalArgumentException {
        if (entity instanceof RootFolder) {
            EntityType itemType = ((RootFolder) entity).getItemType();
            if (itemType == EntityType.Project) {
                return new EntireSystemSubject();
            }
        }
        return IntegrationEntityActivitySubject.create(entity);
View Full Code Here

        }
    }


    private EntitySearchPanel createSearchUi() {
        EntityType type = root.getItemType();
        SearchFieldsPanel fieldsPanel = createSearchFieldsPanel(type);
        if (fieldsPanel == null) {
            return null;
        }
        List<IntegrationEntity> items = root.getAllItemsRecursively();
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.EntityType

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.