Class JCRFolder
java.lang.Object
org.ametys.plugins.repository.metadata.jcr.JCRFolder
- All Implemented Interfaces:
Folder
,ModifiableFolder
Deprecated.
org.ametys.cms.data.RichText new class doesn't use folder anymore
Java binding of a nt:folder JCR Node.
Text.escapeIllegalJcrChars(String)
is used for
escaping invalid JCR characters or character sequences.
-
Constructor Summary
-
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.getName()
Deprecated.Returns the folder name.javax.jcr.Node
getNode()
Deprecated.Retrieves the underlying node.boolean
Deprecated.Tests the existence of a file.void
Deprecated.Removes the sub-element represented by the specified name.void
Deprecated.Removes all files and folders in this folder.
-
Constructor Details
-
JCRFolder
Deprecated.Constructor- Parameters:
node
- the nt:folder Node
-
-
Method Details
-
getNode
Deprecated.Retrieves the underlying node.- Returns:
- the underlying node.
-
getName
Deprecated.Description copied from interface:Folder
Returns the folder name.- Specified by:
getName
in interfaceFolder
- Returns:
- the folder name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getFolders
Deprecated.Description copied from interface:Folder
Returns a Collection containing all subfolders of this folder.- Specified by:
getFolders
in interfaceFolder
- Specified by:
getFolders
in interfaceModifiableFolder
- Returns:
- a Collection containing all subfolders of this folder.
-
getFolder
Deprecated.Description copied from interface:Folder
Returns the folder with the specified name.- Specified by:
getFolder
in interfaceFolder
- Specified by:
getFolder
in interfaceModifiableFolder
- Parameters:
folderName
- the name of the folder.- Returns:
- the folder with the specified name.
-
addFolder
Deprecated.Description copied from interface:ModifiableFolder
Add a folder with the specified name in this folder.- Specified by:
addFolder
in interfaceModifiableFolder
- Parameters:
folderName
- the folder name.- Returns:
- the created folder.
-
getFiles
Deprecated.Description copied from interface:Folder
Returns a Collection containing all files of this folder.- Specified by:
getFiles
in interfaceFolder
- Specified by:
getFiles
in interfaceModifiableFolder
- Returns:
- a Collection containing all files of this folder.
-
hasFile
Deprecated.Description copied from interface:Folder
Tests the existence of a file.- Specified by:
hasFile
in interfaceFolder
- 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.Description copied from interface:Folder
Returns the file with the specified name.- Specified by:
getFile
in interfaceFolder
- Specified by:
getFile
in interfaceModifiableFolder
- Parameters:
fileName
- the name of the file.- Returns:
- the file with the specified name.
-
addFile
Deprecated.Description copied from interface:ModifiableFolder
Add a file with the specified name in this folder.- Specified by:
addFile
in interfaceModifiableFolder
- Parameters:
fileName
- the file name.- Returns:
- the created file.
-
remove
Deprecated.Description copied from interface:ModifiableFolder
Removes the sub-element represented by the specified name.- Specified by:
remove
in interfaceModifiableFolder
- 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.Description copied from interface:ModifiableFolder
Removes all files and folders in this folder.- Specified by:
removeAll
in interfaceModifiableFolder
- Throws:
AmetysRepositoryException
- if an error occurs.
-