Package org.jitterbit.integration.data.entity

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


    private final class OperationSelectionFilter implements EntityFilter {

        @Override
        public boolean apply(IntegrationEntity entity) {
            if (TriggerableOperationFilter.FILTER.apply(entity)) {
                Operation op = (Operation) entity;
                return !responseModel.contains(op.getID());
            }
            return false;
        }
View Full Code Here


        return ops.size() == 1 ? ops.get(0) : null;
    }

    @Override
    protected Editor getPageForObjectToRun() {
        Operation op = getOperationToRun();
        return (op == null) ? null : getEditorFor(op);
    }
View Full Code Here

     * If this is the first sibling it has to have the correct input and output structures. If it is
     * not the first sibling it only has to have the correct input structure.
     *
     */
    private boolean validateSibling(OperationId id, boolean isFirstSibling) {
        Operation sibling = lookup.getEntity(id, Operation.class);
        if (sibling == null) {
            return false;
        }
        OperationType type = sibling.getOperationType();
        if (type != TransformationOperationType.TYPE && type != WebServiceOperationType.TYPE) {
            return false;
        }
        if (isFirstTransformationCorrect(sibling)) {
            if (isFirstSibling) {
View Full Code Here

    public void setOperationSchedulesEnabled(Collection<OperationId> ids, boolean enabled) {
        // TODO: Change notification
        for (IntegrationProject p : projects.get()) {
            for (OperationId id : ids) {
                Operation op = p.getItemLookup().getEntity(id, Operation.class);
                if (op != null) {
                    op.setScheduleEnabled(enabled);
                }
            }
        }
    }
View Full Code Here

        for (Enumeration<KongaTreeNode> en = operationRoot.breadthFirstEnumeration(); en.hasMoreElements(); ) {
            KongaTreeNode node = en.nextElement();
            Object nodeObject = node.getUserObject();
            if (nodeObject instanceof Operation) {
                IntegrationEntityTreeNode opNode = (IntegrationEntityTreeNode) node;
                Operation op = (Operation) nodeObject;
                Schedule schedule = project.getItemLookup().getEntity(op.getScheduleId(), Schedule.class);
                if (schedule != null) {
                    opNode.setAllowsChildren(true);
                    IntegrationEntityTreeNode scheduleNode = schedule.getExtensionObject(IntegrationEntityTreeNode.class);
                    opNode.addChild(scheduleNode);
                    scheduleBag.put(schedule.getID(), op);
View Full Code Here

        }
    }

    private void collectSiblingLinks() {
        for (OperationId opId : operation.getSiblingOperations()) {
            Operation sibling = dataLookup.getEntity(opId, Operation.class);
            if (sibling != null) {
                EntityLink link = new OperationSiblingLink(sibling, operation);
                links.add(link);
            } else {
                LinkUtils.logMissingLink(operation, EntityType.Operation, opId);
View Full Code Here

    }

    public EntityLink createFailureLink() {
        OperationId opId = operation.getFailureOperationId();
        if (opId != null) {
            Operation op = dataLookup.getEntity(opId, Operation.class);
            if (op != null) {
                return OperationOperationLink.createFailureLink(op, operation);
            }
            LinkUtils.logMissingLink(operation, EntityType.Operation, opId);
        }
View Full Code Here

    }

    public EntityLink createSuccessAndFailureLink() {
        OperationId opId = operation.getSuccessOperationId();
        if (opId != null) {
            Operation op = dataLookup.getEntity(opId, Operation.class);
            if (op != null) {
                return OperationOperationLink.createSuccessAndFailureLink(op, operation);
            }
            LinkUtils.logMissingLink(operation, EntityType.Operation, opId);
        }
View Full Code Here

    }

    public EntityLink createSuccessLink() {
        OperationId opId = operation.getSuccessOperationId();
        if (opId != null) {
            Operation op = dataLookup.getEntity(opId, Operation.class);
            if (op != null) {
                return OperationOperationLink.createSuccessLink(op, operation);
            }
            LinkUtils.logMissingLink(operation, EntityType.Operation, opId);
        }
View Full Code Here

        private Object handleScheduleNode(IntegrationEntityTreeNode entityNode, IntegrationEntity entity) {
            KongaTreeNode parentNode = entityNode.getParent();
            if (parentNode != null) {
                Object parentObject = parentNode.getUserObject();
                if (parentObject instanceof Operation) {
                    Operation op = (Operation) parentObject;
                    return new ScheduledOperation((Schedule) entity, op);
                }
            }
            return entityNode.getUserObject();
        }
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.