|
||||||||||
| 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
|
| Constructor Summary | |
|---|---|
RDBMUserIdentityStore()
|
|
| Method Summary | |
|---|---|
protected int |
addNewUser(int newUID,
IPerson person,
RDBMUserIdentityStore.TemplateUser templateUser)
|
protected static void |
commit(Connection connection)
|
protected int |
getNewPortalUID(IPerson person)
|
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(String userName)
Gets the PortalUser data store object for the specified user name. |
String |
getPortalUserName(int uPortalUID)
Gets a portal user name that is associated with the specified portal ID. |
protected String |
getTemplateName(IPerson person)
|
protected RDBMUserIdentityStore.TemplateUser |
getTemplateUser(String templateUserName)
Gets the TemplateUser data store object for the specified template user name. |
String |
getUsername(IPerson person)
Return the username to be used for authorization (exit hook) |
void |
removePortalUID(int uPortalUID)
removeuPortalUID |
protected static void |
rollback(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 |
| Constructor Detail |
|---|
public RDBMUserIdentityStore()
| Method Detail |
|---|
public int getPortalUID(IPerson person)
throws Exception
getPortalUID in interface IUserIdentityStoreperson - the person object
Exception - if no user is found.
public void removePortalUID(int uPortalUID)
throws Exception
removePortalUID in interface IUserIdentityStoreuPortalUID - integer key to uPortal data for a user
SQLException - exception if a sql error is encountered
Exceptionpublic String getUsername(IPerson person)
getUsername in interface IUserIdentityStoreperson -
public int getPortalUID(IPerson person,
boolean createPortalData)
throws AuthorizationException
getPortalUID in interface IUserIdentityStoreperson - 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 encounteredpublic String getPortalUserName(int uPortalUID)
IUserIdentityStore
getPortalUserName in interface IUserIdentityStoreuPortalUID - The portal ID to find a user name for.
protected int getNewPortalUID(IPerson person)
throws Exception
Exceptionprotected static final void commit(Connection connection)
protected static final void rollback(Connection connection)
protected RDBMUserIdentityStore.PortalUser getPortalUser(String userName)
throws Exception
userName - The user's name
Exceptionprotected String getTemplateName(IPerson person)
protected RDBMUserIdentityStore.TemplateUser getTemplateUser(String templateUserName)
throws Exception
templateUserName - The template user's name
Exception
protected boolean userHasSavedLayout(int userId)
throws Exception
Exception
protected void updateUser(int userId,
IPerson person,
RDBMUserIdentityStore.TemplateUser templateUser)
throws Exception
Exception
protected int addNewUser(int newUID,
IPerson person,
RDBMUserIdentityStore.TemplateUser templateUser)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||