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

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


            link(from, email, RouteType.FAILURE);
        }
    }

    private Operation getSuccessOp(OperationWrapper from) {
        OperationId id = from.getSuccessOperationId();
        return entityLookup.getEntity(id, Operation.class);
    }
View Full Code Here


        OperationId id = from.getSuccessOperationId();
        return entityLookup.getEntity(id, Operation.class);
    }

    private Operation getFailureOp(OperationWrapper from) {
        OperationId id = from.getFailureOperationId();
        return entityLookup.getEntity(id, Operation.class);
    }
View Full Code Here

        schedulePolicy = p;
        fireChange(SCHEDULE_POLICY_PROPERTY, old, p);
    }

    public void setSuccessOperationId(OperationId id) {
        OperationId old = successOpId;
        successOpId = id;
        fireChange(SUCCESS_OP_PROPERTY, old, id);
    }
View Full Code Here

    private Operation lookupFailureOperation(Operation op, IntegrationEntityLookup lookup) {
        return lookup.getEntity(op.getFailureOperationId(), Operation.class);
    }
   
    private void collectPreceedingOperations(Operation op, ProjectDependencies dependencies) {
        OperationId opId = op.getID();
        for (Operation dep : dependencies.getDependingObjects(op).transform(KongaFunctions.cast(Operation.class))) {
            if (opId.equals(dep.getSuccessOperationId())) {
                preceedingSuccess.add(dep);
            }
            if (opId.equals(dep.getFailureOperationId())) {
                preceedingFailure.add(dep);
            }
        }
    }
View Full Code Here

    public OperationId getSuccessOperationId() {
        return successOpId;
    }

    public void setFailureOperationId(OperationId id) {
        OperationId old = failureOpId;
        failureOpId = id;
        fireChange(FAILURE_OP_PROPERTY, old, id);
    }
View Full Code Here

        }

        private void loadOperation(Map<HttpVerb, Set<TriggeredOperation>> operations,
                                   HttpVerb verb,
                                   Persistor opPersistor) {
            OperationId opId = new OperationId(opPersistor.getString(OPERATION_ID));
            OperationRunMode runMode = OperationRunMode.valueOf(opPersistor.getString(RUN_MODE));
            boolean responseGenerator = readBoolean(opPersistor, RESPONSE_GENERATOR, false);
            boolean useRequestAsSource = readBoolean(opPersistor, USE_REQUEST_AS_SOURCE, true);
            TriggeredOperation op = new TriggeredOperation(
                            opId, verb, runMode, responseGenerator, useRequestAsSource);
View Full Code Here

            return copy;
        }

        private void copyOperationsForVerb(HttpVerb verb) {
            for (TriggeredOperation to : original.getOperationsForVerb(verb)) {
                OperationId originalOpId = to.getOperationId();
                OperationId newOpId = clones.get(originalOpId);
                if (newOpId != null) {
                    copy.addOperation(to.replaceOperationId(newOpId));
                } else {
                    copy.addOperation(to);
                }
View Full Code Here

        super.mainObjectDeleted();
        removeOperation();
    }

    private void removeOperation() {
        OperationId id = getMainObject().getID();
        TriggeredOperations triggered = getDependantObject().getTriggeredOperations();
        if (triggered.removeOperation(id)) {
            getDependantObject().setTriggeredOperations(triggered);
        }
    }
View Full Code Here

        boolean sendEdit = false;
        if (currentEdit == null) {
            currentEdit = new CompoundEdit();
            sendEdit = true;
        }
        OperationId oldResponseGenerator = getResponseGenerator();
        setResponseTypeImpl(type, false);
        OperationId newResponseGenerator = getResponseGenerator();
        currentEdit.addEdit(new ResponseTypeEdit(old, type,
                        newResponseGenerator != oldResponseGenerator ? newResponseGenerator : null));
        if (sendEdit) {
            sendUndoRedoEvent();
        }
View Full Code Here

        return responseGenerator.get();
    }

    public void setResponseGenerator(OperationId opId) {
        checkOperationId(opId);
        OperationId old = getResponseGenerator();
        if (Objects.equal(opId, old)) {
            return;
        }
        boolean sendEdit = false;
        if (currentEdit == null) {
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.