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
|
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(@NotNull java.lang.Long id) throws FrameworkException
FrameworkExceptionVO loadByKey(@NotNull java.lang.String key) throws FrameworkException
FrameworkExceptionvoid remove(@NotNull
java.lang.Long id)
throws FrameworkException
FrameworkExceptionVO save(NP param, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
FrameworkExceptionvoid saveName(@NotNull
java.lang.Long id,
java.lang.String name)
throws FrameworkException
FrameworkException