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.CloneableThis 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 classHelpCenterSearch.BuilderThis 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.StringgetCategoryIds()Returns the category IDs to specifyjava.lang.StringgetInclude()Returns the includes to specify.java.lang.StringgetLabelNames()Returns the label names to specify.java.util.LocalegetLocale()Returns the locale to search injava.lang.IntegergetPage()Returns the page to specifyjava.lang.IntegergetPerPage()The amount of results per page to specifyjava.lang.StringgetQuery()Returns the free-form text queryjava.lang.StringgetSectionIds()Returns the section IDs to specifyHelpCenterSearchwithQuery(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
-
-