Interface MTImage


public interface MTImage
An image stored in the repository.
  • Method Details

    • getID

      Long getID()
      Returns the ID of the image.
      Returns:
      The ID of the image.
    • getUUID

      String getUUID()
      Returns the UUID of the image.
      Returns:
      The UUID of the image.
    • getName

      String getName()
      Returns the name of the image.
      Returns:
      The name of the image.
    • setName

      void setName(String name)
      Sets the name of the image.
      Parameters:
      name - The new name of the image.
    • getImageDataAsBytes

      byte[] getImageDataAsBytes()
      Returns the image data as bytes.
      Returns:
      The image data as bytes.
    • getImageData

      BufferedImage getImageData()
      Returns the image data.
      Returns:
      The image data.
    • setImageData

      void setImageData(BufferedImage image)
      Sets the image data.
      Parameters:
      image - The new image data.
    • save

      void save()
      Saves the image to storage.
    • remove

      void remove()
      Removes the image from storage.