|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.server.udb.sasdb.SASDBConnector
public class SASDBConnector
SASDB UDB connection.
Description:
The SASDB first checks if a user exists in the configured database.
If the user doesn't exist in that database, default user attributes will be
generated for the authsps configured in the SASDB config section.
Concurrency issues:
-
Constructor Summary | |
---|---|
SASDBConnector()
|
Method Summary | |
---|---|
java.lang.String |
getUserAttributes(java.lang.String sUserId,
java.lang.String sAuthSPId)
Retrieve the A-Select user attributes. |
java.util.Hashtable |
getUserProfile(java.lang.String sUserId)
Resolves the user attributes for the supplied user id. |
void |
init(java.lang.Object oConfigSection)
Reads the SASSB configuration and initializes the SASDB udb storage. |
boolean |
isUserEnabled(java.lang.String sUserId)
Check if user is A-Select enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SASDBConnector()
Method Detail |
---|
public void init(java.lang.Object oConfigSection) throws ASelectUDBException
init
in interface IUDBConnector
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 connectionIUDBConnector.init(java.lang.Object)
public java.util.Hashtable getUserProfile(java.lang.String sUserId)
getUserProfile
in interface IUDBConnector
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)IUDBConnector.getUserProfile(java.lang.String)
public java.lang.String getUserAttributes(java.lang.String sUserId, java.lang.String sAuthSPId) throws ASelectUDBException
getUserAttributes
in interface IUDBConnector
sUserId
- The user ID.sAuthSPId
- The AuthSP ID
ASelectUDBException
- If database fails.IUDBConnector.getUserAttributes(java.lang.String, java.lang.String)
public boolean isUserEnabled(java.lang.String sUserId) throws ASelectUDBException
isUserEnabled
in interface IUDBConnector
sUserId
- the user to check.
true
if user is A-Select enabled,
otherwise false.
ASelectUDBException
- If database fails.IUDBConnector.isUserEnabled(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |