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

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


        return Lists.newArrayList(operationIds.get());
    }

    public TriggeredOperations asTriggeredOperations() {
        TriggeredOperations ops = new TriggeredOperations();
        OperationId response = getResponseGenerator();
        for (OperationId opId : operationIds.get()) {
            OperationRunMode mode = getRunMode(opId);
            boolean isResponseGenerator = (mode == OperationRunMode.SYNCHRONOUS ? opId == response : false);
            ops.addOperation(new TriggeredOperation(opId, null, mode, isResponseGenerator));
        }
View Full Code Here


            // user one mouse-click.
            // TODO: This may not always be what the user wants. For instance, if the user
            // at some point has explicitly unchecked the single operation, then switched
            // to another response type, when undoing to the OPERATION response type the
            // operation will automatically be checked again.
            OperationId opId = getOperationIds().get(0);
            if (getRunMode(opId) == OperationRunMode.SYNCHRONOUS) {
                setResponseGenerator(getOperationIds().get(0));
            }
        }
    }
View Full Code Here

    @Override
    public OperationId getImplementingOperationId() {
        synchronized (getDataLock()) {
            String id = getProperty(OPERATION_ID, null);
            return (id == null) ? null : new OperationId(id);
        }
    }
View Full Code Here

    @Override
    public void replaceReferences(ReferenceReplacementService service) {
        // HACK: Copied and pasted from SalesforceWizardReferencesReplacer.
        // We can't use that class here since it is in private. Once SalesforceBulkLoad
        // is in private itself we can replace this.
        OperationId opId = getImplementingOperationId();
        if (opId != null) {
            Operation replacement = (Operation) service.getReplacement(opId);
            if (replacement != null) {
                setImplementingOperation(replacement);
            }
View Full Code Here

        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);
            }
View Full Code Here

        updateAsynchronousSettings();
        updateResponseGeneratorLabel();
    }

    private void updateResponseGeneratorLabel() {
        OperationId opId = model.getResponseGenerator();
        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

            op.setFailureMessage(replacement);
        }
    }

    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

    @Override
    public void setValueAt(Object value, int row, int columnIndex) {
        super.setValueAt(value, row, columnIndex);
        if (!externalModification) {
            TableColumnMetaData column = getColumnDescriptor(columnIndex);
            OperationId opId = getOperationId(row);
            if (column == MODE) {
                responseModel.setRunMode(opId, (OperationRunMode) value);
            } else if (column == RESPONSE_GENERATOR) {
                if (value == Boolean.TRUE) {
                    responseModel.setResponseGenerator(opId);
View Full Code Here

    public void setResponseGenerator(OperationId generator) {
        externalModification = true;
        try {
            for (int row = 0; row < getRowCount(); ++row) {
                OperationId opId = getOperationId(row);
                setValueAt(Boolean.valueOf(opId == generator), row, RESPONSE_GENERATOR);
            }
        } finally {
            externalModification = false;
        }
View Full Code Here

            }
            return this;
        }

        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

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.