@Security public class UserImageServiceSecurity extends BaseServiceSecurity implements UserImageService, ImageServiceSecurity<UserImage,UserImageVO,java.lang.Long>
UserImageService| Constructor and Description |
|---|
UserImageServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
UserImagesListData |
getListData(UserLocatorVO locator)
Returns data for listing an user's profile images
|
BaseImageServiceLocal<UserImageVO,java.lang.Long> |
getServiceImpl() |
boolean |
hasManageAccess(UserImage image) |
java.util.List<UserImageVO> |
list(java.lang.Long userId)
Returns a list of images for the given owner id
|
UserImageVO |
load(java.lang.Long id)
Loads a VO by id
|
UserImageVO |
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 |
UserImageVO |
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
|
void |
saveOrder(java.lang.Long userId,
java.util.List<java.lang.Long> imageIds)
Saves the images order
|
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 UserImagesListData getListData(UserLocatorVO locator) throws FrameworkException
UserImageServicegetListData in interface UserImageServiceFrameworkExceptionpublic BaseImageServiceLocal<UserImageVO,java.lang.Long> getServiceImpl()
getServiceImpl in interface ImageServiceSecurity<UserImage,UserImageVO,java.lang.Long>public boolean hasManageAccess(UserImage image)
hasManageAccess in interface ImageServiceSecurity<UserImage,UserImageVO,java.lang.Long>public java.util.List<UserImageVO> list(java.lang.Long userId) throws FrameworkException
BaseOwnedImageServicelist in interface BaseOwnedImageService<UserImageVO>FrameworkExceptionpublic UserImageVO load(java.lang.Long id) throws EntityNotFoundException
BaseImageServiceload in interface BaseImageService<UserImageVO,java.lang.Long>EntityNotFoundExceptionpublic UserImageVO loadByKey(java.lang.String key) throws EntityNotFoundException
BaseImageServiceloadByKey in interface BaseImageService<UserImageVO,java.lang.Long>EntityNotFoundExceptionpublic void remove(java.lang.Long id)
BaseImageServiceremove in interface BaseImageService<UserImageVO,java.lang.Long>public UserImageVO save(java.lang.Long userId, java.lang.String name, SerializableInputStream contents, java.lang.String contentType)
BaseImageServicesave in interface BaseImageService<UserImageVO,java.lang.Long>public void saveName(java.lang.Long id,
java.lang.String name)
BaseImageServicesaveName in interface BaseImageService<UserImageVO,java.lang.Long>public void saveOrder(java.lang.Long userId,
java.util.List<java.lang.Long> imageIds)
throws FrameworkException
BaseOwnedImageServicesaveOrder in interface BaseOwnedImageService<UserImageVO>FrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity