Interface ModifiableFolder
- All Superinterfaces:
Folder
- All Known Implementing Classes:
JCRFolder
Deprecated.
org.ametys.cms.data.RichText new class doesn't use folder anymore
Folder that is not read only
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Add a file with the specified name in this folder.Deprecated.Add a folder with the specified name in this folder.Deprecated.Returns the file with the specified name.getFiles()
Deprecated.Returns a Collection containing all files of this folder.Deprecated.Returns the folder with the specified name.Deprecated.Returns a Collection containing all subfolders of this folder.void
Deprecated.Removes the sub-element represented by the specified name.void
Deprecated.Removes all files and folders in this folder.
-
Method Details
-
getFolders
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
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
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
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
Deprecated.Removes all files and folders in this folder.- Throws:
AmetysRepositoryException
- if an error occurs.
-