Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Unified Diff: server/src/java/org/sakaiproject/gradebook/gwt/server/model/ApplicationSetupImpl.java

Issue 5797051: GRBK-1244
Patch Set: Created 13 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: server/src/java/org/sakaiproject/gradebook/gwt/server/model/ApplicationSetupImpl.java
diff --git a/server/src/java/org/sakaiproject/gradebook/gwt/server/model/ApplicationSetupImpl.java b/server/src/java/org/sakaiproject/gradebook/gwt/server/model/ApplicationSetupImpl.java
index 6f82eb18873dd891de8b0b378dcc86c4725da65e..eddffdcd582335a244499eccd5bad39dee10da4d 100644
--- a/server/src/java/org/sakaiproject/gradebook/gwt/server/model/ApplicationSetupImpl.java
+++ b/server/src/java/org/sakaiproject/gradebook/gwt/server/model/ApplicationSetupImpl.java
@@ -3,6 +3,7 @@ package org.sakaiproject.gradebook.gwt.server.model;
import java.util.ArrayList;
import java.util.List;
+import org.sakaiproject.gradebook.gwt.client.AppConstants;
import org.sakaiproject.gradebook.gwt.client.model.ApplicationSetup;
import org.sakaiproject.gradebook.gwt.client.model.Gradebook;
import org.sakaiproject.gradebook.gwt.client.model.key.ApplicationKey;
@@ -140,4 +141,23 @@ public class ApplicationSetupImpl extends BaseModel implements
set(ApplicationKey.B_CHECK_FINAL_GRADE_SUBMISSION_STATUS.name(), Boolean.valueOf(status));
}
+
+ @Override
+ public int getCachedDataAge() {
+
+ Integer age = get(ApplicationKey.I_CACHED_DATA_AGE.name());
+
+ if(null != age) {
+
+ return age.intValue();
+ }
+
+ return AppConstants.CURRENT_STATISTICS_DATA;
+ }
+
+ @Override
+ public void setCachedDataAge(int age) {
+
+ set(ApplicationKey.I_CACHED_DATA_AGE.name(), Integer.valueOf(age));
+ }
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b