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.void
Deprecated.Rename the current metadatavoid
setEncoding
(String encoding) Deprecated.Set the encoding if the data stream, if it is a character stream.void
setInputStream
(InputStream stream) Deprecated.Set the data stream.void
setLastModified
(Date lastModifiedDate) Deprecated.Set the last modification date.void
setMimeType
(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.
-