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
Constructors -
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.NodegetNode()Deprecated.Retrieves the underlying node.booleanDeprecated.Tests the existence of a file.voidDeprecated.Removes the sub-element represented by the specified name.voidDeprecated.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:FolderReturns the folder name.- Specified by:
getNamein interfaceFolder- Returns:
- the folder name.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getFolders
Deprecated.Description copied from interface:FolderReturns a Collection containing all subfolders of this folder.- Specified by:
getFoldersin interfaceFolder- Specified by:
getFoldersin interfaceModifiableFolder- Returns:
- a Collection containing all subfolders of this folder.
-
getFolder
Deprecated.Description copied from interface:FolderReturns the folder with the specified name.- Specified by:
getFolderin interfaceFolder- Specified by:
getFolderin interfaceModifiableFolder- Parameters:
folderName- the name of the folder.- Returns:
- the folder with the specified name.
-
addFolder
Deprecated.Description copied from interface:ModifiableFolderAdd a folder with the specified name in this folder.- Specified by:
addFolderin interfaceModifiableFolder- Parameters:
folderName- the folder name.- Returns:
- the created folder.
-
getFiles
Deprecated.Description copied from interface:FolderReturns a Collection containing all files of this folder.- Specified by:
getFilesin interfaceFolder- Specified by:
getFilesin interfaceModifiableFolder- Returns:
- a Collection containing all files of this folder.
-
hasFile
Deprecated.Description copied from interface:FolderTests the existence of a file.- Specified by:
hasFilein 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:FolderReturns the file with the specified name.- Specified by:
getFilein interfaceFolder- Specified by:
getFilein interfaceModifiableFolder- Parameters:
fileName- the name of the file.- Returns:
- the file with the specified name.
-
addFile
Deprecated.Description copied from interface:ModifiableFolderAdd a file with the specified name in this folder.- Specified by:
addFilein interfaceModifiableFolder- Parameters:
fileName- the file name.- Returns:
- the created file.
-
remove
Deprecated.Description copied from interface:ModifiableFolderRemoves the sub-element represented by the specified name.- Specified by:
removein interfaceModifiableFolder- Parameters:
name- the name of the folder or file to be removed.- Throws:
AmetysRepositoryException- if an error occurs.
-
removeAll
Deprecated.Description copied from interface:ModifiableFolderRemoves all files and folders in this folder.- Specified by:
removeAllin interfaceModifiableFolder- Throws:
AmetysRepositoryException- if an error occurs.
-