@Security public class SystemCustomImageServiceSecurity extends BaseServiceSecurity implements SystemCustomImageService, ImageServiceSecurity<SystemCustomImage,SystemCustomImageVO,java.lang.Long>
SystemCustomImageService| Constructor and Description |
|---|
SystemCustomImageServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
AccessibleSystemImageCategoriesData |
getAccessibleImageCategories()
Returns accessible view and manage image categories for the logged user
|
SystemCustomImagesSearchData |
getSearchData()
Returns data for searching system custom images
|
BaseImageServiceLocal<SystemCustomImageVO,java.lang.Long> |
getServiceImpl() |
boolean |
hasManageAccess(SystemCustomImage image) |
java.util.List<SystemCustomImageVO> |
list(java.lang.Long categoryId)
Returns a list of images for the given category id (when system custom images) or user id (when user custom
images)
|
SystemCustomImageVO |
load(java.lang.Long id)
Loads a VO by id
|
SystemCustomImageVO |
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 |
SystemCustomImageVO |
save(java.lang.Long categoryId,
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 |
saveCategory(java.lang.Long id,
SystemImageCategoryVO systemImageCategoryVO)
Saves the category of the given image
|
java.lang.Long |
saveDetails(SystemCustomImageDTO dto)
Saves details on the given image
|
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 AccessibleSystemImageCategoriesData getAccessibleImageCategories() throws FrameworkException
SystemCustomImageServicegetAccessibleImageCategories in interface SystemCustomImageServiceFrameworkExceptionpublic SystemCustomImagesSearchData getSearchData() throws FrameworkException
SystemCustomImageServicegetSearchData in interface SystemCustomImageServiceFrameworkExceptionpublic BaseImageServiceLocal<SystemCustomImageVO,java.lang.Long> getServiceImpl()
getServiceImpl in interface ImageServiceSecurity<SystemCustomImage,SystemCustomImageVO,java.lang.Long>public boolean hasManageAccess(SystemCustomImage image)
hasManageAccess in interface ImageServiceSecurity<SystemCustomImage,SystemCustomImageVO,java.lang.Long>public java.util.List<SystemCustomImageVO> list(java.lang.Long categoryId) throws FrameworkException
BaseCustomImageServicelist in interface BaseCustomImageService<SystemCustomImageVO,java.lang.Long>FrameworkExceptionpublic SystemCustomImageVO load(java.lang.Long id) throws EntityNotFoundException
BaseImageServiceload in interface BaseImageService<SystemCustomImageVO,java.lang.Long>EntityNotFoundExceptionpublic SystemCustomImageVO loadByKey(java.lang.String key) throws EntityNotFoundException
BaseImageServiceloadByKey in interface BaseImageService<SystemCustomImageVO,java.lang.Long>EntityNotFoundExceptionpublic void remove(java.lang.Long id)
BaseImageServiceremove in interface BaseImageService<SystemCustomImageVO,java.lang.Long>public SystemCustomImageVO save(java.lang.Long categoryId, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
BaseImageServicesave in interface BaseImageService<SystemCustomImageVO,java.lang.Long>FrameworkExceptionpublic void saveCategory(java.lang.Long id,
SystemImageCategoryVO systemImageCategoryVO)
throws FrameworkException
SystemCustomImageServicesaveCategory in interface SystemCustomImageServiceFrameworkExceptionpublic java.lang.Long saveDetails(SystemCustomImageDTO dto) throws FrameworkException
SystemCustomImageServicesaveDetails in interface SystemCustomImageServiceFrameworkExceptionpublic void saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
BaseImageServicesaveName in interface BaseImageService<SystemCustomImageVO,java.lang.Long>FrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity