fr.paris.lutece.plugins.directory.business
Class EntryTypeGeolocation

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.Entry
      extended by fr.paris.lutece.plugins.directory.business.EntryTypeGeolocation
All Implemented Interfaces:
IEntry

public class EntryTypeGeolocation
extends Entry

EntryTypeGeolocation


Field Summary
static String CONSTANT_ADDRESS
           
static String CONSTANT_PROVIDER
           
static String CONSTANT_SHOWXY
           
static String CONSTANT_X
           
static String CONSTANT_Y
           
static String PARAMETER_MAP_PROVIDER
           
static String PARAMETER_SHOWXY
           
static String PARAMETER_SUFFIX_ADDRESS
           
static String PARAMETER_SUFFIX_MAP_PROVIDER
           
static String PARAMETER_SUFFIX_X
           
static String PARAMETER_SUFFIX_Y
           
 
Fields inherited from class fr.paris.lutece.plugins.directory.business.Entry
ATTRIBUTE_ENTRY_ID, ATTRIBUTE_ENTRY_ID_TYPE, ATTRIBUTE_IS_SORTABLE, ATTRIBUTE_SHOWXY, ATTRIBUTE_TITLE, FIELD_COMMENT, FIELD_ENTRY_ASSOCIATE, FIELD_HEIGHT, FIELD_HEIGHT_DISPLAY, FIELD_HELP_MESSAGE, FIELD_HELP_MESSAGE_SEARCH, FIELD_INSERT_GROUP, FIELD_LABEL_ALL_SEARCH, FIELD_MANDATORY, FIELD_MAX_SIZE_ENTER, FIELD_PRESENTATION, FIELD_REQUEST_SQL, FIELD_TITLE, FIELD_VALUE, FIELD_WIDTH, FIELD_WIDTH_DISPLAY, JSP_DOWNLOAD_FILE, MARK_DEFAULT_VALUES, MARK_ENTRY, MARK_LOCALE, MARK_MYLUTECE_USER_INFOS_LIST, MARK_MYLUTECE_USER_LOGIN, MARK_RECORD_FIELD, MARK_SHOW_ALL_INFO, MESSAGE_BLOBSTORE_CLIENT_SERVICE_UNAVAILABLE, MESSAGE_MANDATORY_FIELD, MESSAGE_NUMERIC_FIELD, PARAMETER_AUTOCOMPLETE, PARAMETER_COMMENT, PARAMETER_DATE_BEGIN, PARAMETER_DATE_END, PARAMETER_DIRECTORY_ASSOCIATE, PARAMETER_DISPLAY_HEIGHT, PARAMETER_DISPLAY_WIDTH, PARAMETER_ENTRY_ASSOCIATE, PARAMETER_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_HELP_MESSAGE_SEARCH, PARAMETER_ID_DIRECTORY_RECORD, PARAMETER_INDEXED, PARAMETER_INDEXED_AS_SUMMARY, PARAMETER_INDEXED_AS_TITLE, PARAMETER_IS_ADD_VALUE_SEARCH_ALL, PARAMETER_LABEL_VALUE_SEARCH_ALL, PARAMETER_MANDATORY, PARAMETER_MAX_SIZE_ENTER, PARAMETER_MULTIPLE_SEARCH_FIELDS, PARAMETER_REQUEST_SQL, PARAMETER_ROLE_ASSOCIATED, PARAMETER_SEARCH_ACTION, PARAMETER_SHOW_ALL_INFO, PARAMETER_SHOWN_IN_ADVANCED_SEARCH, PARAMETER_SHOWN_IN_COMPLETENESS, PARAMETER_SHOWN_IN_EXPORT, PARAMETER_SHOWN_IN_HISTORY, PARAMETER_SHOWN_IN_RESULT_LIST, PARAMETER_SHOWN_IN_RESULT_RECORD, PARAMETER_TITLE, PARAMETER_UPDATE_ENTRY, PARAMETER_VALUE, PARAMETER_WIDTH, PARAMETER_WORKGROUP_ASSOCIATED, PROPERTY_IMPORT_MULTIPLE_VALUE_DELIMITER, TAG_ENTRY, TAG_LIST_ENTRY, TAG_TITLE
 
