org.zeroexchange.security
Class SSAuthorizedUserService

java.lang.Object
  extended by org.zeroexchange.security.SSAuthorizedUserService
All Implemented Interfaces:
AuthorizedUserService

public class SSAuthorizedUserService
extends Object
implements AuthorizedUserService

Spring Security - based implementation of the AuthorizedUserService.

Author:
black

Constructor Summary
SSAuthorizedUserService()
           
 
Method Summary
 User getCurrentUser()
          Returns the logged user.
 Integer getCurrentUserId()
          Returns PK of the logged user.
 String getCurrentUserName()
          Returns name of the logged user.
 boolean isLocalUser()
          Returns true if user logged using LocalCredential
 boolean isUserLogged()
          Returns true if current user is logged in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSAuthorizedUserService

public SSAuthorizedUserService()
Method Detail

isUserLogged

public boolean isUserLogged()
Returns true if current user is logged in.

Specified by:
isUserLogged in interface AuthorizedUserService

getCurrentUserName

public String getCurrentUserName()
Returns name of the logged user.

Specified by:
getCurrentUserName in interface AuthorizedUserService

getCurrentUserId

public Integer getCurrentUserId()
Returns PK of the logged user.

Specified by:
getCurrentUserId in interface AuthorizedUserService

getCurrentUser

public User getCurrentUser()
Returns the logged user.

Specified by:
getCurrentUser in interface AuthorizedUserService

isLocalUser

public boolean isLocalUser()
Description copied from interface: AuthorizedUserService
Returns true if user logged using LocalCredential

Specified by:
isLocalUser in interface AuthorizedUserService


Copyright © 2013. All Rights Reserved.