01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/integration/helper/standalone/GradebookHelperImpl.java $
03: * $Id: GradebookHelperImpl.java 9273 2006-05-10 22:34:28Z daisyf@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 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.sakaiproject.tool.assessment.integration.helper.standalone;
21:
22: import org.apache.commons.logging.Log;
23: import org.apache.commons.logging.LogFactory;
24:
25: import org.sakaiproject.tool.assessment.integration.helper.ifc.GradebookHelper;
26:
27: /**
28: *
29: * <p>Description:
30: * This is a stub standalone context implementation helper delegate class for
31: * the GradebookFacade class. The helper methods use hardcoded values.
32: * "Standalone" means that Samigo (Tests and Quizzes)
33: * is running without the context of the Sakai portal and authentication
34: * mechanisms, and therefore we use stub methods.</p>
35: * <p>Note: To customize behavior you can add your own helper class to the
36: * Spring injection via the integrationContext.xml for your context.
37: * The particular integrationContext.xml to be used is selected by the
38: * build process.
39: * </p>
40: * <p>Sakai Project Copyright (c) 2005</p>
41: * <p> </p>
42: * @author Ed Smiley <esmiley@stanford.edu>
43: *
44: */
45: public class GradebookHelperImpl implements GradebookHelper {
46: private static Log log = LogFactory
47: .getLog(GradebookHelperImpl.class);
48:
49: /**
50: * Hardcoded stub. Get current gradebook uid.
51: * @return Gradebook #10
52: */
53: public String getGradebookUId() {
54: return "QA_8";
55: }
56:
57: /**
58: * Hardcoded stub. Get teh default gradebook uid.
59: * @return Gradebook #1
60: */
61: public String getDefaultGradebookUId() {
62: return "QA_1";
63: }
64: }
|