1 package org.apache.turbine.services.session; 2 3 18 19 import java.util.Collection ; 20 import javax.servlet.http.HttpSession ; 21 22 import org.apache.turbine.om.security.User; 23 import org.apache.turbine.services.Service; 24 25 35 public interface SessionService extends Service 36 { 37 38 41 static final String SERVICE_NAME = "SessionService"; 42 43 48 Collection getActiveSessions(); 49 50 56 void addSession(HttpSession session); 57 58 64 void removeSession(HttpSession session); 65 66 77 boolean isUserLoggedIn(User user); 78 79 86 Collection getActiveUsers(); 87 88 94 User getUserFromSession(HttpSession session); 95 96 102 HttpSession getSession(String sessionId); 103 104 111 Collection getSessionsForUser(User user); 112 113 } 114 | Popular Tags |