@Security public class UserCustomImageServiceSecurity extends BaseServiceSecurity implements UserCustomImageService, ImageServiceSecurity<UserCustomImage,UserCustomImageVO,java.lang.Long>
UserCustomImageService| Constructor and Description |
|---|
UserCustomImageServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
UserCustomImagesListData |
getListData(UserLocatorVO userVO)
Returns data to list user custom images for the given user
|
BaseImageServiceLocal<UserCustomImageVO,java.lang.Long> |
getServiceImpl() |
boolean |
hasManageAccess(UserCustomImage image) |
java.util.List<UserCustomImageVO> |
list(java.lang.Long userId)
Returns a list of images for the given category id (when system custom images) or user id (when user custom
images)
|
UserCustomImageVO |
load(java.lang.Long id)
Loads a VO by id
|
UserCustomImageVO |
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 |
UserCustomImageVO |
save(java.lang.Long userId,
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 UserCustomImagesListData getListData(UserLocatorVO userVO) throws FrameworkException
UserCustomImageServicegetListData in interface UserCustomImageServiceFrameworkExceptionpublic BaseImageServiceLocal<UserCustomImageVO,java.lang.Long> getServiceImpl()
getServiceImpl in interface ImageServiceSecurity<UserCustomImage,UserCustomImageVO,java.lang.Long>public boolean hasManageAccess(UserCustomImage image)
hasManageAccess in interface ImageServiceSecurity<UserCustomImage,UserCustomImageVO,java.lang.Long>public java.util.List<UserCustomImageVO> list(java.lang.Long userId) throws FrameworkException
BaseCustomImageServicelist in interface BaseCustomImageService<UserCustomImageVO,java.lang.Long>FrameworkExceptionpublic UserCustomImageVO load(java.lang.Long id) throws EntityNotFoundException
BaseImageServiceload in interface BaseImageService<UserCustomImageVO,java.lang.Long>EntityNotFoundExceptionBaseImageService.load(java.lang.Long)public UserCustomImageVO loadByKey(java.lang.String key) throws EntityNotFoundException
BaseImageServiceloadByKey in interface BaseImageService<UserCustomImageVO,java.lang.Long>EntityNotFoundExceptionBaseImageService.loadByKey(java.lang.String)public void remove(java.lang.Long id)
BaseImageServiceremove in interface BaseImageService<UserCustomImageVO,java.lang.Long>public UserCustomImageVO save(java.lang.Long userId, java.lang.String name, SerializableInputStream contents, java.lang.String contentType)
BaseImageServicesave in interface BaseImageService<UserCustomImageVO,java.lang.Long>public void saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
BaseImageServicesaveName in interface BaseImageService<UserCustomImageVO,java.lang.Long>FrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity