Package org.cyclos.security.users
Class UserImageServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.system.BaseImageServiceSecurity<I,NP>
-
- org.cyclos.security.system.BaseCategorizedImageServiceSecurity<I,O,NP>
-
- org.cyclos.security.system.BaseOwnedImageServiceSecurity<User,UserImage,UserLocatorVO>
-
- org.cyclos.security.users.UserImageServiceSecurity
-
- All Implemented Interfaces:
Service,BaseCategorizedImageService<UserLocatorVO>,BaseImageService<UserLocatorVO>,BaseOwnedImageService<UserLocatorVO>,UserImageService
@Security public class UserImageServiceSecurity extends BaseOwnedImageServiceSecurity<User,UserImage,UserLocatorVO> implements UserImageService
Security forUserImageService
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.system.BaseCategorizedImageServiceSecurity
categoryType
-
Fields inherited from class org.cyclos.security.system.BaseImageServiceSecurity
imageType
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description UserImageServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanListImagesOf(User owner)booleancanManageImagesOf(User user)ImageVOgetFirst(UserLocatorVO locator)Returns the first image of the given user, or null if the user has no imagesprotected UserImageServiceLocalgetImplementation()-
Methods inherited from class org.cyclos.security.system.BaseOwnedImageServiceSecurity
saveOrder
-
Methods inherited from class org.cyclos.security.system.BaseCategorizedImageServiceSecurity
checkCreateNew, checkListImagesOf, checkManageImagesOf, getListData, hasManageAccess, list, toCategory
-
Methods inherited from class org.cyclos.security.system.BaseImageServiceSecurity
checkManageAccess, find, getImageNature, remove, removeAll, resolveEntityCheck, save, saveName
-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.services.system.BaseCategorizedImageService
getListData, list
-
Methods inherited from interface org.cyclos.services.system.BaseImageService
remove, removeAll, save, saveName
-
Methods inherited from interface org.cyclos.services.system.BaseOwnedImageService
saveOrder
-
-
-
-
Method Detail
-
canManageImagesOf
public boolean canManageImagesOf(User user)
- Specified by:
canManageImagesOfin classBaseCategorizedImageServiceSecurity<UserImage,User,UserLocatorVO>
-
getFirst
public ImageVO getFirst(UserLocatorVO locator) throws FrameworkException
Description copied from interface:UserImageServiceReturns the first image of the given user, or null if the user has no images- Specified by:
getFirstin interfaceUserImageService- Throws:
FrameworkException
-
canListImagesOf
protected boolean canListImagesOf(User owner)
- Specified by:
canListImagesOfin classBaseCategorizedImageServiceSecurity<UserImage,User,UserLocatorVO>
-
getImplementation
protected UserImageServiceLocal getImplementation()
- Specified by:
getImplementationin classBaseOwnedImageServiceSecurity<User,UserImage,UserLocatorVO>
-
-