-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USU: Added Configurable group id prepend string
- Loading branch information
Showing
7 changed files
with
185 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package od.utils; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
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; | ||
|
||
@Configuration | ||
@EnableConfigurationProperties | ||
@ConfigurationProperties(prefix="lrs_options") | ||
//@PropertySource(value = "classpath:application.yml") | ||
@ContextConfiguration(initializers = ConfigFileApplicationContextInitializer.class) | ||
public class LRS_Options { | ||
|
||
private String group_id_prependString; | ||
|
||
public String getGroup_id_prependString() { | ||
return group_id_prependString; | ||
} | ||
|
||
public void setGroup_id_prependString(String group_id_prependString) { | ||
this.group_id_prependString = group_id_prependString; | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
src/main/java/org/apereo/openlrs/model/event/v2/EventStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* | ||
*/ | ||
package org.apereo.openlrs.model.event.v2; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
|
||
/** | ||
* @author ggilbert | ||
* | ||
*/ | ||
public class EventStats implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
private long total; | ||
private long max; | ||
private Map<String,Long> totalByWeekNumber; | ||
private Map<String, StudentEventStats> studentEventStats; | ||
|
||
public long getTotal() { | ||
return total; | ||
} | ||
|
||
public void setTotal(long total) { | ||
this.total = total; | ||
} | ||
|
||
public Map<String, Long> getTotalByWeekNumber() { | ||
return totalByWeekNumber; | ||
} | ||
|
||
public void setTotalByWeekNumber(Map<String, Long> totalByWeekNumber) { | ||
this.totalByWeekNumber = totalByWeekNumber; | ||
} | ||
|
||
public Map<String, StudentEventStats> getStudentActivityStats() { | ||
return studentEventStats; | ||
} | ||
|
||
public void setStudentActivityStats(Map<String, StudentEventStats> studentEventStats) { | ||
this.studentEventStats = studentEventStats; | ||
} | ||
|
||
public void setMax(Long maxValue) { | ||
this.max = maxValue; | ||
} | ||
|
||
public Long getMax() { | ||
return this.max; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/org/apereo/openlrs/model/event/v2/StudentEventStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.apereo.openlrs.model.event.v2; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
public class StudentEventStats implements Serializable{ | ||
private static final long serialVersionUID = 1L; | ||
private long total; | ||
private Map<String,Long> totalByWeekNumber; | ||
private String studentId; | ||
private String studentName; | ||
|
||
public long getTotal() { | ||
return total; | ||
} | ||
public void setTotal(long total) { | ||
this.total = total; | ||
} | ||
public Map<String, Long> getTotalByWeekNumber() { | ||
return totalByWeekNumber; | ||
} | ||
public void setTotalByWeekNumber(Map<String, Long> totalByWeekNumber) { | ||
this.totalByWeekNumber = totalByWeekNumber; | ||
} | ||
public String getStudentId() { | ||
return studentId; | ||
} | ||
public void setStudentId(String studentId) { | ||
this.studentId = studentId; | ||
} | ||
public String getStudentName() { | ||
return studentName; | ||
} | ||
public void setStudentName(String studentName) { | ||
this.studentName = studentName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters