com.uwyn.rife.authentication.credentialsmanagers
Interface IdentifiableUsersManager

All Known Subinterfaces:
RoleUsersManager
All Known Implementing Classes:
DatabaseUsers, MemoryUsers

public interface IdentifiableUsersManager

This interface defines the methods that are needed for the Identified element to be able to setup a RoleUserIdentity instance for each authenticated user for whom the Identified element is executed.

Since:
1.6
Version:
$Revision: 3722 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:
Identified, RoleUserIdentity

Method Summary
 RoleUserAttributes getAttributes(String login)
          Retrieves the attributes of a particular user according to its unique login.
 String getLogin(long userId)
          Retrieves the login of a particular user according to its unique ID.
 

Method Detail

getAttributes

RoleUserAttributes getAttributes(String login)
                                 throws CredentialsManagerException
Retrieves the attributes of a particular user according to its unique login.

Parameters:
login - the login of the user whose attributes need to be retrieved
Returns:
the requested user attributes; or

null if the user couldn't be found

Throws:
CredentialsManagerException - when a unexpected error occurred during the retrieval of the user attributes
Since:
1.6

getLogin

String getLogin(long userId)
                throws CredentialsManagerException
Retrieves the login of a particular user according to its unique ID.

Parameters:
userId - the ID of the user whose login will be retrieved
Returns:
the requested user login; or

null if the user couldn't be found

Throws:
CredentialsManagerException - when a unexpected error occurred during the retrieval of the user login
Since:
1.6


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.