|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.search.provider.SearchRequest
public class SearchRequest
Represents a search request.
| Nested Class Summary | |
|---|---|
static class |
SearchRequest.Term
Represents the search focus: a search query (w/ advanced syntax) and/or an explicit entity URI. |
static class |
SearchRequest.TypeBinding
Set of resource type-specific bindings for a search. |
| Field Summary | |
|---|---|
static int |
DEFAULT_PAGE_SIZE
|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
SearchRequest()
Creates a new "everything" SearchRequest |
|
SearchRequest(SearchRequest.Term term)
Creates a new SearchRequest for the specified term |
|
SearchRequest(java.lang.String urlParams)
Parses a url param list into a search request. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
equals(java.lang.Object obj,
boolean exceptStartIndex)
Checks equality, optionally ignoring difference in the start index. |
SearchRequest.TypeBinding |
getBinding()
Gets the search resource type binding, may be null. |
org.eaglei.model.EIURI |
getInstitution()
Get the URI for the eagle-i institution instance used to constrain the search term |
int |
getMaxResults()
Gets the max number of results. |
int |
getStartIndex()
Gets the request start index. |
SearchRequest.Term |
getTerm()
Gets the search term, may be null. |
int |
hashCode()
|
void |
setBinding(SearchRequest.TypeBinding binding)
Sets the search resource type binding. |
void |
setInstitution(org.eaglei.model.EIURI institution)
Sets the URI for the eagle-i institution instance used to constrain the search term. |
void |
setMaxResults(int maxResults)
Sets the maximum results to return. |
void |
setStartIndex(int startIndex)
Sets the search request start index. |
void |
setTerm(SearchRequest.Term term)
Sets the search term. |
java.lang.String |
toString()
|
java.lang.String |
toURLParams()
Returns a string representation of this request suitable for use as the param list in a catalyst search URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
public static final int DEFAULT_PAGE_SIZE
| Constructor Detail |
|---|
public SearchRequest()
public SearchRequest(SearchRequest.Term term)
public SearchRequest(java.lang.String urlParams)
urlParams - | Method Detail |
|---|
public org.eaglei.model.EIURI getInstitution()
public void setInstitution(org.eaglei.model.EIURI institution)
institution - Institution URI.public SearchRequest.Term getTerm()
public void setTerm(SearchRequest.Term term)
term - The search termpublic SearchRequest.TypeBinding getBinding()
public void setBinding(SearchRequest.TypeBinding binding)
binding - The search result resource type binding.public int getStartIndex()
public void setStartIndex(int startIndex)
startIndex - The start index.public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults - Maximum number of results to return.public java.lang.String toURLParams()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public boolean equals(java.lang.Object obj,
boolean exceptStartIndex)
obj - exceptStartIndex -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||