Combines an app's organisation-level settings with an optional website-level override, backed directly by AppControl and AppSetting persistence rows. Constructed either around a single organisation-level AppControl, or around an organisation-level AppSettings plus a website-level AppControl, in which case website settings take precedence over the organisation defaults.

Implements: AppSettings


Properties

PropertyReturnsDescription
enabledbooleanWhether the app is enabled, checked in order of specificity: the website-level AppControl if this instance wraps one, otherwise the organisation-level settings, otherwise the organisation-level AppControl. Returns false if none of those are present.
settingsMap<String,String>All settings for the app, merged from organisation level and website level. Organisation-level settings are read first, then any website-level settings are applied on top so a website value overrides the matching organisation default.

Methods

isEnabled()

Returns: boolean

Whether the app is enabled, checked in order of specificity: the website-level AppControl if this instance wraps one, otherwise the organisation-level settings, otherwise the organisation-level AppControl. Returns false if none of those are present.

getSettings()

Returns: Map<String,String>

All settings for the app, merged from organisation level and website level. Organisation-level settings are read first, then any website-level settings are applied on top so a website value overrides the matching organisation default.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.