Constructor Summary
EntryTypeGeolocation()
           
 
Method Summary
 void addSearchCriteria(HashMap<String,Object> mapSearchItem, RecordField recordField)
          add in the search map the criteria
 String convertRecordFieldTitleToString(RecordField recordField, Locale locale, boolean displayFront)
          convert the title contains in the record field to string
 String convertRecordFieldValueToString(RecordField recordField, Locale locale, boolean bDisplayFront, boolean bExportDirectory)
          convert the value contains in the record field to string
 String getEntryData(javax.servlet.http.HttpServletRequest request, Locale locale)
          Get the request data
 void getImportRecordFieldData(Record record, byte[] decodedBytes, String nomFile, boolean b, List<RecordField> listRecordField, Locale locale)
          
 void getImportRecordFieldData(Record record, String strImportValue, boolean bTestDirectoryError, List<RecordField> listRecordField, Locale locale)
          save in the list of record field the record field associate to the entry
 fr.paris.lutece.util.ReferenceList getMapProvidersRefList()
          Builds the ReferenceList of all available map providers
 void getRecordFieldData(Record record, javax.servlet.http.HttpServletRequest request, boolean bTestDirectoryError, boolean addNewValue, List<RecordField> listRecordField, Locale locale)
          save in the list of record field the record field associate to the entry
 void getRecordFieldData(Record record, List<String> lstValue, boolean bTestDirectoryError, boolean addNewValue, List<RecordField> listRecordField, Locale locale)
          save in the list of record field the record field associate to the entry
 String getSQLJoin()
          Join that get only the address.
 List<Object> getSQLParametersValues()
          Returns the entry id and field title parameter
 String getTemplateCreate()
          Get template create url
 String getTemplateHtmlFormEntry(boolean isDisplayFront)
          Get the url of the template wich contains the Html code used in entry form
 String getTemplateHtmlFormSearchEntry(boolean isDisplayFront)
          Get the url of the template wich contains the Html code used in search form
 String getTemplateHtmlRecordFieldValue(boolean isDisplayFront)
          Get the url of the template wich contains the Html code used in display records
 String getTemplateModify()
          Get the template modify url
 void getXml(fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale, StringBuffer strXml)
          add The Xml of the entry in the string buffer
 boolean isSortable()
          Check if the entry is sortable
 String toString()
          
 
Methods inherited from class fr.paris.lutece.plugins.directory.business.Entry
canUploadFiles, getAnonymize, getChildren, getComment, getDirectory, getDisplayHeight, getDisplayWidth, getEntryAssociate, getEntryType, getFields, getHelpMessage, getHelpMessageSearch, getHtmlFormEntry, getHtmlFormEntry, getHtmlFormSearchEntry, getHtmlFormSearchEntry, getHtmlRecordFieldValue, getIdEntry, getLabelValueAllSearch, getMapProvider, getPaginator, getPaginator, getParent, getPosition, getReferenceListRegularExpression, getRequestSQL, getSQLOrderBy, getTitle, isAddValueAllSearch, isAnonymizable, isAutocompleteEntry, isFieldInLine, isFirstInTheList, isIndexed, isIndexedAsSummary, isIndexedAsTitle, isLastInTheList, isMandatory, isMultipleSearchFields, isRoleAssociated, isShownInAdvancedSearch, isShownInCompleteness, isShownInExport, isShownInHistory, isShownInResultList, isShownInResultRecord, isWorkgroupAssociated, setAddValueAllSearch, setAnonymize, setAutocompleteEntry, setChildren, setComment, setDirectory, setDisplayHeight, setDisplayWidth, setEntryAssociate, setEntryType, setFieldInLine, setFields, setFirstInTheList, setHelpMessage, setHelpMessageSearch, setIdEntry, setIndexed, setIndexedAsSummary, setIndexedAsTitle, setLabelValueAllSearch, setLastInTheList, setMandatory, setMapProvider, setMultipleSearchFields, setParent, setPosition, setRequestSQL, setRoleAssociated, setShownInAdvancedSearch, setShownInCompleteness, setShownInExport, setShownInHistory, setShownInResultList, setShownInResultRecord, setTitle, setWorkgroupAssociated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_MAP_PROVIDER

