public interface FolderRepository extends Repository
| Modifier and Type | Method and Description |
|---|---|
List<FileData> |
listFiles(String path,
String version)
Return a list of files recursively in the given folder and given version.
|
List<FileData> |
listFolders(String path)
Return a list of folders in the given path (not recursively).
|
FileData |
save(FileData folderData,
Iterable<FileItem> files,
ChangesetType changesetType)
Save the folder.
|
List<FileData> |
save(List<FolderItem> folderItems,
ChangesetType changesetType)
Save multiple files at once Used only in deployment services
|
check, checkHistory, close, copyHistory, delete, delete, deleteHistory, getId, getName, list, listHistory, read, readHistory, save, save, setListener, supportsList<FileData> listFolders(String path) throws IOException
path - the folder to scan. The path must be ended by '/' or be empty.IOException - if not possible to read the directory.List<FileData> listFiles(String path, String version) throws IOException
path - the folder to scan. The path must be ended by '/' or be empty.version - the version of the folder to read, can be null.IOException - if not possible to read the directory.FileData save(FileData folderData, Iterable<FileItem> files, ChangesetType changesetType) throws IOException
folderData - folder descriptorfiles - all files inside the folder recursively or only changed (modified, added, deleted) files depending
on changesetTypechangesetType - if ChangesetType.DIFF, only changed files. If ChangesetType.FULL all files
that exist in projectIOException - if not possible to save the folder.List<FileData> save(List<FolderItem> folderItems, ChangesetType changesetType) throws IOException
folderItems - list of folder descriptor and its fileschangesetType - if ChangesetType.DIFF, only changed files. If ChangesetType.FULL all files
that exist in projectIOException - if not possible to save the folder.Copyright © 2004–2021 OpenL Tablets. All rights reserved.