Package org.jitterbit.integration.data.entity

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


            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


        for (Enumeration<KongaTreeNode> en = scheduleRoot.breadthFirstEnumeration(); en.hasMoreElements(); ) {
            KongaTreeNode node = en.nextElement();
            Object nodeObject = node.getUserObject();
            if (nodeObject instanceof Schedule) {
                IntegrationEntityTreeNode scheduleNode = (IntegrationEntityTreeNode) node;
                Schedule schedule = (Schedule) nodeObject;
                List<? extends Operation> ops = scheduleBag.get(schedule.getID());
                Collections.sort(ops, BY_NAME);
                for (Operation op : ops) {
                    scheduleNode.setAllowsChildren(true);
                    IntegrationEntityTreeNode opNode = op.getExtensionObject(IntegrationEntityTreeNode.class);
                    scheduleNode.addChild(opNode);
View Full Code Here

    }

    private void collectScheduleLink() {
        ScheduleId schedId = operation.getScheduleId();
        if (schedId != null) {
            Schedule sched = dataLookup.getEntity(schedId, Schedule.class);
            if (sched != null) {
                links.add(new OperationScheduleLink(sched, operation));
            } else {
                LinkUtils.logMissingLink(operation, EntityType.Schedule, schedId);
            }
View Full Code Here

        private Object handleOperationNode(IntegrationEntityTreeNode entityNode, IntegrationEntity entity) {
            KongaTreeNode parentNode = entityNode.getParent();
            if (parentNode != null) {
                Object parentObject = parentNode.getUserObject();
                if (parentObject instanceof Schedule) {
                    Schedule schedule = (Schedule) parentObject;
                    return new ScheduledOperation(schedule, (Operation) entity);
                }
            }
            return entityNode.getUserObject();
        }
View Full Code Here

        private boolean checkEnabledState(KongaTreeNode operationNode, Operation operation) {
            KongaTreeNode parent = operationNode.getParent();
            if (parent != null) {
                Object parentObject = parent.getUserObject();
                if (parentObject instanceof Schedule) {
                    Schedule schedule = (Schedule) parentObject;
                    return schedule.isEnabled() && operation.isScheduleEnabled();
                }
            }
            return true;
        }
View Full Code Here

TOP

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

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.