public class HomeHelper extends HelperBase
| Modifier and Type | Field and Description |
|---|---|
(package private) static String | ADVANCED_SERVICESadvanced services list |
(package private) static String | DEFAULT_FAVORITESdefault favorites list |
(package private) static String | DEFAULT_SERVICESDefault services list, comma-separated |
(package private) static String | NEWINSTALL_SERVICESDefault services list for new installs |
(package private) static String | PROP_CONFIGconfig opts property |
(package private) static String | PROP_FAVORITESfavorites list property |
(package private) static String | PROP_MONITORINGmonitoring property |
(package private) static String | PROP_SEARCHsearch property |
(package private) static String | PROP_SERVICESservice list property |
_context, _log, _out, CHECKED, PROP_ADVANCED, SELECTED| Constructor and Description |
|---|
HomeHelper()default constructor |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Collection<App> | buildApps(RouterContext ctx,
String config)Context. |
(package private) static Collection<App> | buildSearchApps(String config)Config string. |
String | getConfigFavorites()Config favorites HTML. |
String | getConfigSearch()Config search HTML. |
String | getConfigServices()Config services HTML. |
String | getFavorites()Favorites HTML. |
String | getProxyStatus()Proxy status HTML. |
String | getServices()Services HTML. |
boolean | isAdvanced()Whether advanced. |
(package private) static void | saveApps(RouterContext ctx,
String prop,
Collection<App> apps,
boolean full)Context. |
boolean | shouldShowBandwidthConfig()True if bandwidth is not yet configured. |
boolean | shouldShowSearch()True if search should be shown. |
boolean | shouldShowWelcome()True if no language has been configured. |
_t, _t, _t, _x, getChecked, ngettext, setContextId, storeWriterstatic final String ADVANCED_SERVICES
static final String DEFAULT_FAVORITES
static final String DEFAULT_SERVICES
static final String NEWINSTALL_SERVICES
static final String PROP_CONFIG
static final String PROP_FAVORITES
static final String PROP_MONITORING
static final String PROP_SEARCH
static final String PROP_SERVICES
static Collection<App> buildApps(RouterContext ctx, String config)
ctx - contextconfig - the configurationstatic Collection<App> buildSearchApps(String config)
config - the config stringpublic String getConfigFavorites()
public String getConfigSearch()
public String getConfigServices()
public String getFavorites()
public String getProxyStatus()
public String getServices()
public boolean isAdvanced()
isAdvanced in class HelperBasestatic void saveApps(RouterContext ctx, String prop, Collection<App> apps, boolean full)
ctx - contextprop - the property nameapps - the apps to savefull - whether to save full datapublic boolean shouldShowBandwidthConfig()
public boolean shouldShowSearch()
public boolean shouldShowWelcome()