@Security public class ThemeImageServiceSecurity extends BaseServiceSecurity implements ThemeImageService, ImageServiceSecurity<ThemeImage,ThemeImageVO,NewThemeImageParams>
ThemeImageService| Constructor and Description |
|---|
ThemeImageServiceSecurity() |
| 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 |
BaseImageServiceLocal<ThemeImageVO,NewThemeImageParams> |
getServiceImpl() |
boolean |
hasManageAccess(ThemeImage image) |
java.util.List<ThemeImageVO> |
list(java.lang.Long themeId,
java.util.Set<ThemeImageType> types)
Lists the given theme's images of the given types
|
ThemeImageVO |
load(java.lang.Long id)
Loads a VO by id
|
ThemeImageVO |
loadByKey(java.lang.String key)
Loads a VO by url id
|
void |
remove(java.lang.Long id)
Removes the given image
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
ThemeImageVO |
save(NewThemeImageParams 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
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic ThemeImageVO getImageVO(java.lang.Long themeId, ThemeImageType type, java.lang.String name) throws FrameworkException
ThemeImageServiceEntityNotFoundException if the given
image doesn't existgetImageVO in interface ThemeImageServiceFrameworkExceptionpublic BaseImageServiceLocal<ThemeImageVO,NewThemeImageParams> getServiceImpl()
getServiceImpl in interface ImageServiceSecurity<ThemeImage,ThemeImageVO,NewThemeImageParams>public boolean hasManageAccess(ThemeImage image)
hasManageAccess in interface ImageServiceSecurity<ThemeImage,ThemeImageVO,NewThemeImageParams>public java.util.List<ThemeImageVO> list(java.lang.Long themeId, java.util.Set<ThemeImageType> types) throws FrameworkException
ThemeImageServicelist in interface ThemeImageServiceFrameworkExceptionpublic ThemeImageVO load(java.lang.Long id) throws FrameworkException
BaseImageServiceload in interface BaseImageService<ThemeImageVO,NewThemeImageParams>FrameworkExceptionpublic ThemeImageVO loadByKey(java.lang.String key) throws FrameworkException
BaseImageServiceloadByKey in interface BaseImageService<ThemeImageVO,NewThemeImageParams>FrameworkExceptionpublic void remove(java.lang.Long id)
throws FrameworkException
BaseImageServiceremove in interface BaseImageService<ThemeImageVO,NewThemeImageParams>FrameworkExceptionpublic ThemeImageVO save(NewThemeImageParams param, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
BaseImageServicesave in interface BaseImageService<ThemeImageVO,NewThemeImageParams>FrameworkExceptionpublic void saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
BaseImageServicesaveName in interface BaseImageService<ThemeImageVO,NewThemeImageParams>FrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity