Class SystemCustomImageServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.system.BaseImageServiceImpl<I,A,NP>
-
- org.cyclos.impl.system.BaseCategorizedImageServiceImpl<I,C,A,NP>
-
- org.cyclos.impl.system.BaseCustomImageServiceImpl<SystemCustomImage,SystemImageCategory,QSystemCustomImage,SystemImageCategoryVO>
-
- org.cyclos.impl.contentmanagement.SystemCustomImageServiceImpl
-
- All Implemented Interfaces:
SystemCustomImageServiceLocal,BaseCategorizedImageServiceLocal<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO>,BaseCustomImageServiceLocal<SystemCustomImage,SystemImageCategory,SystemImageCategoryVO>,BaseImageServiceLocal<SystemCustomImage,SystemImageCategoryVO>,SystemCustomImageService,Service,BaseCategorizedImageService<SystemImageCategoryVO>,BaseCustomImageService<SystemImageCategoryVO>,BaseImageService<SystemImageCategoryVO>
@Service public class SystemCustomImageServiceImpl extends BaseCustomImageServiceImpl<SystemCustomImage,SystemImageCategory,QSystemCustomImage,SystemImageCategoryVO> implements SystemCustomImageServiceLocal
implementation forSystemCustomImageService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.system.BaseCategorizedImageServiceImpl
beanHandler, categoryPath, categoryType
-
Fields inherited from class org.cyclos.impl.system.BaseImageServiceImpl
$, imageHandler, imageType, nature, storedFileHandler
-
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 SystemCustomImageServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessibleSystemImageCategoriesDatagetAccessibleImageCategories()Returns accessible view and manage image categories for the logged userFullSystemImagesListDatagetFullListData()Returns full data for listing categories together with their imagesSystemCustomImagesSearchDatagetSearchData()Returns data for searching system custom imagesprotected booleanisCategoryActive(SystemImageCategory category)protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected intresolveMaxImages(SystemImageCategory category)Must be implemented in order to resolve the maximum images upload limit.voidsaveCategory(Long id, SystemImageCategoryVO systemImageCategoryVO)Saves the category of the given imageLongsaveDetails(SystemCustomImageDTO dto)Saves details on the given imagePage<SystemCustomImageVO>search(SystemCustomImageQuery query)Searches for custom images-
Methods inherited from class org.cyclos.impl.system.BaseCustomImageServiceImpl
customizeListByCategoryQuery
-
Methods inherited from class org.cyclos.impl.system.BaseCategorizedImageServiceImpl
count, findCategory, getListData, isRequired, list, listByCategory, newImage, remove, removeAll, save, toCategory, validateMaxImages, validateMaxImages
-
Methods inherited from class org.cyclos.impl.system.BaseImageServiceImpl
find, findByKey, getImageNature, isKeepOriginalContent, onAfterRemove, onAfterSave, onBeforeRemove, readContent, readContentByKey, remove, removeAll, saveName, setDataAndPersist, setImageName
-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
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, 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.impl.system.BaseCategorizedImageServiceLocal
listByCategory, removeAll
-
Methods inherited from interface org.cyclos.services.system.BaseImageService
remove, removeAll, save, saveName
-
Methods inherited from interface org.cyclos.impl.system.BaseImageServiceLocal
find, getImageNature, readContent, readContentByKey
-
-
-
-
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
-
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(Long id, SystemImageCategoryVO systemImageCategoryVO) throws FrameworkException
Description copied from interface:SystemCustomImageServiceSaves the category of the given image- Specified by:
saveCategoryin interfaceSystemCustomImageService- Throws:
FrameworkException
-
saveDetails
public Long saveDetails(SystemCustomImageDTO dto) 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
-
isCategoryActive
protected boolean isCategoryActive(SystemImageCategory category)
- Specified by:
isCategoryActivein classBaseCategorizedImageServiceImpl<SystemCustomImage,SystemImageCategory,QSystemCustomImage,SystemImageCategoryVO>
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
resolveMaxImages
protected int resolveMaxImages(SystemImageCategory category)
Description copied from class:BaseCategorizedImageServiceImplMust be implemented in order to resolve the maximum images upload limit. Returns a negative number for unlimited upload.- Specified by:
resolveMaxImagesin classBaseCategorizedImageServiceImpl<SystemCustomImage,SystemImageCategory,QSystemCustomImage,SystemImageCategoryVO>
-
-