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
ConstructorsConstructorDescriptionJCRBinaryMetadata(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.voidsetFilename(String filename) Deprecated.Set the initial filename of the data, if anyvoidsetInputStream(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, setMimeTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableResource
rename, setEncoding, setLastModified, setMimeTypeMethods 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:BinaryMetadataReturns the initial filename of the data, if any- Specified by:
getFilenamein interfaceBinaryMetadata- Returns:
- the initial filename of the data, or null
-
setFilename
Deprecated.Description copied from interface:ModifiableBinaryMetadataSet the initial filename of the data, if any- Specified by:
setFilenamein interfaceModifiableBinaryMetadata- Parameters:
filename- the initial filename, or null
-
getHash
Deprecated.Description copied from interface:BinaryMetadataReturns the hash of the data (SHA1 encoding)- Specified by:
getHashin interfaceBinaryMetadata- Returns:
- the hash of the data
-
setInputStream
Deprecated.Description copied from interface:ModifiableResourceSet the data stream.- Specified by:
setInputStreamin interfaceModifiableResource- Overrides:
setInputStreamin classJCRResource- Parameters:
stream- the data stream.- Throws:
AmetysRepositoryException- if an error occurs.
-
getOutputStream
Deprecated.Description copied from interface:ModifiableResourceReturns an OuputStream to write the data stream.- Specified by:
getOutputStreamin interfaceModifiableResource- Overrides:
getOutputStreamin classJCRResource- Returns:
- an OuputStream to write the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-