Class SystemCustomImageServiceSecurity
- 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,C,NP>
-
- org.cyclos.security.system.BaseCustomImageServiceSecurity<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO>
-
- org.cyclos.security.contentmanagement.SystemCustomImageServiceSecurity
-
- All Implemented Interfaces:
SystemCustomImageService,Service,BaseCategorizedImageService<SystemImageCategoryVO>,BaseCustomImageService<SystemImageCategoryVO>,BaseImageService<SystemImageCategoryVO>
@Security public class SystemCustomImageServiceSecurity extends BaseCustomImageServiceSecurity<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO> implements SystemCustomImageService
implementation forSystemCustomImageService
-
-
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, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description SystemCustomImageServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanListImagesOf(SystemImageCategory category)protected booleancanManageImagesOf(SystemImageCategory category)AccessibleSystemImageCategoriesDatagetAccessibleImageCategories()Returns accessible view and manage image categories for the logged userFullSystemImagesListDatagetFullListData()Returns full data for listing categories together with their imagesSystemCustomImageServiceLocalgetImplementation()SystemCustomImagesSearchDatagetSearchData()Returns data for searching system custom imagesvoidsaveCategory(@NotNull Long id, SystemImageCategoryVO categoryVO)Saves the category of the given imageLongsaveDetails(@NotNull SystemCustomImageDTO image)Saves details on the given imagePage<SystemCustomImageVO>search(SystemCustomImageQuery query)Searches for custom images-
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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, 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
-
-
-
-
Method Detail
-
getAccessibleImageCategories
public AccessibleSystemImageCategoriesData getAccessibleImageCategories() throws FrameworkException
Description copied from interface:SystemCustomImageServiceReturns accessible view and manage image categories for the logged user- Specified by:
getAccessibleImageCategoriesin interfaceSystemCustomImageService- Throws:
FrameworkException
-
getFullListData
public FullSystemImagesListData getFullListData() throws FrameworkException
Description copied from interface:SystemCustomImageServiceReturns full data for listing categories together with their images- Specified by:
getFullListDatain interfaceSystemCustomImageService- Throws:
FrameworkException
-
getImplementation
public SystemCustomImageServiceLocal getImplementation()
- Specified by:
getImplementationin classBaseCategorizedImageServiceSecurity<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO>
-
getSearchData
public SystemCustomImagesSearchData getSearchData() throws FrameworkException
Description copied from interface:SystemCustomImageServiceReturns data for searching system custom images- Specified by:
getSearchDatain interfaceSystemCustomImageService- Throws:
FrameworkException
-
saveCategory
public void saveCategory(@NotNull @NotNull Long id, SystemImageCategoryVO categoryVO) throws FrameworkExceptionDescription copied from interface:SystemCustomImageServiceSaves the category of the given image- Specified by:
saveCategoryin interfaceSystemCustomImageService- Throws:
FrameworkException
-
saveDetails
public Long saveDetails(@NotNull @NotNull SystemCustomImageDTO image) throws FrameworkException
Description copied from interface:SystemCustomImageServiceSaves details on the given image- Specified by:
saveDetailsin interfaceSystemCustomImageService- Throws:
FrameworkException
-
search
public Page<SystemCustomImageVO> search(SystemCustomImageQuery query) throws FrameworkException
Description copied from interface:SystemCustomImageServiceSearches for custom images- Specified by:
searchin interfaceSystemCustomImageService- Throws:
FrameworkException
-
canListImagesOf
protected boolean canListImagesOf(SystemImageCategory category)
- Specified by:
canListImagesOfin classBaseCategorizedImageServiceSecurity<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO>
-
canManageImagesOf
protected boolean canManageImagesOf(SystemImageCategory category)
- Specified by:
canManageImagesOfin classBaseCategorizedImageServiceSecurity<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO>
-
-