Interface ModifiableFolder
-
- All Superinterfaces:
Folder
- All Known Implementing Classes:
JCRFolder
@Deprecated public interface ModifiableFolder extends Folder
Deprecated.org.ametys.cms.data.RichText new class doesn't use folder anymoreFolder that is not read only
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ModifiableFileaddFile(String fileName)Deprecated.Add a file with the specified name in this folder.ModifiableFolderaddFolder(String folderName)Deprecated.Add a folder with the specified name in this folder.ModifiableFilegetFile(String fileName)Deprecated.Returns the file with the specified name.Collection<ModifiableFile>getFiles()Deprecated.Returns a Collection containing all files of this folder.ModifiableFoldergetFolder(String folderName)Deprecated.Returns the folder with the specified name.Collection<ModifiableFolder>getFolders()Deprecated.Returns a Collection containing all subfolders of this folder.voidremove(String name)Deprecated.Removes the sub-element represented by the specified name.voidremoveAll()Deprecated.Removes all files and folders in this folder.
-
-
-
Method Detail
-
getFolders
Collection<ModifiableFolder> getFolders() throws AmetysRepositoryException
Deprecated.Description copied from interface:FolderReturns a Collection containing all subfolders of this folder.- Specified by:
getFoldersin interfaceFolder- Returns:
- a Collection containing all subfolders of this folder.
- Throws:
AmetysRepositoryException- if an error occurs
-
getFolder
ModifiableFolder getFolder(String folderName) throws UnknownMetadataException, AmetysRepositoryException
Deprecated.Description copied from interface:FolderReturns the folder with the specified name.- Specified by:
getFolderin interfaceFolder- Parameters:
folderName- the name of the folder.- Returns:
- the folder with the specified name.
- Throws:
UnknownMetadataException- if the folder does not exist.AmetysRepositoryException- if an error occurs.
-
getFiles
Collection<ModifiableFile> getFiles() throws AmetysRepositoryException
Deprecated.Description copied from interface:FolderReturns a Collection containing all files of this folder.- Specified by:
getFilesin interfaceFolder- Returns:
- a Collection containing all files of this folder.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getFile
ModifiableFile getFile(String fileName) throws UnknownMetadataException, AmetysRepositoryException
Deprecated.Description copied from interface:FolderReturns the file with the specified name.- Specified by:
getFilein interfaceFolder- Parameters:
fileName- the name of the file.- Returns:
- the file with the specified name.
- Throws:
UnknownMetadataException- if the folder does not exist.AmetysRepositoryException- if an error occurs.
-
addFolder
ModifiableFolder addFolder(String folderName) throws RepositoryIntegrityViolationException, AmetysRepositoryException
Deprecated.Add a folder with the specified name in this folder.- Parameters:
folderName- the folder name.- Returns:
- the created folder.
- Throws:
RepositoryIntegrityViolationException- if a file or a folder already exists with the given name.AmetysRepositoryException- if an error occurs.
-
addFile
ModifiableFile addFile(String fileName) throws RepositoryIntegrityViolationException, AmetysRepositoryException
Deprecated.Add a file with the specified name in this folder.- Parameters:
fileName- the file name.- Returns:
- the created file.
- Throws:
RepositoryIntegrityViolationException- if a file or a folder already exists with the given name.AmetysRepositoryException- if an error occurs.
-
remove
void remove(String name) throws UnknownMetadataException, AmetysRepositoryException
Deprecated.Removes the sub-element represented by the specified name.- Parameters:
name- the name of the folder or file to be removed.- Throws:
UnknownMetadataException- if no folder nor file does exists.AmetysRepositoryException- if an error occurs.
-
removeAll
void removeAll() throws AmetysRepositoryException
Deprecated.Removes all files and folders in this folder.- Throws:
AmetysRepositoryException- if an error occurs.
-
-