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 Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_LAST_ITERATION_GEOLOCATIONThe Constant ATTRIBUTE_LAST_ITERATION_GEOLOCATION.static StringPARAMETER_EDIT_MODEThe Constant PARAMETER_EDIT_MODE.static StringPARAMETER_EDIT_MODE_LISTstatic StringPARAMETER_MAP_PROVIDERThe Constant PARAMETER_MAP_PROVIDER.static StringPARAMETER_NUMBER_ITERATIONThe Constant PARAMETER_NUMBER_ITERATION.static StringPARAMETER_PREFIX_ITERATIONThe Constant PARAMETER_PREFIX_ITERATION.static StringPARAMETER_SUFFIX_ADDITIONAL_ADDRESSThe Constant PARAMETER_SUFFIX_ADDITIONAL_ADDRESS.static StringPARAMETER_SUFFIX_ADDRESSThe Constant PARAMETER_SUFFIX_ADDRESS.static StringPARAMETER_SUFFIX_GEOMETRYThe Constant PARAMETER_SUFFIX_GEOMETRY.static StringPARAMETER_SUFFIX_ID_ADDRESSThe Constant PARAMETER_SUFFIX_ID_ADDRESS.static StringPARAMETER_SUFFIX_XThe Constant PARAMETER_SUFFIX_X_ADDRESS.static StringPARAMETER_SUFFIX_YThe Constant PARAMETER_SUFFIX_Y_ADDRESS.static StringPARAMETER_VIEW_NUMBERThe Constant PARAMETER_VIEW_NUMBER.static StringPROPERTY_ENTRY_TYPE_GEOLOCALISATION_EXPORT_WITH_FIELD_NAME-
Fields inherited from interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeService
ATTRIBUTE_RESPONSE_ITERATION_NUMBER, ERROR_FIELD_FILE_MAX_SIZE, ERROR_FIELD_FILE_TYPE, ERROR_FIELD_HEIGHT, ERROR_FIELD_MAX_FILES, ERROR_FIELD_REF_LIST, ERROR_FIELD_TITLE, ERROR_FIELD_WIDTH, FIELD_ADDITIONAL_ADDRESS, FIELD_ADDRESS, FIELD_ANONYMIZABLE, FIELD_ANSWER_CHOICE, FIELD_ARRAY_CELL, FIELD_ARRAY_COLUMN, FIELD_ARRAY_ROW, FIELD_ATTRIBUTE_NAME, FIELD_COMMENT, FIELD_CONFIRM, FIELD_CONFIRM_FIELD_TITLE, FIELD_DATE_VALUE, FIELD_DISABLED, FIELD_DISPLAY_BO, FIELD_DOWNLOADABLE_FILE, FIELD_EDIT_MODE, FIELD_EXPORTABLE, FIELD_EXPORTABLE_PDF, FIELD_FILE_BINARY, FIELD_FILE_MAX_SIZE, FIELD_FILE_TYPE, FIELD_GEOJSON, FIELD_GEOMETRY, FIELD_HEIGHT, FIELD_ID_ADDRESS, FIELD_ID_LAYER, FIELD_ILLUSTRATION_IMAGE, FIELD_IMAGE_TYPE, FIELD_INSERT_GROUP, FIELD_IS_UPDATABLE, FIELD_MAX, FIELD_MAX_FILES, FIELD_MAX_SIZE, FIELD_MAX_SIZE_ENTER, FIELD_MIN, FIELD_MYLUTECE_ATTRIBUTE_NAME_CODE, FIELD_NUMBER_COLUMNS, FIELD_NUMBER_ROWS, FIELD_PLACEHOLDER, FIELD_PREFIX, FIELD_PROVIDER, FIELD_PUBLISHED, FIELD_RICHTEXT, FIELD_SORTABLE_LIST_TYPE, FIELD_SUFFIX, FIELD_TEXT_CONF, FIELD_USE_REF_LIST, FIELD_VIEW_NUMBER, FIELD_WIDTH, FIELD_X, FIELD_Y, MESSAGE_CONFIRM_FIELD, MESSAGE_ERROR_IMPOSSIBLE_SLOT, MESSAGE_ERROR_SLOT, MESSAGE_INVALID_SQL_QUERY, MESSAGE_MANDATORY_FIELD, MESSAGE_MAXLENGTH, MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED, MESSAGE_NUMERIC_FIELD, MESSAGE_UNIQUE_FIELD, MESSAGE_XSS_FIELD, PARAMETER_ANONYMIZABLE, PARAMETER_ANONYMIZE_PATTERN, PARAMETER_COMMENT, PARAMETER_CONFIRM_FIELD, PARAMETER_CONFIRM_FIELD_TITLE, PARAMETER_CSS_CLASS, PARAMETER_DISABLED, PARAMETER_DISPLAY_BO, PARAMETER_ENTRY_CODE, PARAMETER_ERROR_MESSAGE, PARAMETER_EXPORT_BINARY, PARAMETER_EXPORTABLE, PARAMETER_EXPORTABLE_PDF, PARAMETER_FIELD_IN_LINE, PARAMETER_FILE, PARAMETER_FILE_MAX_SIZE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_ILLUSTRATION_IMAGE, PARAMETER_IMAGE_TYPE, PARAMETER_INDEXED, PARAMETER_MANDATORY, PARAMETER_MAX, PARAMETER_MAX_FILES, PARAMETER_MAX_IMAGE_SIZE, PARAMETER_MAX_SIZE_ENTER, PARAMETER_MIN, PARAMETER_NUMBER_COLUMNS, PARAMETER_NUMBER_ROWS, PARAMETER_ONLY_DISPLAY_IN_BACK, PARAMETER_PLACEHOLDER, PARAMETER_PUBLISHED, PARAMETER_REF_LIST_SELECT, PARAMETER_SORTABLE_LIST_TYPE, PARAMETER_TITLE, PARAMETER_TODAY_DATE, PARAMETER_UNIQUE, PARAMETER_USE_REF_LIST, PARAMETER_VALUE, PARAMETER_WIDTH, PREFIX_ATTRIBUTE, PREFIX_ITERATION_ATTRIBUTE, SUFFIX_CONFIRM_FIELD
-
-
Constructor Summary
Constructors Constructor Description AbstractEntryTypeGeolocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.util.ReferenceListgetEditModeRefList()Builds theReferenceListof all available edit modefr.paris.lutece.util.ReferenceListgetMapProvidersRefList()Builds theReferenceListof all available map providersList<IMapProvider>getMaproviders()Returns the available map providersStringgetRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)Get the request dataGenericAttributeErrorgetResponseData(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.StringgetResponseValueForExport(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)Get the response value associate to the entry to export in the file exportStringgetResponseValueForRecap(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, getAnonymizationHelpMessage, getReferenceListRegularExpression, getResponseIterationValue, getTemplateEntryReadOnly, getTemplateEntryReadOnly, getValidWildcards, setAnonymizationTypes, setResponseToStringValue
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeService
getTemplateCreate, getTemplateHtmlForm, getTemplateModify
-
-
-
-
Field Detail
-
PARAMETER_MAP_PROVIDER
public static final String PARAMETER_MAP_PROVIDER
The Constant PARAMETER_MAP_PROVIDER.- See Also:
- Constant Field Values
-
PARAMETER_EDIT_MODE
public static final String PARAMETER_EDIT_MODE
The Constant PARAMETER_EDIT_MODE.- See Also:
- Constant Field Values
-
PARAMETER_VIEW_NUMBER
public static final String PARAMETER_VIEW_NUMBER
The Constant PARAMETER_VIEW_NUMBER.- 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
-
PARAMETER_SUFFIX_ADDRESS
public static final String PARAMETER_SUFFIX_ADDRESS
The Constant PARAMETER_SUFFIX_ADDRESS.- See Also:
- Constant Field Values
-
PARAMETER_SUFFIX_ADDITIONAL_ADDRESS
public static final String PARAMETER_SUFFIX_ADDITIONAL_ADDRESS
The Constant PARAMETER_SUFFIX_ADDITIONAL_ADDRESS.- See Also:
- Constant Field Values
-
PARAMETER_SUFFIX_X
public static final String PARAMETER_SUFFIX_X
The Constant PARAMETER_SUFFIX_X_ADDRESS.- See Also:
- Constant Field Values
-
PARAMETER_SUFFIX_Y
public static final String PARAMETER_SUFFIX_Y
The Constant PARAMETER_SUFFIX_Y_ADDRESS.- See Also:
- Constant Field Values
-
PARAMETER_SUFFIX_GEOMETRY
public static final String PARAMETER_SUFFIX_GEOMETRY
The Constant PARAMETER_SUFFIX_GEOMETRY.- See Also:
- Constant Field Values
-
PARAMETER_PREFIX_ITERATION
public static final String PARAMETER_PREFIX_ITERATION
The Constant PARAMETER_PREFIX_ITERATION.- See Also:
- Constant Field Values
-
PARAMETER_NUMBER_ITERATION
public static final String PARAMETER_NUMBER_ITERATION
The Constant PARAMETER_NUMBER_ITERATION.- See Also:
- Constant Field Values
-
ATTRIBUTE_LAST_ITERATION_GEOLOCATION
public static final String ATTRIBUTE_LAST_ITERATION_GEOLOCATION
The Constant ATTRIBUTE_LAST_ITERATION_GEOLOCATION.- See Also:
- Constant Field Values
-
PARAMETER_EDIT_MODE_LIST
public static final String PARAMETER_EDIT_MODE_LIST
- See Also:
- Constant Field Values
-
PROPERTY_ENTRY_TYPE_GEOLOCALISATION_EXPORT_WITH_FIELD_NAME
public static final String PROPERTY_ENTRY_TYPE_GEOLOCALISATION_EXPORT_WITH_FIELD_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequestData
public String getRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)
Get the request data- Specified by:
getRequestDatain interfaceIEntryTypeService- Overrides:
getRequestDatain classEntryTypeService- Parameters:
entry- The entryrequest- HttpRequestlocale- 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:
getResponseDatain interfaceIEntryTypeService- Overrides:
getResponseDatain classEntryTypeService- Parameters:
entry- The entryrequest- HttpRequestlistResponse- 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:
getResponseValueForRecapin interfaceIEntryTypeService- Overrides:
getResponseValueForRecapin classEntryTypeService- Parameters:
entry- The entryrequest- the requestresponse- the response associate to the entrylocale- 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 theReferenceListof all available map providers- Returns:
- the
ReferenceList
-
getEditModeRefList
public fr.paris.lutece.util.ReferenceList getEditModeRefList()
Builds theReferenceListof all available edit mode- 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:
getResponseValueForExportin interfaceIEntryTypeService- Overrides:
getResponseValueForExportin classEntryTypeService- Parameters:
entry- The entryrequest- the requestresponse- the response associate to the entrylocale- the locale- Returns:
- the response value associate to the entry to export in the file export
-
-