@Security public class ConfigurationImageServiceSecurity extends BaseServiceSecurity implements ConfigurationImageService, ImageServiceSecurity<ConfigurationImage,ConfigurationImageVO,NewConfigurationImageParams>
ConfigurationImageService| Constructor and Description |
|---|
ConfigurationImageServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationImageVO |
getImageVO(java.lang.Long configurationId,
ConfigurationImageType type)
Returns data about a configuration image, optionally searching inherited images from parent configurations.
|
ConfigurationImagesListData |
getListData(ConfigurationVO configurationVO)
Returns data to list images in a given configuration
|
BaseImageServiceLocal<ConfigurationImageVO,NewConfigurationImageParams> |
getServiceImpl() |
boolean |
hasManageAccess(ConfigurationImage image) |
java.util.List<ConfigurationImageVO> |
list(ConfigurationVO configurationVO)
Lists a configuration's images, optionally including inherited images from parent configurations
|
ConfigurationImageVO |
load(java.lang.Long id)
Loads a VO by id
|
ConfigurationImageVO |
loadByKey(java.lang.String key)
Loads a VO by url id
|
void |
remove(java.lang.Long id)
Removes the given image
|
void |
removeByConfigurationAndType(ConfigurationVO configurationVO,
ConfigurationImageType type)
Removes a configuration image, making it inherit the default (either from a parent configuration or the hardcoded
default)
|
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 |
ConfigurationImageVO |
save(NewConfigurationImageParams 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 ConfigurationImageVO getImageVO(java.lang.Long configurationId, ConfigurationImageType type) throws FrameworkException
ConfigurationImageServicegetImageVO in interface ConfigurationImageServiceFrameworkExceptionpublic ConfigurationImagesListData getListData(ConfigurationVO configurationVO) throws FrameworkException
ConfigurationImageServicegetListData in interface ConfigurationImageServiceFrameworkExceptionpublic BaseImageServiceLocal<ConfigurationImageVO,NewConfigurationImageParams> getServiceImpl()
getServiceImpl in interface ImageServiceSecurity<ConfigurationImage,ConfigurationImageVO,NewConfigurationImageParams>public boolean hasManageAccess(ConfigurationImage image)
hasManageAccess in interface ImageServiceSecurity<ConfigurationImage,ConfigurationImageVO,NewConfigurationImageParams>public java.util.List<ConfigurationImageVO> list(ConfigurationVO configurationVO) throws FrameworkException
ConfigurationImageServicelist in interface ConfigurationImageServiceFrameworkExceptionpublic ConfigurationImageVO load(java.lang.Long id) throws FrameworkException
BaseImageServiceload in interface BaseImageService<ConfigurationImageVO,NewConfigurationImageParams>FrameworkExceptionpublic ConfigurationImageVO loadByKey(java.lang.String key) throws FrameworkException
BaseImageServiceloadByKey in interface BaseImageService<ConfigurationImageVO,NewConfigurationImageParams>FrameworkExceptionpublic void remove(java.lang.Long id)
throws FrameworkException
BaseImageServiceremove in interface BaseImageService<ConfigurationImageVO,NewConfigurationImageParams>FrameworkExceptionpublic void removeByConfigurationAndType(ConfigurationVO configurationVO, ConfigurationImageType type) throws FrameworkException
ConfigurationImageServiceremoveByConfigurationAndType in interface ConfigurationImageServiceFrameworkExceptionpublic ConfigurationImageVO save(NewConfigurationImageParams param, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
BaseImageServicesave in interface BaseImageService<ConfigurationImageVO,NewConfigurationImageParams>FrameworkExceptionpublic void saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
BaseImageServicesaveName in interface BaseImageService<ConfigurationImageVO,NewConfigurationImageParams>FrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity