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

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

public class EntryTypeSelect
extends Entry

class EntryTypeSelect


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.directory.business.Entry
ATTRIBUTE_ENTRY_ID, ATTRIBUTE_ENTRY_ID_TYPE, 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_RECORD_FIELD, 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_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_SHOWN_IN_ADVANCED_SEARCH, 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
EntryTypeSelect()
           
 
Method Summary
 void addSearchCriteria(java.util.HashMap<java.lang.String,java.lang.Object> mapSearchItem, RecordField recordField)
          add in the search map the criteria
 java.lang.String getEntryData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
          Get the request data
 void getImportRecordFieldData(Record record, java.lang.String strImportValue, boolean bTestDirectoryError, java.util.List<RecordField> listRecordField, java.util.Locale locale)
          save in the list of record field the record field associate to the entry
 fr.paris.lutece.util.html.Paginator getPaginator(int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex)
          The paginator who is use in the template modify of the entry
 fr.paris.lutece.portal.web.util.LocalizedPaginator getPaginator(int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex, java.util.Locale locale)
          The paginator who is use in the template modify of the entry
 void getRecordFieldData(Record record, java.util.List<java.lang.String> lstValue, boolean bTestDirectoryError, boolean bAddNewValue, java.util.List<RecordField> listRecordField, java.util.Locale locale)
          save in the list of record field the record field associate to the entry
 java.lang.String getSQLJoin()
          Provide default join on directory_record_field
 java.lang.String getSQLOrderBy()
          Provides default order by on directory_record_field.record_field_value
 java.util.List<java.lang.Object> getSQLParametersValues()
          Returns the entry id
 java.lang.String getTemplateCreate()
          Get template create url
 java.lang.String getTemplateHtmlFormEntry(boolean isDisplayFront)
          Get the url of the template wich contains the Html code used in entry form
 java.lang.String getTemplateHtmlFormSearchEntry(boolean isDisplayFront)
          Get the url of the template wich contains the Html code used in search form
 java.lang.String getTemplateHtmlRecordFieldValue(boolean isDisplayFront)
          Get the url of the template wich contains the Html code used in display records
 java.lang.String getTemplateModify()
          Get the template modify url
 boolean isSortable()
          Check if the entry is sortable
 
Methods inherited from class fr.paris.lutece.plugins.directory.business.Entry
convertRecordFieldTitleToString, convertRecordFieldValueToString, getChildren, getComment, getDirectory, getDisplayHeight, getDisplayWidth, getEntryAssociate, getEntryType, getFields, getHelpMessage, getHelpMessageSearch, getHtmlFormEntry, getHtmlFormEntry, getHtmlFormSearchEntry, getHtmlFormSearchEntry, getHtmlRecordFieldValue, getIdEntry, getImportRecordFieldData, getLabelValueAllSearch, getMapProvider, getParent, getPosition, getRecordFieldData, getReferenceListRegularExpression, getRequestSQL, getTitle, getXml, isAddValueAllSearch, isAutocompleteEntry, isFieldInLine, isFirstInTheList, isIndexed, isLastInTheList, isMandatory, isMultipleSearchFields, isRoleAssociated, isShownInAdvancedSearch, isShownInExport, isShownInHistory, isShownInResultList, isShownInResultRecord, isWorkgroupAssociated, setAddValueAllSearch, setAutocompleteEntry, setChildren, setComment, setDirectory, setDisplayHeight, setDisplayWidth, setEntryAssociate, setEntryType, setFieldInLine, setFields, setFirstInTheList, setHelpMessage, setHelpMessageSearch, setIdEntry, setIndexed, setLabelValueAllSearch, setLastInTheList, setMandatory, setMapProvider, setMultipleSearchFields, setParent, setPosition, setRequestSQL, setRoleAssociated, setShownInAdvancedSearch, setShownInExport, setShownInHistory, setShownInResultList, setShownInResultRecord, setTitle, setWorkgroupAssociated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryTypeSelect

public EntryTypeSelect()
Method Detail

getTemplateHtmlFormEntry

public java.lang.String getTemplateHtmlFormEntry(boolean isDisplayFront)
Description copied from class: Entry
Get the url of the template wich contains the Html code used in entry form

