/** * Fetch the oVirtISOsRepositoryPath configuration value and, if it is not an absolute path, resolve it relative to * the DataDir configuration value. * * @return an absolute path for oVirtISOsRepositoryPath */ public static String resolveOVirtISOsRepositoryPath() { return ConfigUtil.resolvePath(Config.getValue(ConfigValues.DataDir), Config.getValue(ConfigValues.oVirtISOsRepositoryPath)); }
public static <T> T getValue(ConfigValues value, String version) { return getConfigUtils().getValue(value, version); }
public static <T> Map<String, T> getValuesForAllVersions(ConfigValues value) { return getConfigUtils().getValuesForAllVersions(value); }
/** * Gets the I18N prefix used for value compare. */ public static String getI18NPrefix() { return Config.getValue(ConfigValues.DBI18NPrefix); }
public static boolean valueExists(ConfigValues configValue, String version) { return getConfigUtils().valueExists(configValue, version); }
public static void refresh() { getConfigUtils().refresh(); }
@Override public void afterEach(ExtensionContext extensionContext) { reset(mockConfigUtils); Config.setConfigUtils(origConfUtils); } }
public static OptionBehaviour forValue(int value) { return values()[value]; } }
public int getValue() { return this.ordinal(); }
/** * Constructor. * @param archive name of tar to cache. * @param dir base directory. */ public CachedTar(File archive, File dir) { this.archive = archive; this.dir = dir; this.refreshInterval = Config.<Integer>getValue( ConfigValues.BootstrapCacheRefreshInterval ); }
public static String getFenceConfigurationValue(String key, String version) { init(); String returnValue = null; String customReturnValue = null; ConfigValues value = ConfigValues.valueOf(key); ConfigValues customValue = ConfigValues.valueOf(getCustomKey(key)); returnValue = Config.getValue(value, version); customReturnValue = Config.getValue(customValue, ConfigCommon.defaultConfigurationVersion); return merge(key, returnValue, customReturnValue); }
/** * Fetch the AttestationTruststoreUrl configuration value and, if it is not an absolute path, resolve it relative to the * CABaseDirectory configuration value. * * @return an absolute path for AttestaionTruststore */ public static String resolveAttestationTrustStorePath() { return ConfigUtil.resolvePath(Config.getValue(ConfigValues.DataDir), Config.getValue(ConfigValues.AttestationTruststore)); } }
/** * Returns supported cluster levels. Method should be used only for testing. * * @return supported cluster levels */ public Set<Version> getSupportedClusterLevels() { Set<Version> versions = Config.<HashSet<Version>> getValue(ConfigValues.SupportedClusterLevels); return versions; }
/** * Gets the LIKE clause syntax for non case-sensitive search * * @return the LIKE syntax according to current DBEngine. */ public static String getLikeSyntax(boolean caseSensitive) { // If caseSensitive flag is set we will use LIKE if (caseSensitive) { return "LIKE"; } else { return Config.getValue(ConfigValues.DBLikeSyntax); } }
private static Integer getHostDefaultMtu() { return Config.<Integer> getValue(ConfigValues.DefaultMTU); }
public static <T> T getValue(ConfigValues value) { return Config.getValue(value, ConfigCommon.defaultConfigurationVersion); }
private static String getOrganizationName() { return Config.getValue(ConfigValues.OrganizationName); }
protected Boolean getDisplayUncaughtUIExceptions() { return Config.<Boolean> getValue(ConfigValues.DisplayUncaughtUIExceptions); }
@Override public List<Role> getAnyAdminRoleForUserAndGroups(Guid id, String groupIds) { Integer appMode = Config.<Integer> getValue(ConfigValues.ApplicationMode); return getAnyAdminRoleForUserAndGroups(id, groupIds, appMode); }