public interface FoldersManagementSubService<FolderType,ResourceType>
Modifier and Type | Method and Description |
---|---|
boolean |
attachFolderToFolder(List<String> folderToAttachPathFromRoot,
List<String> targetFolderPathFromRoot)
Moves an existing folder to be attached to specified target folder.
|
boolean |
attachToFolder(String resourceName,
List<String> folderPathFromRoot)
Attaches the resource matching the given name to the folder path, creating the path if needed.
|
boolean |
createFolder(List<String> folderPathFromRoot)
Creates folders according to the given path from the root.
|
FolderManagementResultsHolder |
createFolder(List<String> folderPathFromRoot,
boolean isDetailed)
Creates folders according to the given path from the root.
|
Map<List<String>,String> |
createFolders(List<String> folderPathFromRoot)
Creates folders according to the given path from the root.
|
boolean |
deleteFolder(List<String> folderPathFromRoot)
Deletes the folder at the end of the given path, along with its
subfolders and the resources in the folder or any of its subfolders.
|
FolderType |
getFoldersTreeRoot()
Returns the folder tree of the resources created by the service that created this object.
|
boolean |
renameFolder(List<String> folderPath,
String newName)
Renames a folder.
|
FolderManagementResultsHolder |
renameFolder(List<String> folderPath,
String newName,
boolean isDetailed) |
boolean |
saveInFolder(ResourceType resource,
List<String> folderPathFromRoot)
Saves the resource to the server, updates an existing resource by the same name if such resource exists or creates
the resource in the given path.
|
boolean createFolder(List<String> folderPathFromRoot)
folderPathFromRoot
- The path. Can not be null.FolderManagementResultsHolder createFolder(List<String> folderPathFromRoot, boolean isDetailed)
folderPathFromRoot
- The path. Can not be null.isDetailed
- whether there is demand for detailed result such as the new folder's id.FolderManagementResultsHolder
Map<List<String>,String> createFolders(List<String> folderPathFromRoot)
folderPathFromRoot
- The path. Can not be null.boolean deleteFolder(List<String> folderPathFromRoot)
folderPathFromRoot
- The path. Can not be null.boolean attachToFolder(String resourceName, List<String> folderPathFromRoot)
resourceName
- the name of the resource to attach. There must be a valid resource created by the
service that created this object.folderPathFromRoot
- The path. Can not be null.boolean saveInFolder(ResourceType resource, List<String> folderPathFromRoot)
resource
- the resource to save.folderPathFromRoot
- The path from root where the resource will be created if the resource does not exist.boolean attachFolderToFolder(List<String> folderToAttachPathFromRoot, List<String> targetFolderPathFromRoot)
folderToAttachPathFromRoot
- the folder to move.targetFolderPathFromRoot
- the target folder to attach the folder to move under.boolean renameFolder(List<String> folderPath, String newName)
folderPath
- the full path of the folder to rename.newName
- the new name for the folder.FolderManagementResultsHolder renameFolder(List<String> folderPath, String newName, boolean isDetailed)
FolderType getFoldersTreeRoot()
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.