Package org.jitterbit.integration.data.entity

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


        removeSibling(getMainObject());
        super.mainObjectDeleted();
    }

    private void removeSibling(Operation sibling) {
        Operation dep = getDependantObject();
        OperationId deleted = sibling.getID();
        List<OperationId> updated = Lists.newArrayList();
        for (OperationId id : dep.getSiblingOperations()) {
            if (!id.equals(deleted)) {
                updated.add(id);
            }
        }
        dep.setSiblingOperations(updated.toArray(new OperationId[updated.size()]));
    }
View Full Code Here


        if (opId == null) {
            responseGeneratorLabel.setText("[Select an operation in the table above]");
            responseGeneratorLabel.setForeground(Colors.ERROR_TEXT_COLOR);
            responseGeneratorLabel.setIcon(null);
        } else {
            Operation op = (operationLookup != null ? operationLookup.getEntity(opId, Operation.class) : null);
            responseGeneratorLabel.setText(op != null ? op.getName() : opId.toString());
            responseGeneratorLabel.setForeground(Color.BLACK);
            responseGeneratorLabel.setIcon(EntityIcons.forType(EntityType.Operation).getDefaultIcon(Size.SMALL));
        }
    }
View Full Code Here

    }

    private void replaceChain() {
        OperationId successId = op.getSuccessOperationId();
        if (successId != null) {
            Operation replacement = (Operation) service.getReplacement(successId);
            op.setSuccessOperation(replacement);
        }
        OperationId failureId = op.getFailureOperationId();
        if (failureId != null) {
            Operation replacement = (Operation) service.getReplacement(failureId);
            op.setFailureOperation(replacement);
        }
    }
View Full Code Here

    }

    private void replaceSiblings() {
        List<OperationId> newIds = Lists.newArrayList();
        for (OperationId id : op.getSiblingOperations()) {
            Operation replacement = (Operation) service.getReplacement(id);
            if (replacement != null) {
                newIds.add(replacement.getID());
            }
        }
        op.setSiblingOperations(newIds.toArray(new OperationId[newIds.size()]));
    }
View Full Code Here

        this.nextOperation = nextOp;
    }

    public void validate(Operation start, ValidationMessageCollector messageCollector) {
        Set<Operation> ops = Sets.newHashSet();
        Operation op = start;
        Operation next = nextOperation.get(op);
        while (next != null) {
            if (ops.contains(next)) {
                messageCollector.addMessage("Infinite operation loop detected in " + name + " chain.",
                                ValidationStatus.WARNING);
                break;
View Full Code Here

        }

        private void decorateOperation(Object value) {
            OperationId id = (OperationId) value;
            if (operationLookup != null) {
                Operation op = operationLookup.getEntity(id, Operation.class);
                if (op != null) {
                    setIcon(IconStore.validationDecoratedIcon(op));
                    setText(op.getName());
                }
            }
        }
View Full Code Here

        }
        return null;
    }

    private OperationPipeline getPipeline() {
        Operation op = getImplementingOperation();
        return op == null ? null : op.getPipeline();
    }
View Full Code Here

     * <code>SalesforceWizardItem</code>. This does not include items that can be shared between
     * several different wizard items, such as the login operation.
     */
    public Set<IntegrationEntity> getAllWizardSpecificItems() {
        Set<IntegrationEntity> items = Sets.newHashSet();
        Operation op = getImplementingOperation();
        if (op != null) {
            items.add(op);
            collectWizardSpecificPipelineObjects(items);
        }
        return items;
View Full Code Here

     * several wizards, such as login and logout operations, and also any other objects that are
     * used by the wizard, such as sources and targets.
     */
    public Set<IntegrationEntity> getAllImplementingItems() {
        Set<IntegrationEntity> items = Sets.newHashSet();
        Operation op = getImplementingOperation();
        if (op != null) {
            collectOperationItems(op, items);
        }
        return items;
    }
View Full Code Here

        public void handle(final IntegrationEntity object) {
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    Operation op = (Operation) object;
                    responseModel.addOperation(op);
                    explorerSupport.openPageFor(op);
                }
            });
        }
View Full Code Here

TOP

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

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.