Package zendesk.support
Class HelpCenterSearch
- java.lang.Object
-
- zendesk.support.HelpCenterSearch
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class HelpCenterSearch extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
This class encapsulates the parameters for searching Help Center.This class is what is used when searching Help Center with a
HelpCenterProvider
, specifically with theHelpCenterProvider#searchArticles(HelpCenterSearch, ZendeskCallback)
method- See Also:
- Searching Help Center, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
HelpCenterSearch.Builder
This is a builder class which is used to generate aHelpCenterSearch
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getCategoryIds()
Returns the category IDs to specifyjava.lang.String
getInclude()
Returns the includes to specify.java.lang.String
getLabelNames()
Returns the label names to specify.java.util.Locale
getLocale()
Returns the locale to search injava.lang.Integer
getPage()
Returns the page to specifyjava.lang.Integer
getPerPage()
The amount of results per page to specifyjava.lang.String
getQuery()
Returns the free-form text queryjava.lang.String
getSectionIds()
Returns the section IDs to specifyHelpCenterSearch
withQuery(java.lang.String query)
Clones the current search and sets the query on it
-
-
-
Method Detail
-
getQuery
public java.lang.String getQuery()
Returns the free-form text query- Returns:
- the query
-
getLocale
public java.util.Locale getLocale()
Returns the locale to search in- Returns:
- the locale to search in
-
getInclude
public java.lang.String getInclude()
Returns the includes to specify. (a.k.a side-loads)- Returns:
- the includes to specify
-
getLabelNames
public java.lang.String getLabelNames()
Returns the label names to specify.- Returns:
- the label names to specify
-
getCategoryIds
public java.lang.String getCategoryIds()
Returns the category IDs to specify- Returns:
- the category IDs to specify
-
getSectionIds
public java.lang.String getSectionIds()
Returns the section IDs to specify- Returns:
- the section IDs to specify
-
getPage
public java.lang.Integer getPage()
Returns the page to specify- Returns:
- the page to specify
-
getPerPage
public java.lang.Integer getPerPage()
The amount of results per page to specify- Returns:
- the amount of results per page to specify
-
withQuery
public HelpCenterSearch withQuery(java.lang.String query)
Clones the current search and sets the query on it- Parameters:
query
- The query to set- Returns:
- a clone of the current search with the query set
-
-