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

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


        endpoint.setTriggeredOperations(ops);
        verifyValidation(ValidationStatus.VALID);
    }

    private TriggeredOperation createSynchOp(boolean responseGenerator) {
        return new TriggeredOperation(new OperationId(), null, OperationRunMode.SYNCHRONOUS, responseGenerator);
    }
View Full Code Here


    public static final class Factory extends AbstractFactory<TestOperationResult> {

        @Override
        public TestOperationResult restore(Persistor p) {
            OperationId opId = (OperationId) restoreEntityId(p, OP_ID, EntityType.Operation);
            TransformationId transId = (TransformationId) restoreEntityId(p, TRANS_ID, EntityType.Transformation);
            long timestamp = restoreTimestamp(p);
            Outcome outcome = restoreOutcome(p);
            String details = restoreDetails(p);
            return new TestOperationResult(opId, transId, timestamp, outcome, details);
View Full Code Here

    /**
     * Checks if these <code>TriggeredOperations</code> contains a given <code>Operation</code>.
     *
     */
    public boolean contains(Operation op) {
        OperationId opId = op.getID();
        for (Set<TriggeredOperation> s : operations.values()) {
            for (TriggeredOperation o : s) {
                if (o.getOperationId().equals(opId)) {
                    return true;
                }
View Full Code Here

     */
    public OperationId getSuccessOperationId() {
        String id = getProperty(SUCCESS_OPERATION);
        if (id != null && id.length() > 0) {
            try {
                return new OperationId(id);
            } catch (IllegalArgumentException e) {
                // This should never happen, but if it does we will just
                // return null.
            }
        }
View Full Code Here

     *            operation should be chained to this operation.
     * @see #getSuccessOperationId()
     * @see #setSuccessOperation(Operation)
     */
    public void setSuccessOperationId(OperationId id) {
        OperationId old = getSuccessOperationId();
        if (!KongaID.areEqual(id, old)) {
            setProperty(SUCCESS_OPERATION, id);
            firePropertyChange(SUCCESS_OPERATION, old, id);
        }
    }
View Full Code Here

     */
    public OperationId getFailureOperationId() {
        String id = getProperty(FAILURE_OPERATION);
        if (id != null && id.length() > 0) {
            try {
                return new OperationId(id);
            } catch (IllegalArgumentException e) {
                // This should never happen, but if it does we will just return null.
            }
        }
        return null;
View Full Code Here

     *            failure operation.
     * @see #getFailureOperationId()
     * @see #setFailureOperation(Operation)
     */
    public void setFailureOperationId(OperationId id) {
        OperationId old = getFailureOperationId();
        if (!KongaID.areEqual(old, id)) {
            setProperty(FAILURE_OPERATION, id);
            firePropertyChange(FAILURE_OPERATION, old, id);
        }
    }
View Full Code Here

    }

    private void restoreSiblingIds(Persistor p) {
        siblings = Lists.newArrayList();
        for (Persistor s : p.getFirstChild("Siblings").getChildren("Sibling")) {
            siblings.add(new OperationId(s.getString("opId")));
        }
    }
View Full Code Here

        if ("s".equals(strippedPrefix)) {
            return new SourceId(id);
        } else if ("t".equals(strippedPrefix)) {
            return new TargetId(id);
        } else if ("op".equals(strippedPrefix)) {
            return new OperationId(id);
        } else if ("sc".equals(strippedPrefix)) {
            return new ScriptId(id);
        } else if ("m".equals(strippedPrefix)) {
            return new SourceId(id);
        } else {
View Full Code Here

            populateFolder(folder, child, type);
        }

        private void restoreOperation(Persistor p, Folder parent) {
            String name = restoreName(p);
            OperationId id = restoreId(p, OperationId.class);
            Operation op = new Operation(id, name);
            String scheduleId = p.getString(SCHEDULE_ID);
            if (scheduleId != null) {
                op.setScheduleId(new ScheduleId(scheduleId));
                op.setScheduleEnabled(p.getBoolean(SCHEDULE_ENABLED));
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.