Interface ModifiableResource
-
- All Superinterfaces:
Resource
- All Known Subinterfaces:
ModifiableBinaryMetadata
,ModifiableRichText
- All Known Implementing Classes:
JCRBinaryMetadata
,JCRResource
,JCRRichText
@Deprecated public interface ModifiableResource extends Resource
Deprecated.Use org.ametys.cms.data.Resource insteadResource that is modifiable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description OutputStream
getOutputStream()
Deprecated.Returns an OuputStream to write the data stream.void
rename(String newName)
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 Detail
-
rename
void rename(String newName) throws AmetysRepositoryException
Deprecated.Rename the current metadata- Parameters:
newName
- the new name- Throws:
AmetysRepositoryException
- if an error occurs.
-
setMimeType
void setMimeType(String mimeType) throws AmetysRepositoryException
Deprecated.Set the mime type.- Parameters:
mimeType
- the mime type of the data.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getOutputStream
OutputStream getOutputStream() throws AmetysRepositoryException
Deprecated.Returns an OuputStream to write the data stream.- Returns:
- an OuputStream to write the data stream.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setInputStream
void setInputStream(InputStream stream) throws AmetysRepositoryException
Deprecated.Set the data stream.- Parameters:
stream
- the data stream.- Throws:
AmetysRepositoryException
- if an error occurs.
-
setEncoding
void setEncoding(String encoding) throws AmetysRepositoryException
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
void setLastModified(Date lastModifiedDate) throws AmetysRepositoryException
Deprecated.Set the last modification date.- Parameters:
lastModifiedDate
- the last modification date.- Throws:
AmetysRepositoryException
- if an error occurs.
-
-