Package se.conciliate.extensions.store
Interface MTImage
public interface MTImage
An image stored in the repository.
-
Method Summary
Modifier and TypeMethodDescriptiongetID()
Returns the ID of the image.Returns the image data.byte[]
Returns the image data as bytes.getName()
Returns the name of the image.getUUID()
Returns the UUID of the image.void
remove()
Removes the image from storage.void
save()
Saves the image to storage.void
setImageData
(BufferedImage image) Sets the image data.void
Sets the name of the image.
-
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
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
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.
-