|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.dataengine.security.http.SignOnReceipt
A SignOnReceipt is created when a user signs on to a secured application. It is used to store information about how the user signed on.
| Field Summary | |
static String |
USER_ID
|
| Constructor Summary | |
SignOnReceipt(ISignOn pSignOn)
SignOnReceipt constructor |
|
| Method Summary | |
long |
getElapsedTime()
Gets the time elapsed since this method was last invoked. |
String |
getFirstName()
Gets the name for this user, which should uniquely identify the user in the current context. |
String |
getGlobalSignOnValue()
Returns the key value that is stored as a shared session attribute of either connection alias, or operation id If mGlobalSignOnKey is not set, this SignOnReceipt will not be stored in the Shared Session We should be storeing OperatingSystemSignon Receipts keyed by System Alias, and SQLOperationSignOn Receipts by Operation This is used for single signon to multiple applications Creation date: (8/14/2003 6:23:57 PM) |
int |
getId()
Gets the id of the application that was signed on to |
String |
getLastName()
Gets the name for this user, which should uniquely identify the user in the current context. |
String |
getName()
Gets the name of the user. |
int |
getOwnerId()
Insert the method's description here. |
Row |
getPropertiesRow()
Gets the row stored in this SignOnReceipt during sign on. |
String |
getPropertyDisplayValue(String fieldName)
Gets a Field's value from a row stored in this SignOnReceipt during sign on. |
Object |
getPropertyValue(String fieldName)
Gets a Field's value from a row stored in this SignOnReceipt during sign on. |
String |
getPropertyValueAsString(String fieldName)
Gets a Field's value from a row stored in this SignOnReceipt during sign on. |
int |
getSecurityLevel()
Gets the security level of the user |
ISignOn |
getSignOn()
Gets the SignOn object for this receipt |
long |
getSignOnTimestamp()
Gets the sign on time |
String |
getSystemAlias()
Gets the system alias that was signed on to. |
int |
getTimeoutSeconds()
Gets the number of seconds for which this sign on can remain inactive and still be valid |
long |
getTimestamp()
Gets the sign on time |
String |
getUserId()
Gets the userId that was used to sign on |
String |
getUserMode()
Gets the MODE of the user. |
String |
getUserName()
Gets the name of the user. |
Object |
getUserSQLValue(String key)
Gets the value of the specified user field as an Object for use as an SQL parameter |
Object |
getUserValue(String key)
Gets the value of the specified user field as an Object |
Object |
getValueByFieldClass(Class pClass)
|
Object |
getValueByUsageId(int usageId)
|
boolean |
handleRowEvent(RowEvent pEvent)
This will handle the RowEvent accordingly (7/11/2002 1:37:05 PM) |
boolean |
hasSecurityLevel()
Method that can be used to determine if the user has a security level. |
boolean |
isAdmin()
!!A WK (9/4/2002 3:26:12 PM) Admin has not yet been implemented. |
boolean |
isExpired()
Tests if this receipt is still valid or if it has expired. |
boolean |
isPJAdmin()
!!A WK (9/4/2002 3:26:12 PM) PJ Admin has not yet been implemented. |
void |
setGlobalSignOnKey(byte newGlobalSignOnKey)
Must be set to one of the values stored in ISignOn. |
void |
setId(int newId)
Sets the id of the application that was signed on to |
void |
setOwnerId(int newOwnerId)
Insert the method's description here. |
void |
setPropertiesRow(Row row)
Sets the row stored in this SignOnReceipt during sign on. |
void |
setSystemAlias(String newSystemAlias)
Sets the system alias that was signed on to. |
void |
setTimeoutSeconds(int seconds)
Sets the number of seconds for which this sign on is valid |
void |
setUserId(String newUserId)
Sets the userId that was used to sign on |
void |
setUserMode(String pUserMode)
Sets the MODE of this user |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent arg1)
Invoked whenever the receipt is added to a session |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent pEvent)
Invoked whenever the receipt is removed from a session |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
| Field Detail |
public static final String USER_ID
| Constructor Detail |
public SignOnReceipt(ISignOn pSignOn)
| Method Detail |
public long getElapsedTime()
public String getFirstName()
getFirstName in interface IUserpublic String getGlobalSignOnValue()
public int getId()
public String getLastName()
getLastName in interface IUserpublic String getName()
getName in interface Principalpublic int getOwnerId()
getOwnerId in interface IUserpublic Row getPropertiesRow()
public String getPropertyDisplayValue(String fieldName)
public Object getPropertyValue(String fieldName)
public String getPropertyValueAsString(String fieldName)
public int getSecurityLevel()
getSecurityLevel in interface IUserpublic final ISignOn getSignOn()
public long getSignOnTimestamp()
public String getSystemAlias()
getSystemAlias in interface IUserpublic int getTimeoutSeconds()
public long getTimestamp()
public String getUserId()
public String getUserName()
getUserName in interface IUser
public Object getUserSQLValue(String key)
throws CMException
IUser
getUserSQLValue in interface IUserCMExceptionpublic Object getUserValue(String key)
IUser
getUserValue in interface IUser
public Object getValueByFieldClass(Class pClass)
throws CMException
CMException
public Object getValueByUsageId(int usageId)
throws CMException
getValueByUsageId in interface IUserCMExceptionpublic boolean handleRowEvent(RowEvent pEvent)
IRowEventListener
handleRowEvent in interface IRowEventListenerpEvent - planetj.database.RowEvent
IRowEventListenerpublic boolean hasSecurityLevel()
hasSecurityLevel in interface IUserpublic boolean isAdmin()
isAdmin in interface IUserpublic boolean isExpired()
public boolean isPJAdmin()
isPJAdmin in interface IUserpublic void setGlobalSignOnKey(byte newGlobalSignOnKey)
newGlobalSignOnKey - bytepublic void setId(int newId)
public void setOwnerId(int newOwnerId)
newOwnerId - intpublic void setPropertiesRow(Row row)
public void setSystemAlias(String newSystemAlias)
public void setTimeoutSeconds(int seconds)
public void setUserId(String newUserId)
public void valueBound(javax.servlet.http.HttpSessionBindingEvent arg1)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent pEvent)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerpublic String getUserMode()
IUser
getUserMode in interface IUserIUser.getUserMode()public void setUserMode(String pUserMode)
IUser
setUserMode in interface IUserIUser.setUserMode(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||