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 public class JCRBinaryMetadata extends JCRResource implements ModifiableBinaryMetadata
Deprecated.Use org.ametys.cms.data.Binary insteadJCR based implementation of aBinaryMetadatabased on the ametys:binaryMetadata nodetype
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger__loggerDeprecated.
-
Constructor Summary
Constructors Constructor Description JCRBinaryMetadata(Node node)Deprecated.Creates a Node-based binary metadata
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetFilename()Deprecated.Returns the initial filename of the data, if anyStringgetHash()Deprecated.Returns the hash of the data (SHA1 encoding)OutputStreamgetOutputStream()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, 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
-
-
-
-
Field Detail
-
__logger
private static org.slf4j.Logger __logger
Deprecated.
-
-
Constructor Detail
-
JCRBinaryMetadata
public JCRBinaryMetadata(Node node)
Deprecated.Creates a Node-based binary metadata- Parameters:
node- the support Node
-
-
Method Detail
-
getFilename
public String 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
public void setFilename(String filename)
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
public String 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
public void setInputStream(InputStream stream) throws AmetysRepositoryException
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
public OutputStream getOutputStream() throws AmetysRepositoryException
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.
-
-