Interface ModifiableResource
-
- All Superinterfaces:
AmetysObject
,CommentableResource
,DublinCoreAwareAmetysObject
,LockableAmetysObject
,LockAwareAmetysObject
,ModifiableAmetysObject
,ModifiableDublinCoreAwareAmetysObject
,RemovableAmetysObject
,Resource
- All Known Implementing Classes:
JCRResource
public interface ModifiableResource extends CommentableResource, ModifiableDublinCoreAwareAmetysObject, RemovableAmetysObject, LockableAmetysObject
Interface representing a modifiable resource file of a resources explorer node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
setData
void setData(InputStream stream, String mimeType, Date lastModified, UserIdentity author)
Set binary data.- Parameters:
stream
- TheInputStream
.mimeType
- The file mimetype.lastModified
- The date of last modification.author
- The author of last modification.
-
setCreator
void setCreator(UserIdentity creator)
Set the creator of the resource- Parameters:
creator
- The author
-
setLastContributor
void setLastContributor(UserIdentity lastContributor)
Set the last contributor of the resource- Parameters:
lastContributor
- The last contributor
-
setLastModified
void setLastModified(Date lastModified)
Set the last modified date if this resource.- Parameters:
lastModified
- the last modified date.
-
setCreationDate
void setCreationDate(Date creationDate)
Set the creation date if this resource.- Parameters:
creationDate
- the creation date.
-
setKeywords
void setKeywords(String keywords)
Set this resource's keywords.- Parameters:
keywords
- the comma-separated keywords.
-
setKeywords
void setKeywords(String[] keywords)
Set this resource's keywords.- Parameters:
keywords
- the keywords.
-
setMimeType
void setMimeType(String mimeType)
Set this resource mime type.- Parameters:
mimeType
- the mime type.
-
-