Package org.jitterbit.integration.data.persist

Examples of org.jitterbit.integration.data.persist.ProjectPersistor


    private void applyNewStructure(StructureEditor editor,
                                   EditedStructure struct,
                                   TransformationEditorWizard wizard,
                                   Object memento,
                                   boolean sendEdit) {
        ProjectPersistor persistor = view.getProjectPersistor();
        try {
            struct.apply(transformation);
            RefreshStructuresCallback callback = new ApplyStructureCallback(
                            editor, struct, wizard, persistor, memento, sendEdit);
            refreshMappingTree(callback);
View Full Code Here


    }

    @Override
    public void save(Transformation tf) {
        try {
            ProjectPersistor persistor = getView().getProjectPersistor();
            persistor.save(tf);
        } catch (InterchangeSavingException ex) {
            ErrorLog.attention(TreeMapperContainerImpl.class, "The transformation \"" + tf.getName()
                            + "\" could not be saved: " + ex.getMessage(), ex);
        }
    }
View Full Code Here

        return actions;
    }

    private OperationGraphController createGraphController(Operation op) {
        ManagedProject project = ProjectUtils.getManagedProject(op);
        ProjectPersistor itemSaver = project.getProjectPersistor();
        DefaultOperationGraphController controller = new DefaultOperationGraphController(impl.getView(),
                        project.getProject(), itemSaver);
        controller.setRunOperationAction(Application.getBean(RunOperationAction.ID, Action.class));
        controller.setDeploySelectedItemsAction(Application.getBean(DeployActiveObjectsAction.ID, Action.class));
        controller.setSetPermissionsAction(Application.getBean(SetPermissionsAction.ID, Action.class));
View Full Code Here

    public void saveGraphSettings(OperationGraph2D graph) {
        settingsSaver.save(graph);
    }

    private void saveDirtyOperations(OperationFlow flow, Map<OperationWrapper, Exception> errors) {
        ProjectPersistor writer = getProjectPersistor();
        for (OperationWrapper w : flow.getDirtyOperations()) {
            try {
                w.applyToOperation();
                writer.save(w.getActivity());
                ediPluginSaver.applyPluginIfNeeded(w.getPipeline());
            } catch (IllegalNameException ex) {
                errors.put(w, ex);
            } catch (InterchangeSavingException ex) {
                errors.put(w, ex);
View Full Code Here

        DeployLog.LOG.fine("Post-processing all deployed items");
        for (RootFolder f : partialProject.getAllRootFolders()) {
            postPartialDeployProcessingImpl(f);
        }
        DeployLog.LOG.fine("Saving all deployed items");
        ProjectPersistor saver = currentProject.getProjectPersistor();
        for (IntegrationEntity e : partialProject.getAllEntities()) {
            IntegrationEntity realEntity = currentProject.getProject().getItemLookup().getEntity(e.getID());
            if (realEntity != null) {
                saver.save(realEntity);
            }
        }
        updateProject();
        saveProjectFile();
        DeployLog.LOG.fine("processPartialDeploy() completed successfully.");
View Full Code Here

        viewer.viewFile(file);
    }

    private File getXmlFile(IntegrationEntity entity) {
        ManagedProject project = ProjectUtils.getManagedProject(entity);
        ProjectPersistor persistor = project.getProjectPersistor();
        if (persistor instanceof FileBasedProjectPersistor) {
            return ((FileBasedProjectPersistor) persistor).getFile(entity);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.persist.ProjectPersistor

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.