|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.RDBMUserIdentityStore
public class RDBMUserIdentityStore
SQL implementation for managing creation and removal of User Portal Data
Nested Class Summary | |
---|---|
protected class |
RDBMUserIdentityStore.PortalUser
|
protected class |
RDBMUserIdentityStore.TemplateUser
|
Field Summary | |
---|---|
(package private) static int |
DEBUG
|
private static java.lang.String |
defaultTemplateUserName
|
private static int |
guestUID
|
private static org.apache.commons.logging.Log |
log
|
private static java.lang.String |
templateAttrName
|
Constructor Summary | |
---|---|
RDBMUserIdentityStore()
|
Method Summary | |
---|---|
protected int |
addNewUser(int newUID,
IPerson person,
RDBMUserIdentityStore.TemplateUser templateUser)
|
protected static void |
commit(java.sql.Connection connection)
|
int |
getPortalUID(IPerson person)
getuPortalUID - return a unique uPortal key for a user. |
int |
getPortalUID(IPerson person,
boolean createPortalData)
Get the portal user ID for this person object. |
protected RDBMUserIdentityStore.PortalUser |
getPortalUser(java.lang.String userName)
Gets the PortalUser data store object for the specified user name. |
protected java.lang.String |
getTemplateName(IPerson person)
|
protected RDBMUserIdentityStore.TemplateUser |
getTemplateUser(java.lang.String templateUserName)
Gets the TemplateUser data store object for the specified template user name. |
void |
removePortalUID(int uPortalUID)
removeuPortalUID |
protected static void |
rollback(java.sql.Connection connection)
|
protected void |
updateUser(int userId,
IPerson person,
RDBMUserIdentityStore.TemplateUser templateUser)
|
protected boolean |
userHasSavedLayout(int userId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private static final java.lang.String defaultTemplateUserName
private static final java.lang.String templateAttrName
private static final int guestUID
static int DEBUG
Constructor Detail |
---|
public RDBMUserIdentityStore()
Method Detail |
---|
public int getPortalUID(IPerson person) throws java.lang.Exception
getPortalUID
in interface IUserIdentityStore
person
- the person object
java.lang.Exception
- if no user is found.public void removePortalUID(int uPortalUID) throws java.lang.Exception
removePortalUID
in interface IUserIdentityStore
uPortalUID
- integer key to uPortal data for a user
java.sql.SQLException
- exception if a sql error is encountered
java.lang.Exception
public int getPortalUID(IPerson person, boolean createPortalData) throws AuthorizationException
getPortalUID
in interface IUserIdentityStore
person
- createPortalData
- indicating whether to try to create all uPortal data for this user from template prototype
AuthorizationException
- if createPortalData is false and no user is found
or if a sql error is encounteredprotected static final void commit(java.sql.Connection connection)
protected static final void rollback(java.sql.Connection connection)
protected RDBMUserIdentityStore.PortalUser getPortalUser(java.lang.String userName) throws java.lang.Exception
userName
- The user's name
java.lang.Exception
protected java.lang.String getTemplateName(IPerson person)
protected RDBMUserIdentityStore.TemplateUser getTemplateUser(java.lang.String templateUserName) throws java.lang.Exception
templateUserName
- The template user's name
java.lang.Exception
protected boolean userHasSavedLayout(int userId) throws java.lang.Exception
java.lang.Exception
protected void updateUser(int userId, IPerson person, RDBMUserIdentityStore.TemplateUser templateUser) throws java.lang.Exception
java.lang.Exception
protected int addNewUser(int newUID, IPerson person, RDBMUserIdentityStore.TemplateUser templateUser) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |