Interface Folder
-
- All Known Subinterfaces:
ModifiableFolder
- All Known Implementing Classes:
JCRFolder
@Deprecated public interface Folder
Deprecated.org.ametys.cms.data.RichText new class doesn't use folder anymoreInterface representing a folder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description FilegetFile(String fileName)Deprecated.Returns the file with the specified name.Collection<? extends File>getFiles()Deprecated.Returns a Collection containing all files of this folder.FoldergetFolder(String folderName)Deprecated.Returns the folder with the specified name.Collection<? extends Folder>getFolders()Deprecated.Returns a Collection containing all subfolders of this folder.StringgetName()Deprecated.Returns the folder name.booleanhasFile(String fileName)Deprecated.Tests the existence of a file.
-
-
-
Method Detail
-
getName
String getName() throws AmetysRepositoryException
Deprecated.Returns the folder name.- Returns:
- the folder name.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getFolders
Collection<? extends Folder> getFolders() throws AmetysRepositoryException
Deprecated.Returns a Collection containing all subfolders of this folder.- Returns:
- a Collection containing all subfolders of this folder.
- Throws:
AmetysRepositoryException- if an error occurs
-
getFolder
Folder getFolder(String folderName) throws UnknownMetadataException, AmetysRepositoryException
Deprecated.Returns the folder with the specified name.- 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<? extends File> getFiles() throws AmetysRepositoryException
Deprecated.Returns a Collection containing all files of this folder.- Returns:
- a Collection containing all files of this folder.
- Throws:
AmetysRepositoryException- if an error occurs.
-
hasFile
boolean hasFile(String fileName) throws AmetysRepositoryException
Deprecated.Tests the existence of a file.- Parameters:
fileName- the name of the file.- Returns:
- true if the specified file exists in this folder.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getFile
File getFile(String fileName) throws UnknownMetadataException, AmetysRepositoryException
Deprecated.Returns the file with the specified name.- 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.
-
-