ModuleController

public class ModuleController

Methods

getBundleIcon

public void getBundleIcon(Long bundleId, String bundleName, String defaultIcon, HttpServletResponse response)

Returns the icon associated with the given bundle. Bundles that do not have their own icons will get a default icon.

Parameters:
  • bundleId – the id of the bundle for which the icon should be retrieved
  • bundleName – the name of the bundle for which the icon should be retrieved
  • defaultIcon – the name of the default icon which be provided if any standard icon couldn’t be searched
  • response – the HttpServletResponse, used for writing the icon in its output
Throws:
  • IOException – if there were failures writing the icon to the output

getConfig

public List<ModuleConfig> getConfig()

getCriticalMessage

public String getCriticalMessage(String moduleName)

getMenu

public ModuleMenu getMenu(HttpServletRequest request)

getRestDocsUrl

public String getRestDocsUrl(String moduleName)

Returns the url for rest documentation spec of the given module

Parameters:
  • moduleName – the name of the module
Returns:

the url at which the REST API spec can be accessed

getUser

public UserInfo getUser(HttpServletRequest request)

setBundleContext

public void setBundleContext(BundleContext bundleContext)

setBundleIconService

public void setBundleIconService(BundleIconService bundleIconService)

setLocaleService

public void setLocaleService(LocaleService localeService)

setMenuBuilder

public void setMenuBuilder(MenuBuilder menuBuilder)

setUiFrameworkService

public void setUiFrameworkService(UIFrameworkService uiFrameworkService)