Skip to content

Commit

Permalink
fixed Dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scody committed Aug 16, 2016
1 parent bf44af6 commit 05e2f8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,15 @@ public JsonNode postEvent(JsonNode marshallableObject, ProviderOptions options)

@Override
public EventStats getEventStatsForCourse(ProviderOptions options) {

RestTemplate restTemplate = new RestTemplate();

String fullCourseId = options.getCourseId();
if (StringUtils.isNotEmpty(lrs_Options.getGroup_id_prependString())) {
log.debug("lrs_options group_id_prependString = " + lrs_Options.getGroup_id_prependString());
fullCourseId = lrs_Options.getGroup_id_prependString() + fullCourseId;
} else {
log.debug("lrs_options group_id_prependString is empty, Sakai users should set this value");
}

//set interceptors/requestFactory
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/od/utils/LRS_Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.test.ConfigFileApplicationContextInitializer;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.ContextConfiguration;

@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix="lrs_options")
//@PropertySource(value = "classpath:application.yml")
@ContextConfiguration(initializers = ConfigFileApplicationContextInitializer.class)
//@ContextConfiguration(initializers = ConfigFileApplicationContextInitializer.class)
public class LRS_Options {

private String group_id_prependString;
Expand Down

0 comments on commit 05e2f8b

Please sign in to comment.