Package org.jitterbit.integration.data.entity

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


        protected Generator(Transformation tf) {
            this.transformation = tf;
        }

        public String getTitle() {
            IntegrationEntityId databaseId = getDatabaseId();
            if (databaseId != null) {
                return getEntityName(databaseId);
            }
            IntegrationEntityId wsCallId = getWebServiceCallId();
            if (wsCallId != null) {
                return getEntityName(wsCallId);
            }
            IntegrationEntityId textDocId = getTextDocumentId();
            if (textDocId != null) {
                return getEntityName(textDocId);
            }
            JmsMessageId jmsId = getJmsMessageId();
            if (jmsId != null) {
View Full Code Here


      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

                org.jitterbit.integration.server.implementation.webservice.interchange.treemapper.client.BreakLocation wsFrame = wsTestResult
                                .getCallStack()[n];
                GeneratorInstance generatorInstance = createGeneratorInstance(wsTestResult);
                callStack[n] = new BreakLocationImpl(wsFrame, targetNodePath, generatorInstance);
            }
            IntegrationEntityId id = debuggeeId;
            for (int n = size - 1; n >= 0; --n) {
                BreakLocationImpl loc = callStack[n];
                if (loc.getIntegrationEntityId() == null) {
                    loc.fillInIntegrationEntityId(id);
                }
View Full Code Here

    public static final class Factory extends AbstractFactory<TestConnectionResult> {

        @Override
        public TestConnectionResult restore(Persistor p) {
            EntityType entityType = restoreEntityType(p);
            IntegrationEntityId entityId = restoreEntityId(p, ENTITY_ID, entityType);
            long timestamp = restoreTimestamp(p);
            Outcome outcome = restoreOutcome(p);
            String message = restoreDetails(p);
            TestConnectionResult result = new TestConnectionResult(entityId, timestamp, outcome, message);
            LocationSpecificConnectionDetails locationDetails = null; // TODO: Restore these
View Full Code Here

*/
final class WsBreakLocationBuilder {

    public static BreakLocation build(org.jitterbit.integration.debug.client.BreakLocation loc) {
        BreakLocation wsBreakLoc = new BreakLocation();
        IntegrationEntityId id = loc.getIntegrationEntityId();
       
        if (id instanceof ScriptId) {
            wsBreakLoc.setScriptGuid(id.toString());
        }
        else if (id instanceof TransformationId) {
            wsBreakLoc.setTransformationGuid(id.toString());
        }
        else if (id instanceof OperationId) {
            wsBreakLoc.setOperationGuid(id.toString());
        }
        wsBreakLoc.setLineNumber(loc.getLineNumber());
        wsBreakLoc.setNodePath(loc.getTargetNodePath());
        return wsBreakLoc;
    }
View Full Code Here

        selector.setSelectedEntity(currentlySelected);
        selector.setDefaultAction(new SelectAction(entityClass));
    }

    private T getCurrentEntity(Class<T> cls) {
        IntegrationEntityId id = getCurrentEntityId(node);
        IntegrationEntityLookup lookup = controller.getEntityLookup();
        return lookup.getEntity(id, cls);
    }
View Full Code Here

    }
   
    public final List<V> getAllPermissions() {
        List<V> all = Lists.newArrayList();
        for (Map.Entry<IntegrationEntityId, Map<T, Permissions>> e : permissionsMap.entrySet()) {
            IntegrationEntityId entityId = e.getKey();
            for (Map.Entry<T, Permissions> e2 : e.getValue().entrySet()) {
                T roleId = e2.getKey();
                Permissions bits = e2.getValue();
                V v = createRolePermission(entityId, roleId, bits);
                all.add(v);
View Full Code Here

        }

        public final V parseLine(String line) throws PermissionsStorageException {
            String[] tokens = line.split(",");
            try {
                IntegrationEntityId entityId = type.getIntegrationId(tokens[0]);
                T roleId = parseRoleId(tokens[1]);
                int allowed = Integer.parseInt(tokens[2]);
                int denied = Integer.parseInt(tokens[3]);
                return createRolePermission(entityId, roleId, allowed, denied);
            } catch (NumberFormatException e) {
View Full Code Here

        return veto;
    }

    public ItemPermissions getItemPermissions(IntegrationEntity entity) {
        EntityType type = entity.getEntityType();
        IntegrationEntityId id = entity.getID();
        UserMap um = userMaps.get(type);
        List<UserPermission> userEntries = um.getAllPermissionsForItem(id);
        GroupMap gm = groupMaps.get(type);
        List<GroupPermission> groupEntries = gm.getAllPermissionsForItem(id);
        return new ItemPermissions(userEntries, groupEntries);
View Full Code Here

        return new ItemPermissions(userEntries, groupEntries);
    }

    public void removeEntity(IntegrationEntity entity) {
        EntityType type = entity.getEntityType();
        IntegrationEntityId id = entity.getID();
        userMaps.get(type).remove(id);
        groupMaps.get(type).remove(id);
    }
View Full Code Here

TOP

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

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.