Class JCRResource
java.lang.Object
org.ametys.plugins.repository.metadata.jcr.JCRResource
- All Implemented Interfaces:
 ModifiableResource,Resource
- Direct Known Subclasses:
 JCRBinaryMetadata,JCRRichText
Deprecated.
Use org.ametys.cms.data.Resource instead
Java binding of a nt:resource JCR Node
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.Check if the node is lockedDeprecated.Returns the encoding if the data stream, if it is a character stream.Deprecated.Returns the data stream.Deprecated.Returns the last modification date.longDeprecated.Returns the length of the data stream.Deprecated.Returns the data mime-type.javax.jcr.NodegetNode()Deprecated.Retrieves the underlying node.Deprecated.Returns an OuputStream to write the data stream.voidDeprecated.Rename the current metadatavoidsetEncoding(String encoding) Deprecated.Set the encoding if the data stream, if it is a character stream.voidsetInputStream(InputStream stream) Deprecated.Set the data stream.voidsetLastModified(Date lastModifiedDate) Deprecated.Set the last modification date.voidsetMimeType(String mimeType) Deprecated.Set the mime type. 
- 
Constructor Details
- 
JCRResource
Deprecated.Constructor- Parameters:
 node- the nt:resource Node
 
 - 
 - 
Method Details
- 
getNode
Deprecated.Retrieves the underlying node.- Returns:
 - the underlying node.
 
 - 
rename
Deprecated.Description copied from interface:ModifiableResourceRename the current metadata- Specified by:
 renamein interfaceModifiableResource- Parameters:
 newName- the new name- Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getEncoding
Deprecated.Description copied from interface:ResourceReturns the encoding if the data stream, if it is a character stream.- Specified by:
 getEncodingin interfaceResource- Returns:
 - the encoding if the data stream or 
nullif not available. - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getInputStream
Deprecated.Description copied from interface:ResourceReturns the data stream.- Specified by:
 getInputStreamin interfaceResource- Returns:
 - the data stream.
 - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getLastModified
Deprecated.Description copied from interface:ResourceReturns the last modification date.- Specified by:
 getLastModifiedin interfaceResource- Returns:
 - the last modification date.
 - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getLength
Deprecated.Description copied from interface:ResourceReturns the length of the data stream.- Specified by:
 getLengthin interfaceResource- Returns:
 - the length of the data stream.
 - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getMimeType
Deprecated.Description copied from interface:ResourceReturns the data mime-type.- Specified by:
 getMimeTypein interfaceResource- Returns:
 - the data mime-type.
 - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
setEncoding
Deprecated.Description copied from interface:ModifiableResourceSet the encoding if the data stream, if it is a character stream.- Specified by:
 setEncodingin interfaceModifiableResource- Parameters:
 encoding- the encoding of the data stream.- Throws:
 AmetysRepositoryException- if an error occurs.
 - 
setInputStream
Deprecated.Description copied from interface:ModifiableResourceSet the data stream.- Specified by:
 setInputStreamin interfaceModifiableResource- Parameters:
 stream- the data stream.- Throws:
 AmetysRepositoryException- if an error occurs.
 - 
setLastModified
Deprecated.Description copied from interface:ModifiableResourceSet the last modification date.- Specified by:
 setLastModifiedin interfaceModifiableResource- Parameters:
 lastModifiedDate- the last modification date.- Throws:
 AmetysRepositoryException- if an error occurs.
 - 
setMimeType
Deprecated.Description copied from interface:ModifiableResourceSet the mime type.- Specified by:
 setMimeTypein interfaceModifiableResource- Parameters:
 mimeType- the mime type of the data.- Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getOutputStream
Deprecated.Description copied from interface:ModifiableResourceReturns an OuputStream to write the data stream.- Specified by:
 getOutputStreamin interfaceModifiableResource- Returns:
 - an OuputStream to write the data stream.
 - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
_checkLock
Deprecated.Check if the node is locked- Throws:
 javax.jcr.RepositoryException- if an error occurred
 
 -