Class ThemeImageServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.system.BaseImageServiceSecurity<ThemeImage,NewThemeImageParams>
-
- org.cyclos.security.contentmanagement.ThemeImageServiceSecurity
-
- All Implemented Interfaces:
ThemeImageService,Service,BaseImageService<NewThemeImageParams>
@Security public class ThemeImageServiceSecurity extends BaseImageServiceSecurity<ThemeImage,NewThemeImageParams> implements ThemeImageService
Security forThemeImageService
-
-
Field Summary
-
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, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description ThemeImageServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCreateNew(NewThemeImageParams param)ThemeImageVOgetImageVO(Long themeId, ThemeImageType type, String name)Returns the image VO for the image with the given data, or throws anEntityNotFoundExceptionif the given image doesn't existThemeImageServiceLocalgetImplementation()booleanhasManageAccess(ThemeImage image)List<ThemeImageVO>list(Long themeId, Set<ThemeImageType> types)Lists the given theme's images of the given types-
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.BaseImageService
remove, removeAll, save, saveName
-
-
-
-
Method Detail
-
getImageVO
public ThemeImageVO getImageVO(Long themeId, ThemeImageType type, String name) throws FrameworkException
Description copied from interface:ThemeImageServiceReturns the image VO for the image with the given data, or throws anEntityNotFoundExceptionif the given image doesn't exist- Specified by:
getImageVOin interfaceThemeImageService- Throws:
FrameworkException
-
getImplementation
public ThemeImageServiceLocal getImplementation()
- Specified by:
getImplementationin classBaseImageServiceSecurity<ThemeImage,NewThemeImageParams>
-
hasManageAccess
public boolean hasManageAccess(ThemeImage image)
- Specified by:
hasManageAccessin classBaseImageServiceSecurity<ThemeImage,NewThemeImageParams>
-
list
public List<ThemeImageVO> list(Long themeId, Set<ThemeImageType> types) throws FrameworkException
Description copied from interface:ThemeImageServiceLists the given theme's images of the given types- Specified by:
listin interfaceThemeImageService- Throws:
FrameworkException
-
checkCreateNew
protected void checkCreateNew(NewThemeImageParams param)
- Specified by:
checkCreateNewin classBaseImageServiceSecurity<ThemeImage,NewThemeImageParams>
-
-