Package org.jets3t.service.multi

Examples of org.jets3t.service.multi.DownloadPackage


                    version = EncryptionUtil.DEFAULT_VERSION;
                }
                encryptionUtil = new EncryptionUtil(encryptionPassword, algorithm, version);
            }

            return new DownloadPackage(object, fileTarget, isZipped, encryptionUtil);
        }
    }
View Full Code Here


                        }
                    }

                    if (discrepancyResults.onlyOnServerKeys.contains(keyPath)) {
                        printOutputLine("N " + localPath, REPORT_LEVEL_ACTIONS);
                        DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
                            object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
                        if (downloadPackage != null) {
                            downloadPackagesList.add(downloadPackage);
                        }
                    } else if (discrepancyResults.updatedOnServerKeys.contains(keyPath)) {
                        printOutputLine("U " + localPath, REPORT_LEVEL_ACTIONS);
                        DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
                            object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
                        if (downloadPackage != null) {
                            downloadPackagesList.add(downloadPackage);
                        }
                    } else if (discrepancyResults.alreadySynchronisedKeys.contains(keyPath)) {
                        if (isForce) {
                            printOutputLine("F " + localPath, REPORT_LEVEL_ACTIONS);
                            DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
                                object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
                            if (downloadPackage != null) {
                                downloadPackagesList.add(downloadPackage);
                            }
                        } else {
                            printOutputLine("- " + localPath, REPORT_LEVEL_ALL);
                        }
                    } else if (discrepancyResults.updatedOnClientKeys.contains(keyPath)) {
                        // This file has been updated on the client-side.
                        if (isKeepFiles) {
                            printOutputLine("r " + localPath, REPORT_LEVEL_DIFFERENCES);
                        } else {
                            printOutputLine("R " + localPath, REPORT_LEVEL_ACTIONS);
                            DownloadPackage downloadPackage = ObjectUtils.createPackageForDownload(
                                object, fileTarget, isGzipEnabled, isEncryptionEnabled, cryptoPassword);
                            if (downloadPackage != null) {
                                downloadPackagesList.add(downloadPackage);
                            }
                        }
View Full Code Here

TOP

Related Classes of org.jets3t.service.multi.DownloadPackage

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.