public class EventSearchUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addSearchString(Map<String,String> pParameterMap,
String pScheduleFieldName,
DateFormat pGMTDateFormat,
Date pStartDate,
Date pEndDate)
This function add the search string to the parameter map.
|
static List<Date> |
getDateList(Date pStartDate,
Date pEndDate,
DateFormat pServerShortDateFormat,
Calendar pCalendar)
Get the list of the dates of all events.
|
static List<EventOccurrence> |
getEventOccurrenceList(org.json.JSONObject pJSONObject,
Date pStartTime,
DateFormat pServerShortDateFormat,
DateFormat pServerLongDateFormat)
Get all the occurrence of the events.
|
static String |
getJSONSearchResult(Map<String,String> pParameterMap,
com.escenic.framework.search.solr.SolrSearchEngine pSearchEngine,
List<URI> pTagIdList)
This function gets the event search result as JSON object.
|
public static String getJSONSearchResult(Map<String,String> pParameterMap, com.escenic.framework.search.solr.SolrSearchEngine pSearchEngine, List<URI> pTagIdList)
pParameterMap
- a map containing the key value pair for parameters that needed for event search.pSearchEngine
- the name of the search engine.pTagIdList
- the list containing all tag ids.public static void addSearchString(Map<String,String> pParameterMap, String pScheduleFieldName, DateFormat pGMTDateFormat, Date pStartDate, Date pEndDate)
pParameterMap
- search string is added to this parameter map.pScheduleFieldName
- name of the event schedule field.pGMTDateFormat
- date format of the event date.pStartDate
- starting date of the event.pEndDate
- ending date of the event.public static List<EventOccurrence> getEventOccurrenceList(org.json.JSONObject pJSONObject, Date pStartTime, DateFormat pServerShortDateFormat, DateFormat pServerLongDateFormat)
pJSONObject
- the JSONObject containing all the events.pStartTime
- starting of the time range of the events.pServerShortDateFormat
- short date format of the event dates.pServerLongDateFormat
- long date format of the event dates.public static List<Date> getDateList(Date pStartDate, Date pEndDate, DateFormat pServerShortDateFormat, Calendar pCalendar)
pStartDate
- list starts form this date.pEndDate
- list ends to this date.pServerShortDateFormat
- short date format of the event dates.pCalendar
- the calendar object to add the dates.© 1998- 2018 Escenic AS