Interface PathAwareFeatureExtension
-
- All Superinterfaces:
FeatureExtension
public interface PathAwareFeatureExtension extends FeatureExtension
The path aware feature extension must be defined in thePathAware
feature in order to extend aTransferManager
that was marked as 'path aware' with the required methods to manage the subfolders.This extension creates, removes and lists contents in these subfolders.
- See Also:
PathAware
,PathAwareFeatureTransferManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
createPath(java.lang.String path)
Creates the given sub path / folder on the remote storage.java.util.Map<java.lang.String,FileType>
listFolder(java.lang.String path)
Lists the contents of the given sub path / folder on the remote storage.boolean
removeFolder(java.lang.String path)
Deleted the given sub path / folder on the remote storage.
-
-
-
Method Detail
-
createPath
boolean createPath(java.lang.String path) throws StorageException
Creates the given sub path / folder on the remote storage.- Parameters:
path
- Path/folder to be created- Returns:
- True if successful, false otherwise
- Throws:
StorageException
-
removeFolder
boolean removeFolder(java.lang.String path) throws StorageException
Deleted the given sub path / folder on the remote storage.- Parameters:
path
- Path/folder to be deleted- Returns:
- True if successful, false otherwise
- Throws:
StorageException
-
listFolder
java.util.Map<java.lang.String,FileType> listFolder(java.lang.String path) throws StorageException
Lists the contents of the given sub path / folder on the remote storage.- Parameters:
path
- Path/folder to be listed- Returns:
- Filename/type list for the given subfolder
- Throws:
StorageException
-
-