Interface ModifiableResource
- All Superinterfaces:
AmetysObject
,CommentableResource
,DublinCoreAwareAmetysObject
,LockableAmetysObject
,LockAwareAmetysObject
,ModifiableAmetysObject
,ModifiableDublinCoreAwareAmetysObject
,RemovableAmetysObject
,Resource
,TagAwareAmetysObject
,TaggableAmetysObject
- All Known Implementing Classes:
JCRResource
public interface ModifiableResource
extends CommentableResource, ModifiableDublinCoreAwareAmetysObject, RemovableAmetysObject, LockableAmetysObject, TaggableAmetysObject
Interface representing a modifiable resource file of a resources explorer node.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setCreationDate
(Date creationDate) Set the creation date if this resource.void
setCreator
(UserIdentity creator) Set the creator of the resourcevoid
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 resourcevoid
setLastModified
(Date lastModified) Set the last modified date if this resource.void
setMimeType
(String mimeType) Set this resource mime type.Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.plugins.explorer.resources.CommentableResource
getComments
Methods inherited from interface org.ametys.plugins.repository.dublincore.DublinCoreAwareAmetysObject
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
Methods inherited from interface org.ametys.plugins.repository.lock.LockableAmetysObject
lock, unlock
Methods inherited from interface org.ametys.plugins.repository.lock.LockAwareAmetysObject
getLockOwner, isLocked
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
Methods inherited from interface org.ametys.plugins.repository.dublincore.ModifiableDublinCoreAwareAmetysObject
setDCContributor, setDCCoverage, setDCCreator, setDCDate, setDCDescription, setDCFormat, setDCIdentifier, setDCLanguage, setDCPublisher, setDCRelation, setDCRights, setDCSource, setDCSubject, setDCTitle, setDCType
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
Methods inherited from interface org.ametys.plugins.explorer.resources.Resource
getCreationDate, getCreator, getInputStream, getKeywords, getKeywordsAsString, getLastContributor, getLastModified, getLength, getMimeType, getResourcePath
Methods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTags
Methods inherited from interface org.ametys.plugins.repository.tag.TaggableAmetysObject
tag, untag
-
Method Details
-
setData
Set binary data.- Parameters:
stream
- TheInputStream
.mimeType
- The file mimetype.lastModified
- The date of last modification.author
- The author of last modification.
-
setCreator
Set the creator of the resource- Parameters:
creator
- The author
-
setLastContributor
Set the last contributor of the resource- Parameters:
lastContributor
- The last contributor
-
setLastModified
Set the last modified date if this resource.- Parameters:
lastModified
- the last modified date.
-
setCreationDate
Set the creation date if this resource.- Parameters:
creationDate
- the creation date.
-
setKeywords
Set this resource's keywords.- Parameters:
keywords
- the comma-separated keywords.
-
setKeywords
Set this resource's keywords.- Parameters:
keywords
- the keywords.
-
setMimeType
Set this resource mime type.- Parameters:
mimeType
- the mime type.
-