public static final String PARAMETER_MAP_PROVIDER
See Also:
Constant Field Values

PARAMETER_SHOWXY

public static final String PARAMETER_SHOWXY
See Also:
Constant Field Values

PARAMETER_SUFFIX_X

public static final String PARAMETER_SUFFIX_X
See Also:
Constant Field Values

PARAMETER_SUFFIX_Y

public static final String PARAMETER_SUFFIX_Y
See Also:
Constant Field Values

PARAMETER_SUFFIX_MAP_PROVIDER

public static final String PARAMETER_SUFFIX_MAP_PROVIDER
See Also:
Constant Field Values

PARAMETER_SUFFIX_ADDRESS

public static final String PARAMETER_SUFFIX_ADDRESS
See Also:
Constant Field Values

CONSTANT_ADDRESS

public static final String CONSTANT_ADDRESS
See Also:
Constant Field Values

CONSTANT_X

public static final String CONSTANT_X
See Also:
Constant Field Values

CONSTANT_Y

public static final String CONSTANT_Y
See Also:
Constant Field Values

CONSTANT_PROVIDER

public static final String CONSTANT_PROVIDER
See Also:
Constant Field Values

CONSTANT_SHOWXY

public static final String CONSTANT_SHOWXY
See Also:
Constant Field Values
Constructor Detail

EntryTypeGeolocation

public EntryTypeGeolocation()
Method Detail

getTemplateCreate

public String getTemplateCreate()
Get template create url

Specified by:
getTemplateCreate in interface IEntry
Overrides:
getTemplateCreate in class Entry
Returns:
template create url

getTemplateModify

public String getTemplateModify()
Get the template modify url

Specified by:
getTemplateModify in interface IEntry
Overrides:
getTemplateModify in class Entry
Returns:
template modify url

getTemplateHtmlFormEntry

public String getTemplateHtmlFormEntry(boolean isDisplayFront)
Get the url of the template wich contains the Html code used in entry form

Overrides:
getTemplateHtmlFormEntry in class Entry
Parameters:
isDisplayFront - true if display for front office or false if display for back office
Returns:
the template url

getTemplateHtmlFormSearchEntry

public String getTemplateHtmlFormSearchEntry(boolean isDisplayFront)
Get the url of the template wich contains the Html code used in search form

Overrides:
getTemplateHtmlFormSearchEntry in class Entry
Parameters:
isDisplayFront - true if display for front office or false if display for back office
Returns:
the template url

getTemplateHtmlRecordFieldValue

public String getTemplateHtmlRecordFieldValue(boolean isDisplayFront)
Get the url of the template wich contains the Html code used in display records

Overrides:
getTemplateHtmlRecordFieldValue in class Entry
Parameters:
isDisplayFront - true if display for front office or false if display for back office
Returns:
the template url

getEntryData

public String getEntryData(javax.servlet.http.HttpServletRequest request,
                           Locale locale)
Get the request data

Specified by:
getEntryData in interface IEntry
Overrides:
getEntryData in class Entry
Parameters:
request - HttpRequest
locale - the locale
Returns:
null if all data requiered are in the request else the url of jsp error

getMapProvidersRefList

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

Returns:
the ReferenceList

getRecordFieldData

public void getRecordFieldData(Record record,
                               javax.servlet.http.HttpServletRequest request,
                               boolean bTestDirectoryError,
                               boolean addNewValue,
                               List<RecordField> listRecordField,
                               Locale locale)
                        throws DirectoryErrorException
save in the list of record field the record field associate to the entry

Specified by:
getRecordFieldData in interface IEntry
Overrides:
getRecordFieldData in class Entry
Parameters:
record - the record associated to the record field
request - HttpRequest
bTestDirectoryError - true if the value contains in the request must be tested
listRecordField - the list of record field associate to the record
locale - the locale
Throws:
DirectoryErrorException - If an error occurs

addSearchCriteria

public void addSearchCriteria(HashMap<String,Object> mapSearchItem,
                              RecordField recordField)
