fr.paris.lutece.plugins.genericattributes.service.entrytype
Class AbstractEntryTypeGeolocation

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

public abstract class AbstractEntryTypeGeolocation
extends EntryTypeService

Abstract entry type for geolocation


Field Summary
static String CONSTANT_ADDRESS
          The Constant CONSTANT_ADDRESS.
static String CONSTANT_ID_ADDRESS
          The Constant CONSTANT_ID_ADDRESS.
static String CONSTANT_PROVIDER
          The Constant CONSTANT_PROVIDER.
static String CONSTANT_X
          The Constant CONSTANT_X.
static String CONSTANT_Y
          The Constant CONSTANT_Y.
static String PARAMETER_MAP_PROVIDER
          The Constant PARAMETER_MAP_PROVIDER.
static String PARAMETER_SUFFIX_ADDRESS
          The Constant PARAMETER_SUFFIX_ADDRESS.
static String PARAMETER_SUFFIX_ID_ADDRESS
          The Constant PARAMETER_SUFFIX_ID_ADDRESS.
static String PARAMETER_SUFFIX_X
          The Constant PARAMETER_SUFFIX_X.
static String PARAMETER_SUFFIX_Y
          The Constant PARAMETER_SUFFIX_Y.
 
Fields inherited from interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeService
FIELD_COMMENT, FIELD_CONFIRM_FIELD_TITLE, FIELD_HEIGHT, FIELD_INSERT_GROUP, FIELD_MAX_SIZE_ENTER, FIELD_TITLE, FIELD_WIDTH, MESSAGE_CONFIRM_FIELD, MESSAGE_MANDATORY_FIELD, MESSAGE_MAXLENGTH, MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED, MESSAGE_NUMERIC_FIELD, MESSAGE_UNIQUE_FIELD, MESSAGE_XSS_FIELD, PARAMETER_COMMENT, PARAMETER_CONFIRM_FIELD, PARAMETER_CONFIRM_FIELD_TITLE, PARAMETER_CSS_CLASS, PARAMETER_ERROR_MESSAGE, PARAMETER_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_MANDATORY, PARAMETER_MAX_SIZE_ENTER, PARAMETER_TITLE, PARAMETER_UNIQUE, PARAMETER_VALUE, PARAMETER_WIDTH, PREFIX_ATTRIBUTE, SUFFIX_CONFIRM_FIELD
 
Constructor Summary
AbstractEntryTypeGeolocation()
           
 
Method Summary
 List<IMapProvider> getMapProviders()
          Returns the available map providers
 fr.paris.lutece.util.ReferenceList getMapProvidersRefList()
          Builds the ReferenceList of all available map providers
 String getRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)
          Get the request data
 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.
 String getResponseValueForExport(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
          Get the response value associate to the entry to export in the file export
 String getResponseValueForRecap(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
          Get the response value associate to the entry to write in the recap
 
Methods inherited from class fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeService
canUploadFiles, getPaginator, getPaginator, getReferenceListRegularExpression, setResponseToStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeService
getHtmlCode, getTemplateCreate, getTemplateModify
 

Field Detail

PARAMETER_MAP_PROVIDER

public static final String PARAMETER_MAP_PROVIDER
The Constant PARAMETER_MAP_PROVIDER.

See Also:
Constant Field Values

PARAMETER_SUFFIX_X

public static final String PARAMETER_SUFFIX_X
The Constant PARAMETER_SUFFIX_X.

See Also:
Constant Field Values

PARAMETER_SUFFIX_Y

public static final String PARAMETER_SUFFIX_Y
The Constant PARAMETER_SUFFIX_Y.

See Also:
Constant Field Values

PARAMETER_SUFFIX_ADDRESS

public static final String PARAMETER_SUFFIX_ADDRESS
The Constant PARAMETER_SUFFIX_ADDRESS.

See Also:
Constant Field Values

PARAMETER_SUFFIX_ID_ADDRESS

public static final String PARAMETER_SUFFIX_ID_ADDRESS
The Constant PARAMETER_SUFFIX_ID_ADDRESS.

See Also:
Constant Field Values

CONSTANT_X

public static final String CONSTANT_X
The Constant CONSTANT_X.

See Also:
Constant Field Values

CONSTANT_Y

public static final String CONSTANT_Y
The Constant CONSTANT_Y.

See Also:
Constant Field Values

CONSTANT_PROVIDER

public static final String CONSTANT_PROVIDER
The Constant CONSTANT_PROVIDER.

See Also:
Constant Field Values

CONSTANT_ADDRESS

public static final String CONSTANT_ADDRESS
The Constant CONSTANT_ADDRESS.

See Also:
Constant Field Values

CONSTANT_ID_ADDRESS

public static final String CONSTANT_ID_ADDRESS
The Constant CONSTANT_ID_ADDRESS.

See Also:
Constant Field Values
Constructor Detail

AbstractEntryTypeGeolocation

public AbstractEntryTypeGeolocation()
Method Detail

getRequestData

public String getRequestData(Entry entry,
                             javax.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

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 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,
                                       javax.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

getMapProviders

public List<IMapProvider> getMapProviders()
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

getResponseValueForExport

public String getResponseValueForExport(Entry entry,
                                        javax.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


Copyright © 2014 Mairie de Paris. All Rights Reserved.