Package org.jitterbit.integration.client.project.jitterpack

Examples of org.jitterbit.integration.client.project.jitterpack.PostExportManager


            this.callback = callback;
        }

        @Override
        public void run() {
            PostExportManager postExportManager = null;
            try {
                ManagedProject project = exportUi.getProjectToExport();
                ExportParameters params = exportUi.getExportParameters();
                postExportManager = project.prepareForExport(params.arePasswordsExported());
                Exporter exporter = createExporter(params);
                JitterPack jp = exporter.pack(project, exportUi.getComment(), exportUi.getDestination(), params);
                callback.succeeded(jp);
                postExportManager.runJobs(PostExportJob.Condition.ON_SUCCESS);
            } catch (Throwable err) {
                // This is a boundary to the UI: we must catch all errors here, including
                // RuntimeExceptions and Errors (see bug 2803249)
                handleException(err, postExportManager);
            }
View Full Code Here


        }
    }

    @Override
    public PostExportManager prepareForExport(boolean keepPasswords) throws ExportPreparationException {
        PostExportManager mgr = new ProjectPostExportManager(this, keepPasswords);
        try {
            prepareForExportImpl(mgr);
            return mgr;
        } catch (ExportPreparationException ex) {
            mgr.runJobs(PostExportJob.Condition.ON_FAILURE);
            throw ex;
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.project.jitterpack.PostExportManager

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.