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)); |
+ } |
} |