/** * Returns Velocity context map of the keys and values common across all notification message types. * * @return the Velocity context map */ Map<String, Object> getBaseVelocityContextMap() { // Create and populate the velocity context with dynamic values. Note that we can't use periods within the context keys since they can't // be referenced in the velocity template (i.e. they're used to separate fields with the context object being referenced). return getBaseVelocityContextMapHelper(herdDaoSecurityHelper.getCurrentUsername(), ConfigurationValue.HERD_ENVIRONMENT.getKey().replace('.', '_'), configurationHelper.getProperty(ConfigurationValue.HERD_ENVIRONMENT), ConfigurationValue.HERD_NOTIFICATION_SQS_ENVIRONMENT.getKey().replace('.', '_'), configurationHelper.getProperty(ConfigurationValue.HERD_NOTIFICATION_SQS_ENVIRONMENT)); }
/** * Returns Velocity context map of the keys and values common across all notification message types. * * @return the Velocity context map */ Map<String, Object> getBaseVelocityContextMap() { // Create and populate the velocity context with dynamic values. Note that we can't use periods within the context keys since they can't // be referenced in the velocity template (i.e. they're used to separate fields with the context object being referenced). return getBaseVelocityContextMapHelper(herdDaoSecurityHelper.getCurrentUsername(), ConfigurationValue.HERD_ENVIRONMENT.getKey().replace('.', '_'), configurationHelper.getProperty(ConfigurationValue.HERD_ENVIRONMENT), ConfigurationValue.HERD_NOTIFICATION_SQS_ENVIRONMENT.getKey().replace('.', '_'), configurationHelper.getProperty(ConfigurationValue.HERD_NOTIFICATION_SQS_ENVIRONMENT)); }
String username = herdDaoSecurityHelper.getCurrentUsername();
String username = herdDaoSecurityHelper.getCurrentUsername();