/** * Gets a list map using application locale. * * @param localeType * the locale type * @param listName * the list name * @param params * the list parameters * @return a list map * @throws UnifyException * if an error occurs */ protected Map<String, String> getListMap(LocaleType localeType, String listName, Object... params) throws UnifyException { return unifyComponentContext.getListManager().getListMap(getLocale(localeType), listName, params); }
/** * Gets a list based on supplied parameters. * * @param localeType * the locale type * @param listName * the list name * @param params * the list parameters * @return a list object containing listable items * @throws UnifyException * if an error occurs */ protected List<? extends Listable> getList(LocaleType localeType, String listName, Object... params) throws UnifyException { return unifyComponentContext.getListManager().getList(getLocale(localeType), listName, params); }
/** * Gets the description of a list item. A list is obtained from component's list * manager using the supplied listName then supplied itemKey is applied to the * list to obtain the item description. * * @param localeType * the locale type * @param listName * the name of the list * @param itemKey * the list key to the list item * @return the list item description or null if item with key is not found * @throws UnifyException * if list with supplied name is unknown by the list manager */ protected String getListItemDescription(LocaleType localeType, String listName, String itemKey) throws UnifyException { return unifyComponentContext.getListManager().getListKeyDescription(getLocale(localeType), itemKey, listName); }