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) |
SerializableInputStream |
readContentByKey(java.lang.String key) |
void |
remove(java.lang.Long id)
Removes the given image
|
VO |
save(NP param,
java.lang.String name,
SerializableInputStream contents,
java.lang.String contentType) |
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