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

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


    public void setCharset(String charset) {
        this.charset = charset;
    }

    public void openFile(DataFilesInfo info) {
        OperationId opId = info.getOperationId();
        DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), fileType, 1, 1);
        Worker worker = new Worker(fileId);
        worker.execute();
    }
View Full Code Here


                // amounts to the first source chunk. In the case where the user has done a
                // Test Operation, however, and is currently viewing the data for another
                // chunk (the second, say), and does a Test Transformation (maybe after
                // having changed a mapping), we really need to use that chunk number in order
                // for the displayed result to make sense.
                OperationId opId = info.getOperationId();
                DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), DataFileType.SOURCE, 1, 1);
                if (info.contains(fileId)) {
                    return new SourceDataIdentifier(info.getServerInfo(), info.getGuid());
                }
            }
View Full Code Here

   
    private void sendUndoableEdit(OperationWrapperNode opNode,
                                  PipelineActivity activity,
                                  IntegrationEntity newContent,
                                  IntegrationEntity previousContent) {
        OperationId opId = opNode.getOperationId();
        PipelineActivityPosition pos = opNode.getPipeline().getPosition(activity);
        ActivityContentChangedEdit edit = new ActivityContentChangedEdit(
                        controller,
                        opId,
                        pos,
View Full Code Here

    public OperationNodeLayoutCache(Persistor p) {
        this();
        try {
            Map<OperationId, OperationTypeCache> restored = Maps.newHashMap();
            for (Persistor cachedOpRoot : p.getChildren(CACHED_OP)) {
                OperationId opId = new OperationId(cachedOpRoot.getString(OP_ID));
                OperationTypeCache cache = new OperationTypeCache(cachedOpRoot);
                restored.put(opId, cache);
            }
            operationCaches.putAll(restored);
        } catch (RuntimeException ex) {
View Full Code Here

            ErrorLog.log(OperationNodeLayoutCache.class, "Failed to restore the OperationNodeLayoutCache", ex);
        }
    }

    public void add(OperationNodeLayout layout) {
        OperationId opId = layout.getOperationNode().getOperationId();
        OperationTypeCache typeCache = operationCaches.get(opId);
        if (typeCache == null) {
            typeCache = new OperationTypeCache();
            operationCaches.put(opId, typeCache);
        }
View Full Code Here

            this.activityBounds.put(pos, new Rectangle(e.getValue()));
        }
    }
   
    public OperationNodeLayoutMemento(Persistor p) {
        operationId = new OperationId(p.getString(OPERATION_ID));
        collapsed = p.getBoolean(COLLAPSED);
        opNodeBounds = PersistUtils.readBounds(p.getFirstChild(OP_NODE_BOUNDS));
        activityBounds = Maps.newHashMap();
        for (Persistor part : p.getChildren(ACTIVITY_NODE)) {
            PipelineActivityPosition pos = PipelineActivityPosition.fromString(part.getString(POSITION));
View Full Code Here

    private final GraphLayoutStore layoutStore;
   
    public ViewLayoutFileAction(OperationGraphController controller) {
        super("View Layout File...");
        this.appWin = controller.getView().getWindow();
        OperationId opId = controller.getGraph().getModel().getStartNode().getOperationId();
        Operation operation = controller.getEntityLookup().getEntity(opId, Operation.class);
        this.layoutStore = new GraphLayoutFileStore(operation);
    }
View Full Code Here

        lst.verify();
    }

    private OperationId insertSuccessOp() {
        OperationWrapper startWrapper = flow.getStartPoint();
        OperationId id = TestData.createSuccessOperation().getID();
        startWrapper.setSuccessOperationId(id);
        return id;
    }
View Full Code Here

    }
   

    @Test
    public void testRemoveSuccessRoute() {
        OperationId id = insertSuccessOp();
        flow.getStartPoint().setFailureOperationId(id);
        Listener lst = new RemoveSuccessRouteListener();
        model.addModelListener(lst);
        flow.getStartPoint().setSuccessOperationId(null);
        lst.verify();
View Full Code Here

    }

   
    @Test
    public void testReplaceSuccessOperation() {
        OperationId firstId = insertSuccessOp();
        ReplaceSuccessOperationListener lst = new ReplaceSuccessOperationListener();
        model.addModelListener(lst);
        OperationId secondId = insertSuccessOp();
        lst.verify();
        assertEquals(firstId, lst.removedOpId);
        assertEquals(secondId, lst.insertedOpId);
    }
View Full Code Here

TOP

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

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.