Class SearchRedirect
java.lang.Object
com.broadleafcommerce.search.api.domain.SearchRedirect
- All Implemented Interfaces:
Serializable
This represents a redirect which should be performed based on a search query.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()The context ID of this search redirect.getName()A name to describe the purpose of this search redirect.The value that a query must match to activate the redirect.The type of redirect which should be performed.The URI which the client should be redirected to if the search query matches.inthashCode()booleanisRegex()Whether or not the queryMatch should be applied as a Regex.voidThe context ID of this search redirect.voidA name to describe the purpose of this search redirect.voidsetQueryMatch(String queryMatch) The value that a query must match to activate the redirect.voidsetRedirectType(RedirectType redirectType) The type of redirect which should be performed.voidsetRedirectUri(String redirectUri) The URI which the client should be redirected to if the search query matches.voidsetRegex(boolean isRegex) Whether or not the queryMatch should be applied as a Regex.toString()
-
Constructor Details
-
SearchRedirect
public SearchRedirect()
-
-
Method Details
-
getId
The context ID of this search redirect.- Returns:
- the context ID of this search redirect
-
getName
A name to describe the purpose of this search redirect.Non-functional, only used as a description for administration.
- Returns:
- a description of this search redirect
-
getQueryMatch
The value that a query must match to activate the redirect.If isRegex, the match will be applied as a Regex. Otherwise, an exact match is required.
- Returns:
- value for query to match for redirect
-
isRegex
public boolean isRegex()Whether or not the queryMatch should be applied as a Regex.- Returns:
- should match as Regex
-
getRedirectUri
The URI which the client should be redirected to if the search query matches.- Returns:
- the URI to redirect to on a match
-
getRedirectType
The type of redirect which should be performed.- Returns:
- type of redirect to perform
-
setId
The context ID of this search redirect.- Parameters:
id- the context ID of this search redirect
-
setName
A name to describe the purpose of this search redirect.Non-functional, only used as a description for administration.
- Parameters:
name- a description of this search redirect
-
setQueryMatch
The value that a query must match to activate the redirect.If isRegex, the match will be applied as a Regex. Otherwise, an exact match is required.
- Parameters:
queryMatch- value for query to match for redirect
-
setRegex
public void setRegex(boolean isRegex) Whether or not the queryMatch should be applied as a Regex.- Parameters:
isRegex- should match as Regex
-
setRedirectUri
The URI which the client should be redirected to if the search query matches.- Parameters:
redirectUri- the URI to redirect to on a match
-
setRedirectType
The type of redirect which should be performed.- Parameters:
redirectType- type of redirect to perform
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-