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

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


        char[] password = securityDefiner.getPassword();
        boolean includePasswords = includePasswordsSelector.isSelected();
        boolean readOnly = readOnlySelector.isSelected();
        boolean includeTestData = includeTestDataSelector.isSelected();
        PackingFileFilter fileFilter = new DefaultPackingFileFilter(project.getLocationOnDisk(), includeTestData);
        return new ExportParameters(fileFilter, password, includePasswords, readOnly);
    }
View Full Code Here


        @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) {
View Full Code Here

    public JitterPack createJitterPack(String name, File rootDirectory, File target, boolean includeClientSpecificData)
                    throws InterchangeLoadingException, UnsupportedVersionException, JitterPackException {
        ManagedProjectImpl mp = projectLoader.loadProjectSilently(name, rootDirectory);
        try {
            String comment = "Backup copy, created at " + new Date() + ".";
            ExportParameters params = getExportParameters(rootDirectory, includeClientSpecificData);
            Exporter exporter = createExporter(params);
            return exporter.pack(mp, comment, target, params);
        } finally {
            mp.close();
        }
View Full Code Here

    }
   

    private ExportParameters getExportParameters(File projectFolder, boolean includeClientData) {
        PackingFileFilter fileFilter = new PackingFileFilterImpl(projectFolder, includeClientData);
        return new ExportParameters(fileFilter, null, false, false);
    }
View Full Code Here

    private void writeCreatedAt(Date date, Properties data) {
        data.put(CREATED_AT, String.valueOf(date.getTime()));
    }
   
    private void writeReadOnlyProperty(Properties data) {
        ExportParameters packParams = ParamsSanityCheck.ensureForPacking(params);
        data.put(READ_ONLY, String.valueOf(packParams.isPackedProjectReadOnly()));
    }
View Full Code Here

     */
    protected abstract Version getRequiredVersion();
   
    private JitterPackDescriptor createDescriptorForWriting(final ManagedProject project, final String comment) {
        VersionInfo versionInfo = createVersionInfo(project);
        ExportParameters packParams = ParamsSanityCheck.ensureForPacking(params);
        return new DefaultJitterPackDescriptor(project.getProject().getName(), versionInfo,
                        project.getLocation().getName(), new Date(), comment, packParams.getPassword() != null,
                        packParams.isPackedProjectReadOnly());
    }
View Full Code Here

TOP

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

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.