@Security public class VoucherTypeImageServiceSecurity extends BaseServiceSecurity implements VoucherTypeImageService, ImageServiceSecurity<VoucherTypeImage,VoucherTypeImageVO,java.lang.Long>
VoucherTypeImageService| Constructor and Description |
|---|
VoucherTypeImageServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
BaseImageServiceLocal<VoucherTypeImageVO,java.lang.Long> |
getServiceImpl() |
boolean |
hasManageAccess(VoucherTypeImage image) |
java.util.List<VoucherTypeImageVO> |
list(java.lang.Long ownerId)
Returns a list of images for the given owner id
|
VoucherTypeImageVO |
load(java.lang.Long id)
Loads a VO by id
|
VoucherTypeImageVO |
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 |
VoucherTypeImageVO |
save(java.lang.Long typeId,
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 ownerId,
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 BaseImageServiceLocal<VoucherTypeImageVO,java.lang.Long> getServiceImpl()
getServiceImpl in interface ImageServiceSecurity<VoucherTypeImage,VoucherTypeImageVO,java.lang.Long>public boolean hasManageAccess(VoucherTypeImage image)
hasManageAccess in interface ImageServiceSecurity<VoucherTypeImage,VoucherTypeImageVO,java.lang.Long>public java.util.List<VoucherTypeImageVO> list(java.lang.Long ownerId) throws FrameworkException
BaseOwnedImageServicelist in interface BaseOwnedImageService<VoucherTypeImageVO>FrameworkExceptionpublic VoucherTypeImageVO load(java.lang.Long id) throws FrameworkException
BaseImageServiceload in interface BaseImageService<VoucherTypeImageVO,java.lang.Long>FrameworkExceptionpublic VoucherTypeImageVO loadByKey(java.lang.String key) throws FrameworkException
BaseImageServiceloadByKey in interface BaseImageService<VoucherTypeImageVO,java.lang.Long>FrameworkExceptionpublic void remove(java.lang.Long id)
throws FrameworkException
BaseImageServiceremove in interface BaseImageService<VoucherTypeImageVO,java.lang.Long>FrameworkExceptionpublic VoucherTypeImageVO save(java.lang.Long typeId, java.lang.String name, SerializableInputStream contents, java.lang.String contentType) throws FrameworkException
BaseImageServicesave in interface BaseImageService<VoucherTypeImageVO,java.lang.Long>FrameworkExceptionpublic void saveName(java.lang.Long id,
java.lang.String name)
throws FrameworkException
BaseImageServicesaveName in interface BaseImageService<VoucherTypeImageVO,java.lang.Long>FrameworkExceptionpublic void saveOrder(java.lang.Long ownerId,
java.util.List<java.lang.Long> imageIds)
throws FrameworkException
BaseOwnedImageServicesaveOrder in interface BaseOwnedImageService<VoucherTypeImageVO>FrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity