Class JCRFile
- java.lang.Object
-
- org.ametys.plugins.repository.metadata.jcr.JCRFile
-
- All Implemented Interfaces:
File
,ModifiableFile
@Deprecated public class JCRFile extends Object implements ModifiableFile
Deprecated.org.ametys.cms.data.RichText new class doesn't use folder anymoreJava binding of a nt:file JCR Node.Text.escapeIllegalJcrChars(String)
is used for escaping invalid JCR characters or character sequences.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getName()
Deprecated.Returns the file name.Node
getNode()
Deprecated.Retrieves the underlying node.JCRResource
getResource()
Deprecated.Returns the binary content of this file.
-
-
-
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:File
Returns the file name.- Specified by:
getName
in interfaceFile
- Returns:
- the file name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getResource
public JCRResource getResource() throws AmetysRepositoryException
Deprecated.Description copied from interface:File
Returns the binary content of this file.- Specified by:
getResource
in interfaceFile
- Specified by:
getResource
in interfaceModifiableFile
- Returns:
- the binary content of this file.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-