|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.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 java.lang.String |
USER_ID
|
Constructor Summary | |
SignOnReceipt(ISignOn pSignOn)
SignOnReceipt constructor |
Method Summary | |
java.lang.String |
checkForSpecialWindowsParam(java.lang.String paramKey)
|
java.lang.Object |
getDisplayValueByUsageId(int usageId)
Get a display value from this user for the given usage id. |
long |
getElapsedTime()
Gets the time elapsed since this method was last invoked. |
java.lang.String |
getFirstName()
Gets the name for this user, which should uniquely identify the user in the current context. |
java.lang.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 |
java.lang.String |
getLastName()
Gets the name for this user, which should uniquely identify the user in the current context. |
java.lang.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. |
java.lang.String |
getPropertyDisplayValue(java.lang.String fieldName)
Gets a Field's value from a row stored in this SignOnReceipt during sign on. |
java.lang.Object |
getPropertyValue(java.lang.String fieldName)
Gets a Field's value from a row stored in this SignOnReceipt during sign on. |
java.lang.String |
getPropertyValueAsString(java.lang.String fieldName)
Gets a Field's value from a row stored in this SignOnReceipt during sign on. |
java.util.Map |
getReplacementLibraries()
Get the library list for the current user. |
int |
getSecurityLevel()
Gets the security level of the user |
ISignOn |
getSignOn()
Gets the SignOn object for this receipt |
java.util.Map |
getSignOnReplacementLibraries()
Gets the replacement libraries as they existed at signon time |
long |
getSignOnTimestamp()
Gets the sign on time |
java.lang.String |
getSignOnUserLibrary()
Gets the user library in use at signon time |
java.lang.String |
getSystemAlias()
Gets the system alias that was signed on to. |
int |
getThemeId()
Gets the theme id of this user |
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 |
java.lang.Object |
getUserDisplayValue(java.lang.String key)
Gets the display value from the user for the specified key |
java.lang.String |
getUserId()
Gets the userId that was used to sign on |
java.lang.String |
getUserMode()
Gets the MODE of the user. |
java.lang.String |
getUserName()
Gets the name of the user. |
java.lang.Object |
getUserSQLValue(java.lang.String key)
Gets the value of the specified user field as an Object for use as an SQL parameter |
java.lang.Object |
getUserValue(java.lang.String key)
Gets the value of the specified user field as an Object |
java.lang.Object |
getValueByFieldClass(java.lang.Class pClass)
|
java.lang.Object |
getValueByUsageId(int usageId)
Get a value from this user for the given usage id. |
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. |
protected boolean |
isIgnoreUnbind()
Gets whether or not session unbind events will be ignored |
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 |
protected void |
setIgnoreUnbind(boolean newIgnoreUnbind)
Sets whether or not session unbind events will be ignored |
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 |
setPropertyValue(java.lang.String fieldName,
java.lang.Object value)
Sets the given value on the property row if there is one. |
void |
setSystemAlias(java.lang.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(java.lang.String newUserId)
Sets the userId that was used to sign on |
void |
setUserMode(java.lang.String pUserMode)
Sets the MODE of this user |
void |
setUserValue(java.lang.String key,
java.lang.Object value)
sets the value of the specified user field as an Object |
void |
valueBound(HttpSessionBindingEvent arg1)
Invoked whenever the receipt is added to a session |
void |
valueUnbound(HttpSessionBindingEvent pEvent)
Invoked whenever the receipt is removed from a session |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
Field Detail |
public static final java.lang.String USER_ID
Constructor Detail |
public SignOnReceipt(ISignOn pSignOn)
Method Detail |
public java.lang.String checkForSpecialWindowsParam(java.lang.String paramKey)
public java.lang.Object getDisplayValueByUsageId(int usageId) throws CMException
IUser
getDisplayValueByUsageId
in interface IUser
CMException
public long getElapsedTime()
public java.lang.String getFirstName()
getFirstName
in interface IUser
public java.lang.String getGlobalSignOnValue()
public int getId()
public java.lang.String getLastName()
getLastName
in interface IUser
public java.lang.String getName()
getName
in interface java.security.Principal
public int getOwnerId()
getOwnerId
in interface IUser
public Row getPropertiesRow()
getPropertiesRow
in interface IUser
public java.lang.String getPropertyDisplayValue(java.lang.String fieldName)
public java.lang.Object getPropertyValue(java.lang.String fieldName)
public java.lang.String getPropertyValueAsString(java.lang.String fieldName)
public java.util.Map getReplacementLibraries()
getReplacementLibraries
in interface IUser
public int getSecurityLevel()
getSecurityLevel
in interface IUser
public final ISignOn getSignOn()
public java.util.Map getSignOnReplacementLibraries()
public long getSignOnTimestamp()
public java.lang.String getSignOnUserLibrary()
public java.lang.String getSystemAlias()
getSystemAlias
in interface IUser
public int getThemeId()
getThemeId
in interface IUser
public int getTimeoutSeconds()
public long getTimestamp()
public java.lang.Object getUserDisplayValue(java.lang.String key)
IUser
getUserDisplayValue
in interface IUser
public java.lang.String getUserId()
public java.lang.String getUserName()
getUserName
in interface IUser
public java.lang.Object getUserSQLValue(java.lang.String key) throws CMException
IUser
getUserSQLValue
in interface IUser
CMException
public java.lang.Object getUserValue(java.lang.String key)
IUser
getUserValue
in interface IUser
public java.lang.Object getValueByFieldClass(java.lang.Class pClass) throws CMException
CMException
public java.lang.Object getValueByUsageId(int usageId) throws CMException
IUser
getValueByUsageId
in interface IUser
CMException
public boolean handleRowEvent(RowEvent pEvent)
IRowEventListener
handleRowEvent
in interface IRowEventListener
pEvent
- planetj.database.RowEvent
IRowEventListener
public boolean hasSecurityLevel()
hasSecurityLevel
in interface IUser
public boolean isAdmin()
isAdmin
in interface IUser
public boolean isExpired()
protected boolean isIgnoreUnbind()
public boolean isPJAdmin()
isPJAdmin
in interface IUser
public void setGlobalSignOnKey(byte newGlobalSignOnKey)
newGlobalSignOnKey
- bytepublic void setId(int newId)
protected void setIgnoreUnbind(boolean newIgnoreUnbind)
public void setOwnerId(int newOwnerId)
newOwnerId
- intpublic void setPropertiesRow(Row row)
setPropertiesRow
in interface IUser
row
- public void setPropertyValue(java.lang.String fieldName, java.lang.Object value) throws CMException
CMException
public void setSystemAlias(java.lang.String newSystemAlias)
public void setTimeoutSeconds(int seconds)
public void setUserId(java.lang.String newUserId)
public void valueBound(HttpSessionBindingEvent arg1)
public void valueUnbound(HttpSessionBindingEvent pEvent)
public java.lang.String getUserMode()
IUser
getUserMode
in interface IUser
IUser.getUserMode()
public void setUserMode(java.lang.String pUserMode)
IUser
setUserMode
in interface IUser
IUser.setUserMode(java.lang.String)
public void setUserValue(java.lang.String key, java.lang.Object value) throws CMException
IUser
setUserValue
in interface IUser
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |