Package cz.metacentrum.perun.core.impl
Class PerunAppsConfig
java.lang.Object
cz.metacentrum.perun.core.impl.PerunAppsConfig
Class holding configuration of perun apps brandings and apps' domains.
- Author:
- Vojtech Sassmann <vojtech.sassmann@gmail.com>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class holding data for a single branding.static class
Class holding domains of new gui applications. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PerunAppsConfig.Brand
getBrandContainingDomain
(String domain) Returns configuration's brand in which the provided domain is specifiedstatic PerunAppsConfig.Brand
getBrandContainingVo
(String voShortname) Iterates brands and searches for such that contains vo's shortname.static PerunAppsConfig
void
setBrands
(List<PerunAppsConfig.Brand> brands) static void
setInstance
(PerunAppsConfig instance) toString()
-
Constructor Details
-
PerunAppsConfig
public PerunAppsConfig()
-
-
Method Details
-
getInstance
-
setInstance
-
getBrandContainingDomain
Returns configuration's brand in which the provided domain is specified- Parameters:
domain
- Example: https://perun-dev.cz- Returns:
- brand or null if domain is not present in the configuration
-
getBrandContainingVo
Iterates brands and searches for such that contains vo's shortname. If none found, returns default branding. -
getBrands
-
setBrands
-
toString
-