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

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


        });
        return menu;
    }
   
    private Schedule getCurrentSchedule(OperationWrapperNode node) {
        ScheduleId id = node.getDataObject().getScheduleId();
        return controller.getProject().getItemLookup().getEntity(id, Schedule.class);
    }
View Full Code Here


        this.controller = controller;
    }
    public boolean setSchedule(OperationWrapperNode opNode, Schedule schedule) {
        if (controller.isChangeAllowed(opNode)) {
            ScheduleId prevId = opNode.getDataObject().getScheduleId();
            ScheduleId newId = (schedule != null ? schedule.getID() : null);
            if (differs(prevId, newId)) {
                opNode.getDataObject().setScheduleId(newId);
                UndoableEdit edit = new OperationScheduleEdit(controller, opNode, prevId, newId);
                controller.fireGraphDataEdit(edit);
                return true;
View Full Code Here

  public static Schedule getSchedule(StringKeyValuePairs serverKeyValues) {
    Map<String, ServerPropertyKey> clientServerKeyMappings = ClientServerDeployKeyMappings.getClientServerKeyMappings(EntityType.Schedule);

    String serverKey = clientServerKeyMappings.get(Schedule.SCHEDULE_ID).getServerKeyName();
    ScheduleId id = getScheduleId(serverKeyValues.getString(serverKey));
   
    serverKey = clientServerKeyMappings.get(Schedule.SCHEDULE_NAME).getServerKeyName();
    String name = serverKeyValues.getString(serverKey);
    Schedule schedule = new Schedule(id, name);
View Full Code Here

        String value = getScheduleString(op);
        addEntry("Runs on schedule:", value);
    }

    private String getScheduleString(Operation op) {
        ScheduleId scheduleId = op.getScheduleId();
        if (scheduleId != null) {
            IntegrationProject project = ProjectUtils.getProject(op);
            if (project != null) {
                Schedule schedule = project.getItemLookup().getEntity(scheduleId, Schedule.class);
                if (schedule != null) {
View Full Code Here

    serverKey = clientServerMappings.get(Operation.OPERATION_NAME).getServerKeyName();
    String sName = serverKeyValues.get(serverKey);
    Operation operation = new Operation(opId, sName);
   
    serverKey = clientServerMappings.get(Operation.SCHEDULE).getServerKeyName();
    ScheduleId scheduleId = ScheduleFactory.getScheduleId(serverKeyValues.get(serverKey));
    if ( scheduleId != null )
      operation.setScheduleId(scheduleId);
   
    Map<String, ServerPropertyKey> serverClientMappings = ClientServerDeployKeyMappings.getServerClientKeyMappings(EntityType.Operation);
    for( String key : serverKeyValues.getKeys() ) {
View Full Code Here

        putValue(SHORT_DESCRIPTION, Strings.get("Edit.Schedule.ToolTip"));
        setEnabled(schedule != null);
    }
   
    private Schedule getSchedule(OperationWrapperNode opNode) {
        ScheduleId id = opNode.getDataObject().getScheduleId();
        return controller.getProject().getItemLookup().getEntity(id, Schedule.class);
    }
View Full Code Here

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

     * @param id
     *            the <tt>ScheduleId</tt> of the <tt>Schedule</tt> used by this operation; or
     *            <tt>null</tt> if this operation does not use a schedule.
     */
    public void setScheduleId(ScheduleId id) {
        ScheduleId old = getScheduleId();
        if (!KongaID.areEqual(id, old)) {
            setProperty(SCHEDULE, id);
            firePropertyChange(SCHEDULE, old, id);
        }
    }
View Full Code Here

            }
        }

        private void storeOperation(Operation op, Persistor p) {
            storeNameAndId(op, p);
            ScheduleId scheduleId = op.getScheduleId();
            if (scheduleId != null) {
                p.putString(SCHEDULE_ID, scheduleId.toString());
                p.putBoolean(SCHEDULE_ENABLED, op.isScheduleEnabled());
            }
        }
View Full Code Here

            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));
            }
            parent.addItem(op);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.ScheduleId

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.