Class JCRFolder
- java.lang.Object
 - 
- org.ametys.plugins.repository.metadata.jcr.JCRFolder
 
 
- 
- All Implemented Interfaces:
 Folder,ModifiableFolder
@Deprecated public class JCRFolder extends Object implements ModifiableFolder
Deprecated.org.ametys.cms.data.RichText new class doesn't use folder anymoreJava binding of a nt:folder JCR Node.Text.escapeIllegalJcrChars(String)is used for escaping invalid JCR characters or character sequences. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private boolean_lockAlreadyCheckedDeprecated.private Node_nodeDeprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private void_checkLock()Deprecated.ModifiableFileaddFile(String fileName)Deprecated.Add a file with the specified name in this folder.ModifiableFolderaddFolder(String folderName)Deprecated.Add a folder with the specified name in this folder.ModifiableFilegetFile(String fileName)Deprecated.Returns the file with the specified name.Collection<ModifiableFile>getFiles()Deprecated.Returns a Collection containing all files of this folder.ModifiableFoldergetFolder(String folderName)Deprecated.Returns the folder with the specified name.Collection<ModifiableFolder>getFolders()Deprecated.Returns a Collection containing all subfolders of this folder.StringgetName()Deprecated.Returns the folder name.NodegetNode()Deprecated.Retrieves the underlying node.booleanhasFile(String fileName)Deprecated.Tests the existence of a file.voidremove(String name)Deprecated.Removes the sub-element represented by the specified name.voidremoveAll()Deprecated.Removes all files and folders in this folder. 
 - 
 
- 
- 
Field Detail
- 
_lockAlreadyChecked
private boolean _lockAlreadyChecked
Deprecated. 
 - 
 
- 
Method Detail
- 
getNode
public Node getNode()
Deprecated.Retrieves the underlying node.- Returns:
 - the underlying node.
 
 
- 
getName
public String getName() throws AmetysRepositoryException
Deprecated.Description copied from interface:FolderReturns the folder name.- Specified by:
 getNamein interfaceFolder- Returns:
 - the folder name.
 - Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
getFolders
public Collection<ModifiableFolder> 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
public ModifiableFolder getFolder(String folderName)
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
public ModifiableFolder addFolder(String folderName)
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
public Collection<ModifiableFile> 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
public boolean hasFile(String fileName) throws AmetysRepositoryException
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
public ModifiableFile getFile(String fileName)
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
public ModifiableFile addFile(String fileName)
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
public void remove(String name) throws AmetysRepositoryException
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:
 UnknownMetadataException- if no folder nor file does exists.AmetysRepositoryException- if an error occurs.
 
- 
removeAll
public void removeAll() throws AmetysRepositoryException
Deprecated.Description copied from interface:ModifiableFolderRemoves all files and folders in this folder.- Specified by:
 removeAllin interfaceModifiableFolder- Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
_checkLock
private void _checkLock() throws RepositoryException
Deprecated.- Throws:
 RepositoryException
 
 - 
 
 -