01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/tool/tags/sakai_2-4-1/tool-api/api/src/java/org/sakaiproject/tool/api/SessionBindingEvent.java $
03: * $Id: SessionBindingEvent.java 7523 2006-04-09 13:03:23Z ggolden@umich.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.sakaiproject.tool.api;
21:
22: /**
23: * <p>
24: * Events of this type are either sent to an object that implements {@link SessionBindingListener}when it is bound or unbound from a session.
25: * </p>
26: * <p>
27: * (Based on HttpSessionBindingEvent from the Servlet API).
28: * </p>
29: */
30: public interface SessionBindingEvent {
31: /**
32: * Returns the name with which the attribute is bound to or unbound from the session.
33: *
34: * @return a string specifying the name with which the object is bound to or unbound from the session
35: */
36: String getName();
37:
38: /**
39: * Return the session that bound or unbound the attribute value.
40: *
41: * @return The Session object that bound or unbound the attribute value.
42: */
43: Session getSession();
44:
45: /**
46: * Returns the value of the attribute that has been added, removed or replaced. If the attribute was added (or bound), this is the value of the attribute. If the attribute was removed (or unbound), this is the value of the removed attribute. If the
47: * attribute was replaced, this is the old value of the attribute.
48: *
49: * @return The value of the attribute being bound or unbound.
50: */
51: Object getValue();
52: }
|