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 invalid input: '<'vojtech.sassmann@gmail.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass holding data for a single branding.static classClass holding domains of new gui applications. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PerunAppsConfig.BrandgetBrandContainingDomain(String domain) Returns configuration's brand in which the provided domain is specifiedstatic PerunAppsConfig.BrandgetBrandContainingVo(String voShortname) Iterates brands and searches for such that contains vo's shortname.static PerunAppsConfig.BrandReturns default branding.static PerunAppsConfigvoidsetBrands(List<PerunAppsConfig.Brand> brands) static voidsetInstance(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
-
getDefaultBrand
Returns default branding. If none found, returns null.- Returns:
- default branding or null
-
getBrandContainingVo
Iterates brands and searches for such that contains vo's shortname. If none found, returns default branding. -
getBrands
-
setBrands
-
toString
-