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 aBinaryMetadata
based on the ametys:binaryMetadata nodetype
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
__logger
Deprecated.
-
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 String
getFilename()
Deprecated.Returns the initial filename of the data, if anyString
getHash()
Deprecated.Returns the hash of the data (SHA1 encoding)OutputStream
getOutputStream()
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
-
-
-
-
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: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
public void setFilename(String filename)
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
public String 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
public void setInputStream(InputStream stream) throws AmetysRepositoryException
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
public OutputStream getOutputStream() throws AmetysRepositoryException
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.
-
-