Class JCRBinaryMetadata
java.lang.Object
org.ametys.plugins.repository.metadata.jcr.JCRResource
org.ametys.plugins.repository.metadata.jcr.JCRBinaryMetadata
- All Implemented Interfaces:
BinaryMetadata
,ModifiableBinaryMetadata
,ModifiableResource
,Resource
Deprecated.
Use org.ametys.cms.data.Binary instead
JCR based implementation of a
BinaryMetadata
based on the ametys:binaryMetadata nodetype-
Constructor Summary
ConstructorDescriptionJCRBinaryMetadata
(javax.jcr.Node node) Deprecated.Creates a Node-based binary metadata -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the initial filename of the data, if anygetHash()
Deprecated.Returns the hash of the data (SHA1 encoding)Deprecated.Returns an OuputStream to write the data stream.void
setFilename
(String filename) Deprecated.Set the initial filename of the data, if anyvoid
setInputStream
(InputStream stream) Deprecated.Set the data stream.Methods inherited from class org.ametys.plugins.repository.metadata.jcr.JCRResource
_checkLock, getEncoding, getInputStream, getLastModified, getLength, getMimeType, getNode, rename, setEncoding, setLastModified, setMimeType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableResource
rename, setEncoding, setLastModified, setMimeType
Methods inherited from interface org.ametys.plugins.repository.metadata.Resource
getEncoding, getInputStream, getLastModified, getLength, getMimeType
-
Constructor Details
-
JCRBinaryMetadata
Deprecated.Creates a Node-based binary metadata- Parameters:
node
- the support Node
-
-
Method Details
-
getFilename
Deprecated.Description copied from interface:BinaryMetadata
Returns the initial filename of the data, if any- Specified by:
getFilename
in interfaceBinaryMetadata
- Returns:
- the initial filename of the data, or null
-
setFilename
Deprecated.Description copied from interface:ModifiableBinaryMetadata
Set the initial filename of the data, if any- Specified by:
setFilename
in interfaceModifiableBinaryMetadata
- Parameters:
filename
- the initial filename, or null
-
getHash
Deprecated.Description copied from interface:BinaryMetadata
Returns the hash of the data (SHA1 encoding)- Specified by:
getHash
in interfaceBinaryMetadata
- Returns:
- the hash of the data
-
setInputStream
Deprecated.Description copied from interface:ModifiableResource
Set the data stream.- Specified by:
setInputStream
in interfaceModifiableResource
- Overrides:
setInputStream
in classJCRResource
- Parameters:
stream
- the data stream.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getOutputStream
Deprecated.Description copied from interface:ModifiableResource
Returns an OuputStream to write the data stream.- Specified by:
getOutputStream
in interfaceModifiableResource
- Overrides:
getOutputStream
in classJCRResource
- Returns:
- an OuputStream to write the data stream.
- Throws:
AmetysRepositoryException
- if an error occurs.
-