Package de.xima.fc.inbox.bean
Class ChatTemplatesListBean
- java.lang.Object
-
- de.xima.fc.inbox.bean.ChatTemplatesListBean
-
- All Implemented Interfaces:
Serializable
@ViewScoped @Named public class ChatTemplatesListBean extends Object implements Serializable
Controller bean for chat templates listing and selection.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChatTemplatesListBean.GroupedTemplate
Frontend model POJO that maps the data of one template to one of its keywords.
-
Constructor Summary
Constructors Constructor Description ChatTemplatesListBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filterTemplates(Object value, Object filter, Locale locale)
Filter method for the 'global filter' of the templates table (as expected by the 'globalFilterFunction' attribute of the datatablevoid
onRefreshTemplateList()
handler for the 'refresh' action provided by the chat template selection dialogvoid
onRowSelected(org.primefaces.event.SelectEvent<ChatTemplatesListBean.GroupedTemplate> event)
handler for the 'select template' action provided by the chat template selection dialogvoid
onRowUnselected(org.primefaces.event.UnselectEvent<ChatTemplatesListBean.GroupedTemplate> event)
handler for the 'unselect template' action provided by the chat template selection dialog
-
-
-
Method Detail
-
onRefreshTemplateList
public void onRefreshTemplateList()
handler for the 'refresh' action provided by the chat template selection dialog
-
onRowSelected
public void onRowSelected(org.primefaces.event.SelectEvent<ChatTemplatesListBean.GroupedTemplate> event)
handler for the 'select template' action provided by the chat template selection dialog
-
onRowUnselected
public void onRowUnselected(org.primefaces.event.UnselectEvent<ChatTemplatesListBean.GroupedTemplate> event)
handler for the 'unselect template' action provided by the chat template selection dialog
-
filterTemplates
public boolean filterTemplates(Object value, Object filter, Locale locale)
Filter method for the 'global filter' of the templates table (as expected by the 'globalFilterFunction' attribute of the datatable- Parameters:
value
- the value (i.e. grouped template) to check for matchingfilter
- the user's inputlocale
- may be used for locale dependent filtering- Returns:
- true if the provided value matches the user's filter input, false if not
-
-