Liferay 6.0.5

com.liferay.portal.kernel.search.messaging
Class SearchRequest

java.lang.Object
  extended by com.liferay.portal.kernel.search.messaging.SearchRequest
All Implemented Interfaces:
Serializable

public class SearchRequest
extends Object
implements Serializable

See Also:
Serialized Form

Method Summary
static SearchRequest addDocument(long companyId, Document document)
           
static SearchRequest addDocuments(long companyId, Collection<Document> documents)
           
static SearchRequest deleteDocument(long companyId, String uid)
           
static SearchRequest deleteDocuments(long companyId, Collection<String> uids)
           
static SearchRequest deletePortletDocuments(long companyId, String portletId)
           
 long getCompanyId()
           
 Document getDocument()
           
 Collection<Document> getDocuments()
           
 int getEnd()
           
 String getId()
           
 Collection<String> getIds()
           
 Query getQuery()
           
 SearchEngineCommand getSearchEngineCommand()
           
 Sort[] getSorts()
           
 int getStart()
           
static SearchRequest search(long companyId, Query query, Sort[] sorts, int start, int end)
           
 void setCompanyId(long companyId)
           
 void setDocument(Document document)
           
 void setDocuments(Collection<Document> documents)
           
 void setEnd(int end)
           
 void setId(String id)
           
 void setIds(Collection<String> ids)
           
 void setQuery(Query query)
           
 void setSorts(Sort[] sorts)
           
 void setStart(int start)
           
 String toString()
           
static SearchRequest updateDocument(long companyId, Document document)
           
static SearchRequest updateDocuments(long companyId, Collection<Document> documents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addDocument

public static SearchRequest addDocument(long companyId,
                                        Document document)

addDocuments

public static SearchRequest addDocuments(long companyId,
                                         Collection<Document> documents)

deleteDocument

public static SearchRequest deleteDocument(long companyId,
                                           String uid)

deleteDocuments

public static SearchRequest deleteDocuments(long companyId,
                                            Collection<String> uids)

deletePortletDocuments

public static SearchRequest deletePortletDocuments(long companyId,
                                                   String portletId)

search

public static SearchRequest search(long companyId,
                                   Query query,
                                   Sort[] sorts,
                                   int start,
                                   int end)

updateDocument

public static SearchRequest updateDocument(long companyId,
                                           Document document)

updateDocuments

public static SearchRequest updateDocuments(long companyId,
                                            Collection<Document> documents)

getCompanyId

public long getCompanyId()

getDocument

public Document getDocument()

getDocuments

public Collection<Document> getDocuments()

getEnd

public int getEnd()

getId

public String getId()

getIds

public Collection<String> getIds()

getQuery

public Query getQuery()

getSearchEngineCommand

public SearchEngineCommand getSearchEngineCommand()

getSorts

public Sort[] getSorts()

getStart

public int getStart()

setCompanyId

public void setCompanyId(long companyId)

setDocument

public void setDocument(Document document)

setDocuments

public void setDocuments(Collection<Document> documents)

setEnd

public void setEnd(int end)

setId

public void setId(String id)

setIds

public void setIds(Collection<String> ids)

setQuery

public void setQuery(Query query)

setSorts

public void setSorts(Sort[] sorts)

setStart

public void setStart(int start)

toString

public String toString()
Overrides:
toString in class Object

Liferay 6.0.5