openfuture.bugbase.domain
Class LoginManager

java.lang.Object
  |
  +--openfuture.bugbase.domain.LoginManager

public class LoginManager
extends java.lang.Object

Manager handling logins into Bug Base.

Created: Mon Jul 02 21:26:02 2001

Version:
$Revision: 1.4 $
Author:
Wolfgang Reissenberger

Constructor Summary
LoginManager(BugBaseServletClient proxy, int timeout)
          Creates a new LoginManager instance.
 
Method Summary
 BugBaseServletClient getServletProxy()
          Get the value of servletProxy.
 int getTimeout()
          Get the value of timeout.
 boolean isValidUser(java.lang.String userid)
          Check, if the userid has logged in and its last access is not more than timeout seconds ago.
 User login(Login login)
          Login into Bug Base.
 void logoff(java.lang.String userid)
          Log Off from Bug Base.
 void setServletProxy(BugBaseServletClient v)
          Set the value of servletProxy.
 void setTimeout(int v)
          Set the value of timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginManager

public LoginManager(BugBaseServletClient proxy,
                    int timeout)
Creates a new LoginManager instance.
Parameters:
proxy - a proxy to BugBaseServlet.
timeout - time in seconds after last access a login gets invalid.
Method Detail

login

public User login(Login login)
           throws I18NException
Login into Bug Base.
Parameters:
login - a login object
Returns:
the user data or null, if the login failed.

logoff

public void logoff(java.lang.String userid)
Log Off from Bug Base.
Parameters:
userid - userid to log off

isValidUser

public boolean isValidUser(java.lang.String userid)
Check, if the userid has logged in and its last access is not more than timeout seconds ago.
Parameters:
userid - the userid
Returns:
true, if the userid has logged in and its last access is not more than timeout seconds ago. If userid is null, false ist returned.

getServletProxy

public BugBaseServletClient getServletProxy()
Get the value of servletProxy.
Returns:
value of servletProxy.

setServletProxy

public void setServletProxy(BugBaseServletClient v)
Set the value of servletProxy.
Parameters:
v - Value to assign to servletProxy.

getTimeout

public int getTimeout()
Get the value of timeout.
Returns:
value of timeout.

setTimeout

public void setTimeout(int v)
Set the value of timeout.
Parameters:
v - Value to assign to timeout.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.