01: /**********************************************************************************
02: *
03: * $Id: ContextManagement.java 9271 2006-05-10 21:52:49Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2005 The Regents of the University of California, The MIT Corporation
08: *
09: * Licensed under the Educational Community License, Version 1.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.opensource.org/licenses/ecl1.php
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: *
21: **********************************************************************************/package org.sakaiproject.tool.gradebook.facades;
22:
23: /**
24: * Facade to context management service, to give control of application entry
25: * and gradebook selection to the framework.
26: */
27: public interface ContextManagement {
28: /**
29: * @param request
30: * the javax.servlet.http.HttpServletRequest or javax.portlet.PortletRequest from
31: * which to determine the current gradebook. Since they don't share an interface,
32: * a generic object is passed.
33: *
34: * @return
35: * the UID of the currently selected gradebook, or null if the context manager
36: * cannot determine a selected gradebook
37: */
38: public String getGradebookUid(Object request);
39:
40: }
|