Package org.opennms.netmgt.search.api
Class SearchQuery
- java.lang.Object
-
- org.opennms.netmgt.search.api.SearchQuery
-
public class SearchQuery extends Object
The query the user performed plus some additional data to perform the search.- Author:
- mvrueden
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_RESULT
-
Constructor Summary
Constructors Constructor Description SearchQuery(String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContext()
String
getInput()
int
getMaxResults()
Principal
getPrincipal()
boolean
isUserInRole(String role)
void
setContext(String context)
void
setInput(String input)
void
setMaxResults(int maxResults)
void
setPrincipal(Principal principal)
void
setUserInRoleFunction(java.util.function.Function<String,Boolean> userInRoleFunction)
-
-
-
Field Detail
-
DEFAULT_MAX_RESULT
public static final int DEFAULT_MAX_RESULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchQuery
public SearchQuery(String input)
-
-
Method Detail
-
getMaxResults
public int getMaxResults()
-
setMaxResults
public void setMaxResults(int maxResults)
-
getInput
public String getInput()
-
setInput
public void setInput(String input)
-
getPrincipal
public Principal getPrincipal()
-
setPrincipal
public void setPrincipal(Principal principal)
-
setUserInRoleFunction
public void setUserInRoleFunction(java.util.function.Function<String,Boolean> userInRoleFunction)
-
isUserInRole
public boolean isUserInRole(String role)
-
setContext
public void setContext(String context)
-
getContext
public String getContext()
-
-