public interface ThemeImageService extends BaseImageService<ThemeImageVO,NewThemeImageParams>
| Modifier and Type | Method and Description |
|---|---|
ThemeImageVO |
getImageVO(java.lang.Long themeId,
ThemeImageType type,
java.lang.String name)
Returns the image VO for the image with the given data, or throws an
EntityNotFoundException if the given image doesn't exist |
java.util.List<ThemeImageVO> |
list(java.lang.Long themeId,
java.util.Set<ThemeImageType> types)
Lists the given theme's images of the given types
|
SerializableInputStream |
readImageContent(java.lang.Long themeId,
ThemeImageType type,
java.lang.String name,
java.util.List<java.lang.String> colors)
Returns the content of an image, according to the given image nature
|
load, loadByKey, readContent, readContentByKey, remove, save, saveNameThemeImageVO getImageVO(java.lang.Long themeId, ThemeImageType type, java.lang.String name) throws FrameworkException
EntityNotFoundException if the given image doesn't existFrameworkExceptionjava.util.List<ThemeImageVO> list(java.lang.Long themeId, java.util.Set<ThemeImageType> types) throws FrameworkException
FrameworkExceptionSerializableInputStream readImageContent(java.lang.Long themeId, ThemeImageType type, java.lang.String name, java.util.List<java.lang.String> colors) throws FrameworkException
themeId - The theme identifiertype - The image type. Will determine the semantics for the other parametersname - Depends on the nature. When nature == ThemeImageType.CUSTOM, will be the file name. Otherwise, will be the name for the
corresponding enumerationcolors - Only used when nature == ThemeImageType.STYLE_ICON, to colorize the SVGs with the given colors. When no colors are
passed, uses the default colors from the themeFrameworkExceptionThemeImageType.getEnumItem(String)