Class AbstractEntryTypeGeolocation

java.lang.Object
fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeService
fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeGeolocation
All Implemented Interfaces:
IEntryTypeService

public abstract class AbstractEntryTypeGeolocation extends EntryTypeService
Author:
bass
  • Field Details

    • PARAMETER_MAP_PROVIDER

      public static final String PARAMETER_MAP_PROVIDER
      The Constant PARAMETER_MAP_PROVIDER.
      See Also:
    • PARAMETER_EDIT_MODE

      public static final String PARAMETER_EDIT_MODE
      The Constant PARAMETER_EDIT_MODE.
      See Also:
    • PARAMETER_VIEW_NUMBER

      public static final String PARAMETER_VIEW_NUMBER
      The Constant PARAMETER_VIEW_NUMBER.
      See Also:
    • PARAMETER_SUFFIX_ID_ADDRESS

      public static final String PARAMETER_SUFFIX_ID_ADDRESS
      The Constant PARAMETER_SUFFIX_ID_ADDRESS.
      See Also:
    • PARAMETER_SUFFIX_ADDRESS

      public static final String PARAMETER_SUFFIX_ADDRESS
      The Constant PARAMETER_SUFFIX_ADDRESS.
      See Also:
    • PARAMETER_SUFFIX_ADDITIONAL_ADDRESS

      public static final String PARAMETER_SUFFIX_ADDITIONAL_ADDRESS
      The Constant PARAMETER_SUFFIX_ADDITIONAL_ADDRESS.
      See Also:
    • PARAMETER_SUFFIX_X

      public static final String PARAMETER_SUFFIX_X
      The Constant PARAMETER_SUFFIX_X_ADDRESS.
      See Also:
    • PARAMETER_SUFFIX_Y

      public static final String PARAMETER_SUFFIX_Y
      The Constant PARAMETER_SUFFIX_Y_ADDRESS.
      See Also:
    • PARAMETER_SUFFIX_GEOMETRY

      public static final String PARAMETER_SUFFIX_GEOMETRY
      The Constant PARAMETER_SUFFIX_GEOMETRY.
      See Also:
    • PARAMETER_PREFIX_ITERATION

      public static final String PARAMETER_PREFIX_ITERATION
      The Constant PARAMETER_PREFIX_ITERATION.
      See Also:
    • PARAMETER_NUMBER_ITERATION

      public static final String PARAMETER_NUMBER_ITERATION
      The Constant PARAMETER_NUMBER_ITERATION.
      See Also:
    • ATTRIBUTE_LAST_ITERATION_GEOLOCATION

      public static final String ATTRIBUTE_LAST_ITERATION_GEOLOCATION
      The Constant ATTRIBUTE_LAST_ITERATION_GEOLOCATION.
      See Also:
    • PARAMETER_EDIT_MODE_LIST

      public static final String PARAMETER_EDIT_MODE_LIST
      See Also:
    • PROPERTY_ENTRY_TYPE_GEOLOCALISATION_EXPORT_WITH_FIELD_NAME

      public static final String PROPERTY_ENTRY_TYPE_GEOLOCALISATION_EXPORT_WITH_FIELD_NAME
      See Also:
  • Constructor Details

    • AbstractEntryTypeGeolocation

      public AbstractEntryTypeGeolocation()
  • Method Details

    • getRequestData

      public String getRequestData(Entry entry, jakarta.servlet.http.HttpServletRequest request, Locale locale)
      Get the request data
      Specified by:
      getRequestData in interface IEntryTypeService
      Overrides:
      getRequestData in class EntryTypeService
      Parameters:
      entry - The entry
      request - HttpRequest
      locale - the locale
      Returns:
      null if all data required are in the request else the url of jsp error
    • getRequestData

      public String getRequestData(Entry entry, jakarta.servlet.http.HttpServletRequest request, Locale locale, String errorReturnUrl)
      Get the request data
      Specified by:
      getRequestData in interface IEntryTypeService
      Overrides:
      getRequestData in class EntryTypeService
      Parameters:
      entry - The entry
      request - HttpRequest
      locale - the locale
      errorReturnUrl - url to go to after displaying a message when an error occurs
      Returns:
      null if all data required are in the request else the url of jsp error
    • getResponseData

      public GenericAttributeError getResponseData(Entry entry, jakarta.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 EntryTypeService
      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
    • getResponseValueForRecap

      public String getResponseValueForRecap(Entry entry, jakarta.servlet.http.HttpServletRequest request, Response response, Locale locale)
      Get the response value associate to the entry to write in the recap
      Specified by:
      getResponseValueForRecap in interface IEntryTypeService
      Overrides:
      getResponseValueForRecap in class EntryTypeService
      Parameters:
      entry - The entry
      request - the request
      response - the response associate to the entry
      locale - the locale
      Returns:
      the response value associate to the entry to write in the recap
    • getMaproviders

      public List<IMapProvider> getMaproviders()
      Returns the available map providers
      Returns:
      all known map providers
    • getMapProvidersRefList

      public fr.paris.lutece.util.ReferenceList getMapProvidersRefList()
      Builds the ReferenceList of all available map providers
      Returns:
      the ReferenceList
    • getEditModeRefList

      public fr.paris.lutece.util.ReferenceList getEditModeRefList()
      Builds the ReferenceList of all available edit mode
      Returns:
      the ReferenceList
    • getResponseValueForExport

      public String getResponseValueForExport(Entry entry, jakarta.servlet.http.HttpServletRequest request, Response response, Locale locale)
      Get the response value associate to the entry to export in the file export
      Specified by:
      getResponseValueForExport in interface IEntryTypeService
      Overrides:
      getResponseValueForExport in class EntryTypeService
      Parameters:
      entry - The entry
      request - the request
      response - the response associate to the entry
      locale - the locale
      Returns:
      the response value associate to the entry to export in the file export