org.exoplatform.calendar.service.impl
Class CalendarSearchResult

java.lang.Object
  extended by org.exoplatform.commons.api.search.data.SearchResult
      extended by org.exoplatform.calendar.service.impl.CalendarSearchResult

public class CalendarSearchResult
extends org.exoplatform.commons.api.search.data.SearchResult

Dedicated result object query by Event or Task search plugin we extended more information from SearchResult object

Author:
tuanp

Constructor Summary
CalendarSearchResult(String url, String title, String excerpt, String detailValue, String imageUrl, long date, long relevancy)
           
 
Method Summary
static String buildLink(org.exoplatform.commons.api.search.data.SearchContext sc, String calendarId, String eventId)
           
 String getDataType()
           
 long getFromDateTime()
           
 String getImageUrl()
           
 String getTimeZoneName()
           
static String getUrl(org.exoplatform.web.controller.router.Router router, String handler, String siteName, String spaceGroupId, String pageName)
           
 void setDataType(String dataType)
           
 void setFromDateTime(long fromDateTime)
           
 void setTimeZoneName(String name)
           
 
Methods inherited from class org.exoplatform.commons.api.search.data.SearchResult
getDate, getDetail, getExcerpt, getRelevancy, getTitle, getUrl, setDate, setDetail, setExcerpt, setImageUrl, setRelevancy, setTitle, setUrl, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarSearchResult

public CalendarSearchResult(String url,
                            String title,
                            String excerpt,
                            String detailValue,
                            String imageUrl,
                            long date,
                            long relevancy)
Method Detail

getFromDateTime

public long getFromDateTime()
Returns:
from date time value of event type only

setFromDateTime

public void setFromDateTime(long fromDateTime)

getDataType

public String getDataType()
Returns:
data type : event || task

setDataType

public void setDataType(String dataType)

getImageUrl

public String getImageUrl()
Overrides:
getImageUrl in class org.exoplatform.commons.api.search.data.SearchResult
Returns:
value base on task status if data is task canceled || needs-action || in-process

setTimeZoneName

public void setTimeZoneName(String name)

getTimeZoneName

public String getTimeZoneName()

buildLink

public static String buildLink(org.exoplatform.commons.api.search.data.SearchContext sc,
                               String calendarId,
                               String eventId)

getUrl

public static String getUrl(org.exoplatform.web.controller.router.Router router,
                            String handler,
                            String siteName,
                            String spaceGroupId,
                            String pageName)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.