1 /*
2 * Replica is published under the terms
3 * of the Apache Software License.
4 */
5 package replica.session;
6
7 /***
8 * @author Pedro Costa
9 * @author Helder Silva
10 * @since 19/Jan/2004
11 */
12 public interface SessionManager {
13 /***
14 * Create a new user session. Returns the user session Id.
15 * The user session Id can be user to get the user session using
16 * {@link #getSession(String)}.
17 *
18 * @param String userId can be null
19 * @param String userPassword can be null
20 * @return the session id of the new session.
21 */
22 public abstract String createSession(String userId, String userPassword);
23 public abstract void createSession(String sessionId, String userId, String userPassword);
24 public abstract Session getSession(String sessionId);
25 public abstract void destroySession(String sessionId);
26 public abstract void login(Session session, String userId, String userPassword);
27
28 }
This page was automatically generated by Maven