Overrides:
getTemplateHtmlFormEntry in class Entry
Returns:
the template url

getTemplateHtmlRecordFieldValue

public java.lang.String getTemplateHtmlRecordFieldValue(boolean isDisplayFront)
Description copied from class: Entry
Get the url of the template wich contains the Html code used in display records

Overrides:
getTemplateHtmlRecordFieldValue in class Entry
Returns:
the template url

getTemplateHtmlFormSearchEntry

public java.lang.String getTemplateHtmlFormSearchEntry(boolean isDisplayFront)
Description copied from class: Entry
Get the url of the template wich contains the Html code used in search form

Overrides:
getTemplateHtmlFormSearchEntry in class Entry
Returns:
the template url

getEntryData

public java.lang.String getEntryData(javax.servlet.http.HttpServletRequest request,
                                     java.util.Locale locale)
Description copied from interface: IEntry
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

getTemplateCreate

public java.lang.String getTemplateCreate()
Description copied from interface: IEntry
Get template create url

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

getTemplateModify

public java.lang.String getTemplateModify()
Description copied from interface: IEntry
Get the template modify url

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

getPaginator

public fr.paris.lutece.util.html.Paginator getPaginator(int nItemPerPage,
                                                        java.lang.String strBaseUrl,
                                                        java.lang.String strPageIndexParameterName,
                                                        java.lang.String strPageIndex)
Description copied from interface: IEntry
The paginator who is use in the template modify of the entry

Specified by:
getPaginator in interface IEntry
Overrides:
getPaginator in class Entry
Parameters:
nItemPerPage - Number of items to display per page
strBaseUrl - The base Url for build links on each page link
strPageIndexParameterName - The parameter name for the page index
strPageIndex - The current page index
Returns:
the paginator who is use in the template modify of the entry

getImportRecordFieldData

public void getImportRecordFieldData(Record record,
                                     java.lang.String strImportValue,
                                     boolean bTestDirectoryError,
                                     java.util.List<RecordField> listRecordField,
                                     java.util.Locale locale)
                              throws DirectoryErrorException
Description copied from interface: IEntry
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

getRecordFieldData

public void getRecordFieldData(Record record,
                               java.util.List<java.lang.String> lstValue,
                               boolean bTestDirectoryError,
                               boolean bAddNewValue,
                               java.util.List<RecordField> listRecordField,
                               java.util.Locale locale)
                        throws DirectoryErrorException
Description copied from interface: IEntry
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
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

addSearchCriteria

public void addSearchCriteria(java.util.HashMap<java.lang.String,java.lang.Object> mapSearchItem,
                              RecordField recordField)
Description copied from interface: IEntry
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

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

getPaginator

public fr.paris.lutece.portal.web.util.LocalizedPaginator getPaginator(int nItemPerPage,
                                                                       java.lang.String strBaseUrl,
                                                                       java.lang.String strPageIndexParameterName,
                                                                       java.lang.String strPageIndex,
                                                                       java.util.Locale locale)
Description copied from interface: IEntry
The paginator who is use in the template modify of the entry

Specified by:
getPaginator in interface IEntry
Overrides:
getPaginator in class Entry
Parameters:
nItemPerPage - Number of items to display per page
strBaseUrl - The base Url for build links on each page link
strPageIndexParameterName - The parameter name for the page index
strPageIndex - The current page index
locale - Locale
Returns:
the paginator who is use in the template modify of the entry

getSQLJoin

public java.lang.String getSQLJoin()
Description copied from class: Entry
Provide default join on directory_record_field

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()

getSQLOrderBy

public java.lang.String getSQLOrderBy()
Description copied from class: Entry
Provides default order by on directory_record_field.record_field_value

Specified by:
getSQLOrderBy in interface IEntry
Overrides:
getSQLOrderBy in class Entry
Returns:
order by clause (i.e. " ORDER BY some_column ")
See Also:
IEntry.isSortable()

getSQLParametersValues

public java.util.List<java.lang.Object> getSQLParametersValues()
Description copied from class: Entry
Returns the entry id

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.