Interface ModifiableResource

All Superinterfaces:
AmetysObject, CommentableResource, DublinCoreAwareAmetysObject, LockableAmetysObject, LockAwareAmetysObject, ModifiableAmetysObject, ModifiableDublinCoreAwareAmetysObject, RemovableAmetysObject, Resource, TagAwareAmetysObject, TaggableAmetysObject
All Known Implementing Classes:
JCRResource

Interface representing a modifiable resource file of a resources explorer node.
  • Method Details

    • setData

      void setData(InputStream stream, String mimeType, Date lastModified, UserIdentity author)
      Set binary data.
      Parameters:
      stream - The InputStream.
      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.