Package org.jitterbit.integration.filetransfer.client

Examples of org.jitterbit.integration.filetransfer.client.ServerFileFolder


            ServerFileFolder[] folders = impl.restore(serverId);
            // The current version expects only one ServerFolder. When we support
            // multiple folders we need to change this part accordingly, so that
            // we add the new files to the correct folder.
            if (folders != null && folders.length == 1) {
                ServerFileFolder existingFolder = folders[0];
                ServerFileFolder updatedFolder = updateFolderWithNewFiles(existingFolder, newFiles);
                store(serverId, new ServerFileFolder[] { updatedFolder });
            }
        }
    }
View Full Code Here


            files.put(f.getFilePath(), f);
        }
        for (ServerFile f : newFiles) {
            files.put(f.getFilePath(), f);
        }
        ServerFileFolder updatedFolder = new ServerFileFolder(existingFolder.getName());
        updatedFolder.addAll(files.values());
        return updatedFolder;
    }
View Full Code Here

            if (structureFiles != null) {
                for (CXmlStructureFile file : structureFiles) {
                    String path = file.getPath();
                    String[] parts = path.split("/", 2);
                    String folderPath = parts[0];
                    ServerFileFolder folder = folderMap.get(folderPath);
                    if (folder == null) {
                        folder = new ServerFileFolder(folderPath);
                        folderMap.put(folderPath, folder);
                    }
                    ServerFile structureFile = ServerFile.fromPathAndHash(parts[1], file.getMD5());
                    structureFile.setLastModified(file.getModifiedTime());
                    folder.addFile(structureFile);
                }
            }
            int nFolders = folderMap.size();
            ServerFileFolder[] returnFolders = new ServerFileFolder[nFolders];
            int iFolderIndex = 0;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.filetransfer.client.ServerFileFolder

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.