Class PerunAppsConfig

java.lang.Object
cz.metacentrum.perun.core.impl.PerunAppsConfig

public class PerunAppsConfig extends Object
Class holding configuration of perun apps brandings and apps' domains.
Author:
Vojtech Sassmann <vojtech.sassmann@gmail.com>
  • Constructor Details

    • PerunAppsConfig

      public PerunAppsConfig()
  • Method Details

    • getInstance

      public static PerunAppsConfig getInstance()
    • setInstance

      public static void setInstance(PerunAppsConfig instance)
    • getBrandContainingDomain

      public static PerunAppsConfig.Brand getBrandContainingDomain(String domain)
      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

      public static PerunAppsConfig.Brand getBrandContainingVo(String voShortname)
      Iterates brands and searches for such that contains vo's shortname. If none found, returns default branding.
    • getBrands

      public List<PerunAppsConfig.Brand> getBrands()
    • setBrands

      public void setBrands(List<PerunAppsConfig.Brand> brands)
    • toString

      public String toString()
      Overrides:
      toString in class Object