Interface IResourceVersion

All Superinterfaces:
Comparable<IResourceVersion>

public interface IResourceVersion
extends Comparable<IResourceVersion>
The interface representing a version instance of an IResource.
  • Method Details

    • getPath

      String getPath()
      Returns the path of this resource version

      The result may not be null.

      Example: /db/users/test.txt
      Example: /db/articles

      Returns:
      the location of the IResource
    • getVersion

      int getVersion()
      Returns the version number.
      Returns:
      the version
    • getContent

      byte[] getContent() throws RepositoryReadException
      Returns the content of the resource version as a byte array.
      Returns:
      the raw content
      Throws:
      RepositoryReadException - the repository read exception
    • isBinary

      boolean isBinary()
      Getter for binary flag.
      Returns:
      whether it is binary
    • getContentType

      String getContentType()
      Getter for the content type.
      Returns:
      the type of the content
    • getCreatedBy

      String getCreatedBy()
      The creator of the entity.
      Returns:
      the user created this version
    • getCreatedAt

      Date getCreatedAt()
      Timestamp of the creation of the entity.
      Returns:
      the time this version has been created