diff --git a/lessonbuilder/tool/src/java/org/sakaiproject/lessonbuildertool/service/LessonsAccess.java b/lessonbuilder/tool/src/java/org/sakaiproject/lessonbuildertool/service/LessonsAccess.java
index e9491e31c920..2fd5ab0abe43 100644
--- a/lessonbuilder/tool/src/java/org/sakaiproject/lessonbuildertool/service/LessonsAccess.java
+++ b/lessonbuilder/tool/src/java/org/sakaiproject/lessonbuildertool/service/LessonsAccess.java
@@ -28,6 +28,7 @@
import java.util.List;
import java.util.Set;
+import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import uk.org.ponder.messageutil.MessageLocator;
@@ -44,6 +45,7 @@
import org.sakaiproject.memory.api.Cache;
import org.sakaiproject.memory.api.MemoryService;
import org.sakaiproject.site.api.SiteService;
+import org.sakaiproject.time.api.UserTimeService;
import org.sakaiproject.tool.api.SessionManager;
import org.sakaiproject.tool.api.ToolManager;
import org.sakaiproject.user.api.UserDirectoryService;
@@ -68,11 +70,23 @@ public class LessonsAccess {
static final boolean useCache = true;
// Sakai Service Beans
- private SimplePageToolDao dao;
- private AuthzGroupService authzGroupService;
- private SecurityService securityService;
- private MemoryService memoryService;
- private UserDirectoryService userDirectoryService;
+ @Setter private SimplePageToolDao dao;
+ @Setter private MessageLocator messageLocator;
+ @Setter private AuthzGroupService authzGroupService;
+ @Setter private SecurityService securityService;
+ @Setter private MemoryService memoryService;
+ @Setter private SessionManager sessionManager;
+ @Setter private ToolManager toolManager;
+ @Setter private UserDirectoryService userDirectoryService;
+ @Setter private UserTimeService userTimeService;
+ @Setter private SiteService siteService;
+ @Setter private ContentHostingService contentHostingService;
+ @Setter private GradebookIfc gradebookIfc;
+
+ @Setter private LessonEntity forumEntity;
+ @Setter private LessonEntity quizEntity;
+ @Setter private LessonEntity assignmentEntity;
+ @Setter private LessonEntity bltiEntity;
public void init() {
if (useCache) {
@@ -469,6 +483,7 @@ public SimplePageBean makeSimplePageBean(SimplePageBean simplePageBean, String s
simplePageBean.setCurrentSiteId(siteId);
simplePageBean.setCurrentPage(currentPage);
simplePageBean.setCurrentPageId(currentPage.getPageId());
+ simplePageBean.setUserTimeService(userTimeService);
simplePageBean.init();
}
@@ -557,92 +572,4 @@ public boolean isPageOwner(SimplePage page) {
else
return authzGroupService.getUserRole(currentUserId, group) != null;
}
-
- public void setAuthzGroupService(AuthzGroupService authzGroupService) {
- this.authzGroupService = authzGroupService;
- }
-
- public AuthzGroupService getAuthzGroupService() {
- return authzGroupService;
- }
-
- public void setSecurityService(SecurityService securityService) {
- this.securityService = securityService;
- }
-
- public SecurityService getSecurityService() {
- return securityService;
- }
-
- public void setSimplePageToolDao(SimplePageToolDao s) {
- dao = s;
- }
-
- public void setMemoryService(MemoryService m) {
- memoryService = m;
- }
-
- public void setUserDirectoryService(UserDirectoryService userDirectoryService) {
- this.userDirectoryService = userDirectoryService;
- }
-
- public MessageLocator messageLocator;
-
- public void setMessageLocator(MessageLocator s) {
- messageLocator = s;
- }
-
- private ToolManager toolManager;
-
- public void setToolManager(ToolManager s) {
- toolManager = s;
- }
-
- SessionManager sessionManager = null;
-
- public void setSessionManager(SessionManager s) {
- sessionManager = s;
- }
-
- private SiteService siteService;
-
- public void setSiteService(SiteService s) {
- siteService = s;
- }
-
- ContentHostingService contentHostingService = null;
-
- public void setContentHostingService(ContentHostingService s) {
- contentHostingService = s;
- }
-
- LessonEntity forumEntity = null;
-
- public void setForumEntity(Object e) {
- forumEntity = (LessonEntity) e;
- }
-
- LessonEntity quizEntity = null;
-
- public void setQuizEntity(Object e) {
- quizEntity = (LessonEntity) e;
- }
-
- LessonEntity assignmentEntity = null;
-
- public void setAssignmentEntity(Object e) {
- assignmentEntity = (LessonEntity) e;
- }
-
- LessonEntity bltiEntity = null;
- public void setBltiEntity(Object e) {
- bltiEntity = (LessonEntity)e;
- }
-
- private GradebookIfc gradebookIfc = null;
-
- public void setGradebookIfc(GradebookIfc g) {
- gradebookIfc = g;
- }
-
}
diff --git a/lessonbuilder/tool/src/webapp/WEB-INF/applicationContext.xml b/lessonbuilder/tool/src/webapp/WEB-INF/applicationContext.xml
index 8f408130accc..40ba46bc72c9 100644
--- a/lessonbuilder/tool/src/webapp/WEB-INF/applicationContext.xml
+++ b/lessonbuilder/tool/src/webapp/WEB-INF/applicationContext.xml
@@ -461,7 +461,7 @@ simplePageBean.addForumSummary
class="org.sakaiproject.lessonbuildertool.service.LessonsAccess"
init-method="init"
destroy-method="destroy">
-
+
@@ -476,6 +476,7 @@ simplePageBean.addForumSummary
+