Package cz.metacentrum.perun.core.impl
Class ConfigManagerImpl
java.lang.Object
cz.metacentrum.perun.core.impl.ConfigManagerImpl
- All Implemented Interfaces:
ConfigManagerImplApi
- Author:
- David Flor invalid input: '<'493294@mail.muni.cz>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if custom email requires verification.boolean
Check if custom name requires approve.boolean
Check if custom organization requires approve.boolean
Check if change of email to organization email is enabled.boolean
Check if change of name to custom name is enabled.boolean
Check if change of organization to organization name is enabled.boolean
Check if change of email to email from user ext source is enabled.boolean
Check if change of name to name from user ext source is enabled.boolean
Check if change of organization to organization from user ext source is enabled.getPerunOidcConfig
(String name) Returns Oidc Configuration for this Perun instance (to be used for CLI communication).void
boolean
Checks whether spool files generated by the engine should be archivedvoid
Reloads the configuration of brandings and their respective apps (see perun-apps-config.yml)void
setPerunAppsConfigLoader
(PerunAppsConfigLoader perunAppsConfigLoader) Sets the PerunAppsConfigLoadervoid
setPerunOidcConfigLoader
(PerunOidcConfigLoader perunOidcConfigLoader) Sets the PerunOidcConfigLoader
-
Constructor Details
-
ConfigManagerImpl
public ConfigManagerImpl()
-
-
Method Details
-
getPerunOidcConfig
public OidcConfig getPerunOidcConfig(String name) throws OidcConfigNotExistsException, OidcConfigFileNotExistsException Description copied from interface:ConfigManagerImplApi
Returns Oidc Configuration for this Perun instance (to be used for CLI communication).- Specified by:
getPerunOidcConfig
in interfaceConfigManagerImplApi
- Parameters:
name
- name of desired configuration- Returns:
- oidcConfig
- Throws:
OidcConfigNotExistsException
- when configuration under such name doesn't existOidcConfigFileNotExistsException
- when configuration file for oidc configs doesn't exist.
-
initialize
public void initialize() -
reloadAppsConfig
public void reloadAppsConfig()Description copied from interface:ConfigManagerImplApi
Reloads the configuration of brandings and their respective apps (see perun-apps-config.yml)- Specified by:
reloadAppsConfig
in interfaceConfigManagerImplApi
-
isArchiveSpoolEnabled
public boolean isArchiveSpoolEnabled()Description copied from interface:ConfigManagerImplApi
Checks whether spool files generated by the engine should be archived- Specified by:
isArchiveSpoolEnabled
in interfaceConfigManagerImplApi
-
setPerunAppsConfigLoader
Description copied from interface:ConfigManagerImplApi
Sets the PerunAppsConfigLoader- Specified by:
setPerunAppsConfigLoader
in interfaceConfigManagerImplApi
- Parameters:
perunAppsConfigLoader
- loader to set
-
setPerunOidcConfigLoader
Description copied from interface:ConfigManagerImplApi
Sets the PerunOidcConfigLoader- Specified by:
setPerunOidcConfigLoader
in interfaceConfigManagerImplApi
- Parameters:
perunOidcConfigLoader
- loader to set
-
getEnableLinkedName
public boolean getEnableLinkedName()Description copied from interface:ConfigManagerImplApi
Check if change of name to name from user ext source is enabled.- Specified by:
getEnableLinkedName
in interfaceConfigManagerImplApi
- Returns:
- true if name from ues is enabled, otherwise false
-
getEnableCustomName
public boolean getEnableCustomName()Description copied from interface:ConfigManagerImplApi
Check if change of name to custom name is enabled.- Specified by:
getEnableCustomName
in interfaceConfigManagerImplApi
- Returns:
- true if custom name enabled, otherwise false
-
getCustomNameRequiresApprove
public boolean getCustomNameRequiresApprove()Description copied from interface:ConfigManagerImplApi
Check if custom name requires approve.- Specified by:
getCustomNameRequiresApprove
in interfaceConfigManagerImplApi
- Returns:
- true if custom name requires approve, otherwise false
-
getEnableLinkedOrganization
public boolean getEnableLinkedOrganization()Description copied from interface:ConfigManagerImplApi
Check if change of organization to organization from user ext source is enabled.- Specified by:
getEnableLinkedOrganization
in interfaceConfigManagerImplApi
- Returns:
- true if organization from ues is enabled, otherwise false
-
getEnableCustomOrganization
public boolean getEnableCustomOrganization()Description copied from interface:ConfigManagerImplApi
Check if change of organization to organization name is enabled.- Specified by:
getEnableCustomOrganization
in interfaceConfigManagerImplApi
- Returns:
- true if custom organization enabled, otherwise false
-
getCustomOrganizationRequiresApprove
public boolean getCustomOrganizationRequiresApprove()Description copied from interface:ConfigManagerImplApi
Check if custom organization requires approve.- Specified by:
getCustomOrganizationRequiresApprove
in interfaceConfigManagerImplApi
- Returns:
- true if custom organization requires approve, otherwise false
-
getEnableLinkedEmail
public boolean getEnableLinkedEmail()Description copied from interface:ConfigManagerImplApi
Check if change of email to email from user ext source is enabled.- Specified by:
getEnableLinkedEmail
in interfaceConfigManagerImplApi
- Returns:
- true if email from ues is enabled, otherwise false
-
getEnableCustomEmail
public boolean getEnableCustomEmail()Description copied from interface:ConfigManagerImplApi
Check if change of email to organization email is enabled.- Specified by:
getEnableCustomEmail
in interfaceConfigManagerImplApi
- Returns:
- true if custom email enabled, otherwise false
-
getCustomEmailRequiresVerification
public boolean getCustomEmailRequiresVerification()Description copied from interface:ConfigManagerImplApi
Check if custom email requires verification.- Specified by:
getCustomEmailRequiresVerification
in interfaceConfigManagerImplApi
- Returns:
- true if custom email requires verification, otherwise false
-