net.pleso.auth.client
Class AuthController

java.lang.Object
  extended by net.pleso.auth.client.AuthController

public class AuthController
extends java.lang.Object

Controller of AuthenticationException. Call RPC server side for user authentication. Results return to IAuthResultListener implementation. Contains HashMap of authenticated objects (to which user has access).


Field Summary
static AuthController instance
          Single AuthController instance.
 
Method Summary
 IAuthResultListener getResultListener()
          Gets IAuthResultListener implementation.
 void getUserInfo()
          Gets authenticated user information.
 void isAuth()
          Check is user authenticated.
 boolean isAuthClassesDictionaryContains(java.lang.String className)
          Return is HashMap of authenticated objects contains this className.
 void loginUser(UserInfo user)
          Login user with login and password information.
 void logout()
          Logout user.
 void setResultListener(IAuthResultListener resultListener)
          Sets IAuthResultListener implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static AuthController instance
Single AuthController instance.

Method Detail

loginUser

public void loginUser(UserInfo user)
Login user with login and password information.

Parameters:
user - - user login and password information

logout

public void logout()
Logout user.


isAuth

public void isAuth()
Check is user authenticated.


getUserInfo

public void getUserInfo()
Gets authenticated user information.


getResultListener

public IAuthResultListener getResultListener()
Gets IAuthResultListener implementation.

Returns:
IAuthResultListener implementation

setResultListener

public void setResultListener(IAuthResultListener resultListener)
Sets IAuthResultListener implementation.

Parameters:
resultListener - IAuthResultListener implementation

isAuthClassesDictionaryContains

public boolean isAuthClassesDictionaryContains(java.lang.String className)
Return is HashMap of authenticated objects contains this className.

Parameters:
className - class name to check
Returns:
is HashMap of authenticated objects contains this className.


Copyright © 2006-2007 pleso.net crew All Rights Reserved.