Package org.opennms.netmgt.search.api
Class SearchQuery
- java.lang.Object
-
- org.opennms.netmgt.search.api.SearchQuery
-
public class SearchQuery extends java.lang.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(java.lang.String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContext()
java.lang.String
getInput()
int
getMaxResults()
java.security.Principal
getPrincipal()
boolean
isUserInRole(java.lang.String role)
void
setContext(java.lang.String context)
void
setInput(java.lang.String input)
void
setMaxResults(int maxResults)
void
setPrincipal(java.security.Principal principal)
void
setUserInRoleFunction(java.util.function.Function<java.lang.String,java.lang.Boolean> userInRoleFunction)
-
-
-
Field Detail
-
DEFAULT_MAX_RESULT
public static final int DEFAULT_MAX_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxResults
public int getMaxResults()
-
setMaxResults
public void setMaxResults(int maxResults)
-
getInput
public java.lang.String getInput()
-
setInput
public void setInput(java.lang.String input)
-
getPrincipal
public java.security.Principal getPrincipal()
-
setPrincipal
public void setPrincipal(java.security.Principal principal)
-
setUserInRoleFunction
public void setUserInRoleFunction(java.util.function.Function<java.lang.String,java.lang.Boolean> userInRoleFunction)
-
isUserInRole
public boolean isUserInRole(java.lang.String role)
-
setContext
public void setContext(java.lang.String context)
-
getContext
public java.lang.String getContext()
-
-