Package cz.metacentrum.perun.core.api
Interface ConfigManager
- All Known Implementing Classes:
ConfigManagerEntry
public interface ConfigManager
ConfigManager serves to manage configuration files.
- Author:
- David Flor <493294@mail.muni.cz>
-
Method Summary
Modifier and TypeMethodDescriptiongetPerunOidcConfig
(PerunSession sess, String requestUrl) Returns Oidc Configuration for this Perun instance (to be used for CLI communication).void
reloadAppsConfig
(PerunSession sess) Reloads the configuration of brandings and their respective apps (see perun-apps-config.yml)
-
Method Details
-
getPerunOidcConfig
OidcConfig getPerunOidcConfig(PerunSession sess, String requestUrl) throws OidcConfigNotExistsException, OidcConfigFileNotExistsException Returns Oidc Configuration for this Perun instance (to be used for CLI communication).- Parameters:
sess
- sessionrequestUrl
- url of the request- Returns:
- oidcConfig
- Throws:
OidcConfigNotExistsException
- when configuration under such name doesn't existOidcConfigFileNotExistsException
- when configuration file for oidc configs doesn't exist.
-
reloadAppsConfig
Reloads the configuration of brandings and their respective apps (see perun-apps-config.yml)- Parameters:
sess
- user's session in Perun- Throws:
PrivilegeException
- wrong privilege to call this method
-