01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.romaframework.aspect.session;
18:
19: import java.util.Collection;
20: import java.util.Locale;
21:
22: import org.romaframework.core.aspect.Aspect;
23:
24: public interface SessionAspect extends Aspect {
25: public static final String ASPECT_NAME = "session";
26:
27: public SessionInfo getActiveSessionInfo();
28:
29: public SessionInfo getSession(Object iSystemSession);
30:
31: public SessionInfo addSession(Object iSession);
32:
33: public SessionInfo removeSession(Object iSession);
34:
35: public SessionInfo removeSessionBySystem(Object iSystemSession);
36:
37: public Collection<SessionInfo> getSessionInfos();
38:
39: public Locale getActiveLocale();
40:
41: public void logout();
42:
43: public void shutdown(Object iSystemSession);
44:
45: public Object getProperty(Object iSession, String iKey);
46:
47: public Object getProperty(String iKey);
48:
49: public void setProperty(Object iSession, String iKey, Object iValue);
50:
51: public void setProperty(String iKey, Object iValue);
52: }
|