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 TypeMethodDescriptionvoidsetCreationDate(Date creationDate) Set the creation date if this resource.voidsetCreator(UserIdentity creator) Set the creator of the resourcevoidsetData(InputStream stream, String mimeType, Date lastModified, UserIdentity author) Set binary data.voidsetKeywords(String keywords) Set this resource's keywords.voidsetKeywords(String[] keywords) Set this resource's keywords.voidsetLastContributor(UserIdentity lastContributor) Set the last contributor of the resourcevoidsetLastModified(Date lastModified) Set the last modified date if this resource.voidsetMimeType(String mimeType) Set this resource mime type.Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.explorer.resources.CommentableResource
getCommentsMethods inherited from interface org.ametys.plugins.repository.dublincore.DublinCoreAwareAmetysObject
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCTypeMethods inherited from interface org.ametys.plugins.repository.lock.LockableAmetysObject
lock, unlockMethods inherited from interface org.ametys.plugins.repository.lock.LockAwareAmetysObject
getLockOwner, isLockedMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.dublincore.ModifiableDublinCoreAwareAmetysObject
setDCContributor, setDCCoverage, setDCCreator, setDCDate, setDCDescription, setDCFormat, setDCIdentifier, setDCLanguage, setDCPublisher, setDCRelation, setDCRights, setDCSource, setDCSubject, setDCTitle, setDCTypeMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.plugins.explorer.resources.Resource
getCreationDate, getCreator, getInputStream, getKeywords, getKeywordsAsString, getLastContributor, getLastModified, getLength, getMimeType, getResourcePathMethods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTagsMethods 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.
-