|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataFolder
A home data folder.
| Method Summary | |
|---|---|
DataFolder |
createFolder(String folderName)
Create a new folder with the given name. |
void |
exportFolder(File destFolder)
Export this folder and his content in a destination folder in the file system. |
DataFolder |
getDataFolder(String relPath)
Return a folder with a path relative to this folder. |
void |
importFile(File file)
Import a file, present in the file system, in this folder. |
void |
importFolder(File folder)
Import a folder, present in the file system, in this folder. |
List<DataAreaItem> |
listFiles()
List all the items into the folder. |
List<String> |
listFolderNames()
List all names of the folders inside this folder. |
| Methods inherited from interface org.gcube.portlets.user.homelibrary.home.data.fs.DataAreaItem |
|---|
getName, getParent, getPath, isFolder |
| Method Detail |
|---|
DataFolder createFolder(String folderName)
throws InternalErrorException,
FolderAlreadyExistException
folderName - the new folder name.
InternalErrorException - if an internal error occurs.
FolderAlreadyExistException - when a folder with same name already exist.
List<DataAreaItem> listFiles()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
List<String> listFolderNames()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
DataFolder getDataFolder(String relPath)
throws InternalErrorException,
FolderNotFoundException
relPath - the relative path.
InternalErrorException - if an internal error occurs.
FolderNotFoundException - if the folder has not been found.
void importFile(File file)
throws FileNotFoundException,
InternalErrorException,
FileAlreadyExistException
file - the file to import.
FileNotFoundException - if the file has not found.
InternalErrorException - if an internal error occurs.
FileAlreadyExistException - if a file with specified name already exist.
void importFolder(File folder)
throws FileNotFoundException,
InternalErrorException
folder - the folder to import.
FileNotFoundException - if the folder has not found.
InternalErrorException - if an internal error occurs.
void exportFolder(File destFolder)
throws InternalErrorException,
IOException
destFolder - the destination folder.
InternalErrorException - if an internal error occurs.
IOException - if an error occurs during export operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||