Interface ModifiableResource
- All Superinterfaces:
Resource
- All Known Subinterfaces:
ModifiableBinaryMetadata,ModifiableRichText
- All Known Implementing Classes:
JCRBinaryMetadata,JCRResource,JCRRichText
Deprecated.
Use org.ametys.cms.data.Resource instead
Resource that is modifiable
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.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.Methods inherited from interface org.ametys.plugins.repository.metadata.Resource
getEncoding, getInputStream, getLastModified, getLength, getMimeType
-
Method Details
-
rename
Deprecated.Rename the current metadata- Parameters:
newName- the new name- Throws:
AmetysRepositoryException- if an error occurs.
-
setMimeType
Deprecated.Set the mime type.- Parameters:
mimeType- the mime type of the data.- Throws:
AmetysRepositoryException- if an error occurs.
-
getOutputStream
Deprecated.Returns an OuputStream to write the data stream.- Returns:
- an OuputStream to write the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setInputStream
Deprecated.Set the data stream.- Parameters:
stream- the data stream.- Throws:
AmetysRepositoryException- if an error occurs.
-
setEncoding
Deprecated.Set the encoding if the data stream, if it is a character stream.- Parameters:
encoding- the encoding of the data stream.- Throws:
AmetysRepositoryException- if an error occurs.
-
setLastModified
Deprecated.Set the last modification date.- Parameters:
lastModifiedDate- the last modification date.- Throws:
AmetysRepositoryException- if an error occurs.
-