Package org.cyclos.impl.system
Class ImageHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.system.ImageHandlerImpl
-
- All Implemented Interfaces:
ImageHandler
@Component public class ImageHandlerImpl extends BaseNetworkedHandlerImpl implements ImageHandler
Implementation
-
-
Field Summary
-
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
-
Fields inherited from interface org.cyclos.impl.system.ImageHandler
KEY_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ImageHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageVObuild(com.querydsl.core.Tuple tuple, QImage img)Builds anImageVOfrom a tuple and base pathImageVObuild(Long id, String name, Boolean convertedToJpeg, String contentType, Integer width, Integer height, Integer length, String key, Date lastModified)Builds anImageVOfrom specific fieldsStringnewKey()Returns a new URL key that is not used by any other imageList<com.querydsl.core.types.Path<?>>projection(QImage img)Returns a list with all projected fields needed for an image under the given alias-
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
-
-
-
-
Method Detail
-
build
public ImageVO build(Long id, String name, Boolean convertedToJpeg, String contentType, Integer width, Integer height, Integer length, String key, Date lastModified)
Description copied from interface:ImageHandlerBuilds anImageVOfrom specific fields- Specified by:
buildin interfaceImageHandler
-
build
public ImageVO build(com.querydsl.core.Tuple tuple, QImage img)
Description copied from interface:ImageHandlerBuilds anImageVOfrom a tuple and base path- Specified by:
buildin interfaceImageHandler
-
newKey
public String newKey()
Description copied from interface:ImageHandlerReturns a new URL key that is not used by any other image- Specified by:
newKeyin interfaceImageHandler
-
projection
public List<com.querydsl.core.types.Path<?>> projection(QImage img)
Description copied from interface:ImageHandlerReturns a list with all projected fields needed for an image under the given alias- Specified by:
projectionin interfaceImageHandler
-
-