|
||||||||||
| 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.DataSet
|
static class |
SearchRequest.ResourceProvider
Encapsulates resource provider filtering. |
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 SearchRequest.DataSet |
DEFAULT_DATASET
|
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 |
getBindingType()
Retrieves the type constraint for search result resources. |
SearchRequest.DataSet |
getDataset()
Identifies the dataset to be searched by this request. |
int |
getMaxResults()
Gets the max number of results. |
SearchRequest.ResourceProvider |
getProvider()
|
org.eaglei.model.EIURI |
getProviderInstitution()
Gets the resource provider institution constraint, if set. |
org.eaglei.model.EIURI |
getProviderType()
Gets the resource provider type constraint, if set. |
java.lang.String |
getProviderTypeLabel()
|
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 |
setDataset(SearchRequest.DataSet dataset)
Sets the dataset to be searched by this request. |
void |
setMaxResults(int maxResults)
Sets the maximum results to return. |
void |
setProvider(SearchRequest.ResourceProvider location)
|
void |
setProviderInstitution(org.eaglei.model.EIURI institution)
Sets the resource provider institution constraint. |
void |
setProviderType(org.eaglei.model.EIURI type)
Sets the resource provider type constraint. |
void |
setProviderTypeLabel(java.lang.String label)
|
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
public static final SearchRequest.DataSet DEFAULT_DATASET
| Constructor Detail |
|---|
public SearchRequest()
public SearchRequest(SearchRequest.Term term)
public SearchRequest(java.lang.String urlParams)
urlParams - | Method Detail |
|---|
public SearchRequest.DataSet getDataset()
public void setDataset(SearchRequest.DataSet dataset)
dataset - DataSet to searchpublic org.eaglei.model.EIURI getProviderInstitution()
public void setProviderInstitution(org.eaglei.model.EIURI institution)
institution - Resource provider Institution URI. May be null.public org.eaglei.model.EIURI getProviderType()
public void setProviderType(org.eaglei.model.EIURI type)
type - Resource provider type URI. May be null.public SearchRequest.ResourceProvider getProvider()
public void setProvider(SearchRequest.ResourceProvider location)
public SearchRequest.Term getTerm()
public void setTerm(SearchRequest.Term term)
term - The search termpublic org.eaglei.model.EIURI getBindingType()
public 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 -
public java.lang.String getProviderTypeLabel()
public void setProviderTypeLabel(java.lang.String label)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||