public interface ModifiableResource extends CommentableResource, ModifiableDublinCoreAwareAmetysObject, RemovableAmetysObject, LockableAmetysObject
Modifier and Type | Method and Description |
---|---|
void |
setCreationDate(Date creationDate)
Set the creation date if this resource.
|
void |
setCreator(UserIdentity creator)
Set the creator of the resource
|
void |
setData(InputStream stream,
String mimeType,
Date lastModified,
UserIdentity author)
Set binary data.
|
void |
setKeywords(String keywords)
Set this resource's keywords.
|
void |
setKeywords(String[] keywords)
Set this resource's keywords.
|
void |
setLastContributor(UserIdentity lastContributor)
Set the last contributor of the resource
|
void |
setLastModified(Date lastModified)
Set the last modified date if this resource.
|
void |
setMimeType(String mimeType)
Set this resource mime type.
|
getComments
getCreationDate, getCreator, getInputStream, getKeywords, getKeywordsAsString, getLastContributor, getLastModified, getLength, getMimeType, getResourcePath
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
equals, getId, getName, getParent, getParentPath, getPath, hashCode
setDCContributor, setDCCoverage, setDCCreator, setDCDate, setDCDescription, setDCFormat, setDCIdentifier, setDCLanguage, setDCPublisher, setDCRelation, setDCRights, setDCSource, setDCSubject, setDCTitle, setDCType
needsSave, rename, revertChanges, saveChanges
remove
lock, unlock
getLockOwner, isLocked
void setData(InputStream stream, String mimeType, Date lastModified, UserIdentity author)
stream
- The InputStream
.mimeType
- The file mimetype.lastModified
- The date of last modification.author
- The author of last modification.void setCreator(UserIdentity creator)
creator
- The authorvoid setLastContributor(UserIdentity lastContributor)
lastContributor
- The last contributorvoid setLastModified(Date lastModified)
lastModified
- the last modified date.void setCreationDate(Date creationDate)
creationDate
- the creation date.void setKeywords(String keywords)
keywords
- the comma-separated keywords.void setKeywords(String[] keywords)
keywords
- the keywords.void setMimeType(String mimeType)
mimeType
- the mime type.