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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if custom email requires verification.booleanCheck if custom name requires approve.booleanCheck if custom organization requires approve.booleanCheck if change of email to organization email is enabled.booleanCheck if change of name to custom name is enabled.booleanCheck if change of organization to organization name is enabled.booleanCheck if change of email to email from user ext source is enabled.booleanCheck if change of name to name from user ext source is enabled.booleanCheck 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).voidbooleanChecks whether spool files generated by the engine should be archivedvoidReloads the configuration of brandings and their respective apps (see perun-apps-config.yml)voidsetPerunAppsConfigLoader(PerunAppsConfigLoader perunAppsConfigLoader) Sets the PerunAppsConfigLoadervoidsetPerunOidcConfigLoader(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:ConfigManagerImplApiReturns Oidc Configuration for this Perun instance (to be used for CLI communication).- Specified by:
getPerunOidcConfigin 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:ConfigManagerImplApiReloads the configuration of brandings and their respective apps (see perun-apps-config.yml)- Specified by:
reloadAppsConfigin interfaceConfigManagerImplApi
-
isArchiveSpoolEnabled
public boolean isArchiveSpoolEnabled()Description copied from interface:ConfigManagerImplApiChecks whether spool files generated by the engine should be archived- Specified by:
isArchiveSpoolEnabledin interfaceConfigManagerImplApi
-
setPerunAppsConfigLoader
Description copied from interface:ConfigManagerImplApiSets the PerunAppsConfigLoader- Specified by:
setPerunAppsConfigLoaderin interfaceConfigManagerImplApi- Parameters:
perunAppsConfigLoader- loader to set
-
setPerunOidcConfigLoader
Description copied from interface:ConfigManagerImplApiSets the PerunOidcConfigLoader- Specified by:
setPerunOidcConfigLoaderin interfaceConfigManagerImplApi- Parameters:
perunOidcConfigLoader- loader to set
-
getEnableLinkedName
public boolean getEnableLinkedName()Description copied from interface:ConfigManagerImplApiCheck if change of name to name from user ext source is enabled.- Specified by:
getEnableLinkedNamein interfaceConfigManagerImplApi- Returns:
- true if name from ues is enabled, otherwise false
-
getEnableCustomName
public boolean getEnableCustomName()Description copied from interface:ConfigManagerImplApiCheck if change of name to custom name is enabled.- Specified by:
getEnableCustomNamein interfaceConfigManagerImplApi- Returns:
- true if custom name enabled, otherwise false
-
getCustomNameRequiresApprove
public boolean getCustomNameRequiresApprove()Description copied from interface:ConfigManagerImplApiCheck if custom name requires approve.- Specified by:
getCustomNameRequiresApprovein interfaceConfigManagerImplApi- Returns:
- true if custom name requires approve, otherwise false
-
getEnableLinkedOrganization
public boolean getEnableLinkedOrganization()Description copied from interface:ConfigManagerImplApiCheck if change of organization to organization from user ext source is enabled.- Specified by:
getEnableLinkedOrganizationin interfaceConfigManagerImplApi- Returns:
- true if organization from ues is enabled, otherwise false
-
getEnableCustomOrganization
public boolean getEnableCustomOrganization()Description copied from interface:ConfigManagerImplApiCheck if change of organization to organization name is enabled.- Specified by:
getEnableCustomOrganizationin interfaceConfigManagerImplApi- Returns:
- true if custom organization enabled, otherwise false
-
getCustomOrganizationRequiresApprove
public boolean getCustomOrganizationRequiresApprove()Description copied from interface:ConfigManagerImplApiCheck if custom organization requires approve.- Specified by:
getCustomOrganizationRequiresApprovein interfaceConfigManagerImplApi- Returns:
- true if custom organization requires approve, otherwise false
-
getEnableLinkedEmail
public boolean getEnableLinkedEmail()Description copied from interface:ConfigManagerImplApiCheck if change of email to email from user ext source is enabled.- Specified by:
getEnableLinkedEmailin interfaceConfigManagerImplApi- Returns:
- true if email from ues is enabled, otherwise false
-
getEnableCustomEmail
public boolean getEnableCustomEmail()Description copied from interface:ConfigManagerImplApiCheck if change of email to organization email is enabled.- Specified by:
getEnableCustomEmailin interfaceConfigManagerImplApi- Returns:
- true if custom email enabled, otherwise false
-
getCustomEmailRequiresVerification
public boolean getCustomEmailRequiresVerification()Description copied from interface:ConfigManagerImplApiCheck if custom email requires verification.- Specified by:
getCustomEmailRequiresVerificationin interfaceConfigManagerImplApi- Returns:
- true if custom email requires verification, otherwise false
-