Class SearchRedirect
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.SearchRedirect
-
- All Implemented Interfaces:
Serializable
public class SearchRedirect extends Object implements Serializable
This represents a redirect which should be performed based on a search query.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SearchRedirect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getId()
The context ID of this search redirect.String
getName()
A name to describe the purpose of this search redirect.String
getQueryMatch()
The value that a query must match to activate the redirect.RedirectType
getRedirectType()
The type of redirect which should be performed.String
getRedirectUri()
The URI which the client should be redirected to if the search query matches.int
hashCode()
boolean
isRegex()
Whether or not the queryMatch should be applied as a Regex.void
setId(String id)
The context ID of this search redirect.void
setName(String name)
A name to describe the purpose of this search redirect.void
setQueryMatch(String queryMatch)
The value that a query must match to activate the redirect.void
setRedirectType(RedirectType redirectType)
The type of redirect which should be performed.void
setRedirectUri(String redirectUri)
The URI which the client should be redirected to if the search query matches.void
setRegex(boolean isRegex)
Whether or not the queryMatch should be applied as a Regex.String
toString()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
The context ID of this search redirect.- Returns:
- the context ID of this search redirect
-
getName
public String 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
public String 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
public String 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
public RedirectType getRedirectType()
The type of redirect which should be performed.- Returns:
- type of redirect to perform
-
setId
public void setId(String id)
The context ID of this search redirect.- Parameters:
id
- the context ID of this search redirect
-
setName
public void setName(String name)
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
public void setQueryMatch(String queryMatch)
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
public void setRedirectUri(String redirectUri)
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
public void setRedirectType(RedirectType redirectType)
The type of redirect which should be performed.- Parameters:
redirectType
- type of redirect to perform
-
canEqual
protected boolean canEqual(Object other)
-
-