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