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 ModifiableFile
addFile(String fileName)
Deprecated.Add a file with the specified name in this folder.ModifiableFolder
addFolder(String folderName)
Deprecated.Add a folder with the specified name in this folder.ModifiableFile
getFile(String fileName)
Deprecated.Returns the file with the specified name.Collection<ModifiableFile>
getFiles()
Deprecated.Returns a Collection containing all files of this folder.ModifiableFolder
getFolder(String folderName)
Deprecated.Returns the folder with the specified name.Collection<ModifiableFolder>
getFolders()
Deprecated.Returns a Collection containing all subfolders of this folder.void
remove(String name)
Deprecated.Removes the sub-element represented by the specified name.void
removeAll()
Deprecated.Removes all files and folders in this folder.
-
-
-
Method Detail
-
getFolders
Collection<ModifiableFolder> getFolders() throws AmetysRepositoryException
Deprecated.Description copied from interface:Folder
Returns a Collection containing all subfolders of this folder.- Specified by:
getFolders
in 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:Folder
Returns the folder with the specified name.- Specified by:
getFolder
in 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:Folder
Returns a Collection containing all files of this folder.- Specified by:
getFiles
in 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:Folder
Returns the file with the specified name.- Specified by:
getFile
in 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.
-
-