VO - The image VO typeNP - The parameter used to identify saving new imagespublic interface BaseImageService<VO extends ImageVO,NP> extends Service
| Modifier and Type | Method and Description |
|---|---|
VO |
load(java.lang.Long id)
Loads a VO by id
|
VO |
loadByKey(java.lang.String key)
Loads a VO by url id
|
SerializableInputStream |
readContent(java.lang.Long id)
Reads the contents for the image with the given id, with the specified size
|
SerializableInputStream |
readContentByKey(java.lang.String key)
Reads the contents for the image with the given key, with the specified size
|
void |
remove(java.lang.Long id)
Removes the given image
|
VO |
save(NP param,
java.lang.String name,
SerializableInputStream contents,
java.lang.String contentType)
Saves the given image for the given parameter (which depends on each image type), returning the descriptor
|
void |
saveName(java.lang.Long id,
java.lang.String name)
Saves the name of the given image
|
VO load(java.lang.Long id) throws FrameworkException
FrameworkExceptionVO loadByKey(java.lang.String key) throws FrameworkException
FrameworkExceptionSerializableInputStream readContent(java.lang.Long id) throws FrameworkException
FrameworkExceptionSerializableInputStream readContentByKey(java.lang.String key) throws FrameworkException
FrameworkExceptionvoid remove(java.lang.Long id)
throws FrameworkException
FrameworkExceptionVO save(NP param, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
FrameworkExceptionvoid saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
FrameworkException