|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUDBConnector
Interface to a A-Select UDB connector.
Description:
Resolves a user profile by retrieving information from the user database.
Concurrency issues:
-
Method Summary | |
---|---|
java.lang.String |
getUserAttributes(java.lang.String sUserId,
java.lang.String sAuthSPId)
Retrieves the user attributes for the given user and AuthSP. |
java.util.Hashtable |
getUserProfile(java.lang.String sUserId)
Returns the user profile stored in user database. |
void |
init(java.lang.Object oConfigSection)
Initializes the the IUDBConnector. |
boolean |
isUserEnabled(java.lang.String sUserId)
Check if the user is enabled for A-Select. |
Method Detail |
---|
void init(java.lang.Object oConfigSection) throws ASelectUDBException
null
oConfigSection
- containing the configuration section for this
component
ASelectUDBException
- if the component could not be initialized by
missing config parameters or could not open a connectionjava.util.Hashtable getUserProfile(java.lang.String sUserId)
Item | Value |
---|---|
result_code |
Specifies an Errors.NO_ERROR for success or
an relevant A-Select Error. |
user_authsps |
Hashtable containing the AuthSP's that the user is registered for.
The hashtable contains an entry for each AuthSP and the value of the user attributes belonging to it. |
null
.
sUserId
- containing the user id by which the user is known in the
user database
Hashtable
containing the user information (authsp
information and result code)boolean isUserEnabled(java.lang.String sUserId) throws ASelectUDBException
sUserId != null
sUserId
- the user to check.
true
if user is A-Select enabled,
otherwise false.
ASelectUDBException
- If retrieving information from UDB fails.java.lang.String getUserAttributes(java.lang.String sUserId, java.lang.String sAuthSPId) throws ASelectUDBException
sUserId != null
sAuthSPId != null
sUserId
- The user ID.sAuthSPId
- The AuthSP ID
ASelectUDBException
- If retrieving information from UDB fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |