Interface Folder
- All Known Subinterfaces:
ModifiableFolder
- All Known Implementing Classes:
JCRFolder
Deprecated.
org.ametys.cms.data.RichText new class doesn't use folder anymore
Interface representing a folder.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the file with the specified name.Collection<? extends File>
getFiles()
Deprecated.Returns a Collection containing all files of this folder.Deprecated.Returns the folder with the specified name.Collection<? extends Folder>
Deprecated.Returns a Collection containing all subfolders of this folder.getName()
Deprecated.Returns the folder name.boolean
Deprecated.Tests the existence of a file.
-
Method Details
-
getName
Deprecated.Returns the folder name.- Returns:
- the folder name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getFolders
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
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
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
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
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.
-