01: /**********************************************************************************
02: * $URL:https://source.sakaiproject.org/svn/osp/trunk/glossary/tool/src/java/org/theospi/portfolio/help/control/HelpController.java $
03: * $Id:HelpController.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.theospi.portfolio.help.control;
21:
22: import java.util.List;
23: import java.util.Map;
24:
25: import org.apache.commons.logging.Log;
26: import org.apache.commons.logging.LogFactory;
27: import org.sakaiproject.metaobj.shared.mgt.IdManager;
28: import org.sakaiproject.metaobj.utils.mvc.intf.Controller;
29: import org.sakaiproject.metaobj.worksite.mgt.WorksiteManager;
30: import org.springframework.validation.Errors;
31: import org.springframework.web.servlet.ModelAndView;
32: import org.theospi.portfolio.help.model.HelpManager;
33: import org.theospi.portfolio.security.AuthorizationFacade;
34:
35: public class HelpController implements Controller {
36: private HelpManager helpManager;
37: private WorksiteManager worksiteManager;
38: private AuthorizationFacade authzManager;
39: private IdManager idManager;
40: private List toolInit;
41:
42: public static final String TRANSFER_CONTROLLER_SESSION_MESSAGE = "transferMessage";
43: public static final String TRANSFER_MESSAGE_IMPORT_SUCCESS = "msgImportSuccess";
44: public static final String TRANSFER_MESSAGE_IMPORT_BAD_FILE = "msgImportBadFile";
45: public static final String TRANSFER_MESSAGE_IMPORT_FAILED = "msgImportFailed";
46: public static final String TRANSFER_MESSAGE_IMPORT_BAD_PARSE = "msgImportBadParse";
47:
48: protected final Log logger = LogFactory.getLog(getClass());
49:
50: public ModelAndView handleRequest(Object requestModel, Map request,
51: Map session, Map application, Errors errors) {
52: return new ModelAndView("success");
53: }
54:
55: public HelpManager getHelpManager() {
56: return helpManager;
57: }
58:
59: public void setHelpManager(HelpManager helpManager) {
60: this .helpManager = helpManager;
61: }
62:
63: public WorksiteManager getWorksiteManager() {
64: return worksiteManager;
65: }
66:
67: public void setWorksiteManager(WorksiteManager worksiteManager) {
68: this .worksiteManager = worksiteManager;
69: }
70:
71: public AuthorizationFacade getAuthzManager() {
72: return authzManager;
73: }
74:
75: public void setAuthzManager(AuthorizationFacade authzManager) {
76: this .authzManager = authzManager;
77: }
78:
79: public IdManager getIdManager() {
80: return idManager;
81: }
82:
83: public void setIdManager(IdManager idManager) {
84: this .idManager = idManager;
85: }
86:
87: public List getToolInit() {
88: return toolInit;
89: }
90:
91: public void setToolInit(List toolInit) {
92: this.toolInit = toolInit;
93: }
94: }
|