/** * Gets a property value as a boolean. * * @param configurationValue the boolean configuration value * * @return the boolean property value */ public Boolean getBooleanProperty(ConfigurationValue configurationValue) { return getBooleanProperty(configurationValue, environment); }
/** * Gets a property value as {@link BigDecimal}. Additionally it ensures that the property value is not negative. * * @param configurationValue the {@link BigDecimal} configuration value * * @return the non-negative {@link BigDecimal} property value */ public BigDecimal getNonNegativeBigDecimalRequiredProperty(ConfigurationValue configurationValue) { return getNonNegativeBigDecimalRequiredProperty(configurationValue, environment); }
/** * Get the S3_STAGING_RESOURCE full path from the bucket name as well as other details. * * @return the s3 managed location. */ public String getS3StagingLocation() { return configurationHelper.getProperty(ConfigurationValue.S3_URL_PROTOCOL) + configurationHelper.getProperty(ConfigurationValue.S3_STAGING_BUCKET_NAME) + configurationHelper.getProperty(ConfigurationValue.S3_URL_PATH_DELIMITER) + configurationHelper.getProperty(ConfigurationValue.S3_STAGING_RESOURCE_BASE); }
/** * Evaluates the given expression string using the given variables as context variables. * * @param <T> The desired type * @param expressionString Expression string to evaluate * @param variables The variables to put into context * @return The result of the evaluation */ public <T> T evaluate(String expressionString, Map<String, Object> variables) { return evaluate(parseExpression(expressionString), variables); }
/** * Gets a property value and validates that it is not blank or null. * * @param configurationValue {@link ConfigurationValue} * * @return the string value */ public String getRequiredProperty(ConfigurationValue configurationValue) { return getRequiredProperty(configurationValue, environment); }
/** * Gets a property value as a {@link BigDecimal}. * * @param configurationValue the {@link BigDecimal} configuration value * * @return the {@link BigDecimal} property value */ public BigDecimal getBigDecimalRequiredProperty(ConfigurationValue configurationValue) { return getBigDecimalRequiredProperty(configurationValue, environment); }
/** * Removes a logging appender. * * @param appenderName the appender name. */ protected void removeLoggingAppender(String appenderName) { loggingHelper.removeLoggingAppender(appenderName); }
/** * Gets the log level for the specified logger. * * @param loggerName the logger name to get the level for. */ protected LogLevel getLogLevel(String loggerName) { return loggingHelper.getLogLevel(loggerName); }
/** * TODO replace uses of this method with ConfigurationHelper Gets the configuration value as string. */ public String getConfigurationValueAsString(ConfigurationValue configurationValue) { return configurationHelper.getProperty(configurationValue); }
@Override public String getCronExpression() { return configurationHelper.getProperty(ConfigurationValue.RELATIONAL_TABLE_SCHEMA_UPDATE_JOB_CRON_EXPRESSION); }
/** * TODO replace uses of this method with ConfigurationHelper Gets the configuration value as integer. * * @param configurationValue the configuration value. * * @return the configuration value as an integer. */ public int getConfigurationValueAsInteger(ConfigurationValue configurationValue) { return configurationHelper.getProperty(configurationValue, Integer.class); }
@Override public String getCronExpression() { return configurationHelper.getProperty(ConfigurationValue.JMS_PUBLISHING_JOB_CRON_EXPRESSION); }
/** * Gets the job name token. * * @return the job name token. */ public String getJobNameToken() { // Set the token delimiter based on the environment configuration. String tokenDelimiter = configurationHelper.getProperty(ConfigurationValue.TEMPLATE_TOKEN_DELIMITER); // Setup the individual token names (using the configured delimiter). return tokenDelimiter + "jobName" + tokenDelimiter; }
@Override public String getCronExpression() { return configurationHelper.getProperty(ConfigurationValue.STORAGE_POLICY_SELECTOR_JOB_CRON_EXPRESSION); } }
@Override public String getCronExpression() { return configurationHelper.getProperty(ConfigurationValue.EC2_ON_DEMAND_PRICING_UPDATE_JOB_CRON_EXPRESSION); }
/** * Calls {@link #getProperty(ConfigurationValue, Class)} where the target type is {@link String}. * * @param configurationValue {@link ConfigurationValue} * * @return The string value */ public String getProperty(ConfigurationValue configurationValue) { return getProperty(configurationValue, String.class); }
@Override public String getCronExpression() { return configurationHelper.getProperty(ConfigurationValue.EXPIRE_RESTORED_BDATA_JOB_CRON_EXPRESSION); } }
@Override public String getCronExpression() { return configurationHelper.getProperty(ConfigurationValue.FILE_UPLOAD_CLEANUP_JOB_CRON_EXPRESSION); } }
/** * Calls {@link #getProperty(ConfigurationValue, Class, Environment)} * * @param configurationValue The {@link ConfigurationValue} * @param targetType The return type * * @return The property value */ public <T> T getProperty(ConfigurationValue configurationValue, Class<T> targetType) { return getProperty(configurationValue, targetType, environment); }
/** * Calls {@link #getProperty(ConfigurationValue, Class)} where the target type is {@link String}. * * @param configurationValue {@link ConfigurationValue} * * @return The string value */ public String getProperty(ConfigurationValue configurationValue) { return getProperty(configurationValue, String.class); }