Class AbstractEntryTypeCamera

    • Constructor Detail

      • AbstractEntryTypeCamera

        public AbstractEntryTypeCamera()
    • Method Detail

      • getResponseData

        public GenericAttributeError getResponseData​(Entry entry,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     List<Response> listResponse,
                                                     Locale locale)
        Generate the list of responses associated with the given entry from the request, and saved it into the Entry object.
        Specified by:
        getResponseData in interface IEntryTypeService
        Overrides:
        getResponseData in class AbstractEntryTypeImage
        Parameters:
        entry - The entry
        request - HttpRequest
        listResponse - the list of response associate to the entry. Newly created response will be inserted in this list.
        locale - the locale
        Returns:
        a GenericAttributeError object if there is an error in the response
      • doCheckforImages

        public GenericAttributeError doCheckforImages​(String imageSource,
                                                      Entry entry,
                                                      Locale locale)
        Do check that an uploaded source is an image
        Parameters:
        imageSource - The file imageSource
        entry - the entry
        locale - The locale
        Returns:
        The error if any, or null if the file is a valid image
      • doCheckSize

        public GenericAttributeError doCheckSize​(BufferedImage image,
                                                 Entry entry,
                                                 Locale locale)
        Do check the size of image
        Parameters:
        image -
        entry -
        locale - The locale
        Returns:
        The error if any, or null if not erroe