add in the search map the criteria

Specified by:
addSearchCriteria in interface IEntry
Overrides:
addSearchCriteria in class Entry
Parameters:
mapSearchItem - Search map
recordField - the record field

getRecordFieldData

public void getRecordFieldData(Record record,
                               List<String> lstValue,
                               boolean bTestDirectoryError,
                               boolean addNewValue,
                               List<RecordField> listRecordField,
                               Locale locale)
                        throws DirectoryErrorException
save in the list of record field the record field associate to the entry

Specified by:
getRecordFieldData in interface IEntry
Overrides:
getRecordFieldData in class Entry
Parameters:
record - the record associated to the record field
lstValue - the list which contains the string value of the record field
bTestDirectoryError - true if the value contains in the request must be tested
listRecordField - the list of record field associate to the record
locale - the locale
Throws:
DirectoryErrorException - If an error occurs

getImportRecordFieldData

public void getImportRecordFieldData(Record record,
                                     byte[] decodedBytes,
                                     String nomFile,
                                     boolean b,
                                     List<RecordField> listRecordField,
                                     Locale locale)
                              throws DirectoryErrorException

Specified by:
getImportRecordFieldData in interface IEntry
Overrides:
getImportRecordFieldData in class Entry
Parameters:
record - The record
Throws:
DirectoryErrorException

getImportRecordFieldData

public void getImportRecordFieldData(Record record,
                                     String strImportValue,
                                     boolean bTestDirectoryError,
                                     List<RecordField> listRecordField,
                                     Locale locale)
                              throws DirectoryErrorException
save in the list of record field the record field associate to the entry

Specified by:
getImportRecordFieldData in interface IEntry
Overrides:
getImportRecordFieldData in class Entry
Parameters:
record - the record associated to the record field
strImportValue - the import string which contains the string value of the record field
bTestDirectoryError - true if the value contains in the request must be tested
listRecordField - the list of record field associate to the record
locale - the locale
Throws:
DirectoryErrorException - If an error occurs

toString

public String toString()

Overrides:
toString in class Object

convertRecordFieldTitleToString

public String convertRecordFieldTitleToString(RecordField recordField,
                                              Locale locale,
                                              boolean displayFront)
convert the title contains in the record field to string

Specified by:
convertRecordFieldTitleToString in interface IEntry
Overrides:
convertRecordFieldTitleToString in class Entry
Parameters:
recordField - the recordField
locale - the locale
displayFront - true if display front or false if display back
Returns:
string

convertRecordFieldValueToString

public String convertRecordFieldValueToString(RecordField recordField,
                                              Locale locale,
                                              boolean bDisplayFront,
                                              boolean bExportDirectory)
convert the value contains in the record field to string

Specified by:
convertRecordFieldValueToString in interface IEntry
Overrides:
convertRecordFieldValueToString in class Entry
Parameters:
recordField - the recordField
locale - the locale
bDisplayFront - true if display front or false if display back
bExportDirectory - true if display export
Returns:
string

isSortable

public boolean isSortable()
Check if the entry is sortable

Specified by:
isSortable in interface IEntry
Overrides:
isSortable in class Entry
Returns:
true if it is sortable, false otherwise

getSQLJoin

public String getSQLJoin()
Join that get only the address.

Specified by:
getSQLJoin in interface IEntry
Overrides:
getSQLJoin in class Entry
Returns:
join clause (i.e " JOIN some_table ON col1=col2 ")
See Also:
IEntry.isSortable()

getSQLParametersValues

public List<Object> getSQLParametersValues()
Returns the entry id and field title parameter

Specified by:
getSQLParametersValues in interface IEntry
Overrides:
getSQLParametersValues in class Entry
Returns:
an empty list if no parameter needed, parameters values otherwise.

getXml

public void getXml(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                   Locale locale,
                   StringBuffer strXml)
add The Xml of the entry in the string buffer

Specified by:
getXml in interface IEntry
Overrides:
getXml in class Entry
Parameters:
plugin - plugin
locale - loclae
strXml - the string buffer


Copyright © 2013 Mairie de Paris. All Rights Reserved.