com.ibm.commerce.me.datatype
Class SessionInfo

java.lang.Object
  |
  +--com.ibm.commerce.me.datatype.SessionInfo
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SessionInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Stores information for the session

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright field
 
Constructor Summary
SessionInfo()
          SessionInfo constructor comment.
 
Method Summary
  TypedProperty getCustomSessionProperties()
          Gets custom session properties
 java.lang.String getDeptName()
          Gets the name of the dept.
 long getItemId()
          Gets the itemId (for 'display LogonMode')
 short getLogonMode()
          Gets the logon mode of the session info
 java.lang.String getOrderStatusUrl()
          Gets the order status URL
 java.lang.String getPostBackURL()
          Gets the postback URL
 java.lang.String getProcurementProtocolId()
          Gets the ProcurementProtocolId name
 java.lang.String getReqId()
          Gets the requisitioner id
 java.lang.String getReqName()
          Gets the requisitioner name
 java.lang.String getSessionId()
          Gets the session id
 java.lang.String getSessionType()
          Gets the type of the session info
 long getShoppingCartId()
          Gets the shoppingCartId of the session info
 void setCustomSessionProperties( TypedProperty sessionProperties)
          Sets custom session properties
 void setDeptName(java.lang.String deptName)
          Sets the name of the dept.
 void setItemId(long itemId)
          Sets the item Id (for 'display' LogonMode)
 void setLogonMode(short logonMode)
          Sets the type of the logon
 void setOrderStatusUrl(java.lang.String orderStatusUrl)
          Sets the order status URL
 void setPostBackURL(java.lang.String newPostBackURL)
          Sets the postback URL
 void setProcurementProtocolId(java.lang.String protocolId)
          Sets the Procurement Protocol Id
 void setReqId(java.lang.String newReqId)
          Sets the requisitioner id
 void setReqName(java.lang.String newReqName)
          Sets the requisitioner name
 void setSessionId(java.lang.String newSessionId)
          Sets the session id
 void setSessionType(java.lang.String newSessionType)
          Sets the type of the session info
 void setShoppingCartId(long shoppingCartId)
          Sets the shopping cart id
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM Copyright field
See Also:
Constant Field Values
Constructor Detail

SessionInfo

public SessionInfo()
SessionInfo constructor comment.
Method Detail

getCustomSessionProperties

public TypedProperty getCustomSessionProperties()
Gets custom session properties
Returns:
a set of NVP containing custom session attributes

getDeptName

public java.lang.String getDeptName()
Gets the name of the dept. to which requisitioner belongs
Returns:
the department name

getItemId

public long getItemId()
Gets the itemId (for 'display LogonMode')
Returns:
the item ID

getLogonMode

public short getLogonMode()
Gets the logon mode of the session info
Returns:
the logon mode for this session

getOrderStatusUrl

public java.lang.String getOrderStatusUrl()
Gets the order status URL
Returns:
URL to which this order status should be posted

getPostBackURL

public java.lang.String getPostBackURL()
Gets the postback URL
Returns:
URL to which this order approval should be posted

getProcurementProtocolId

public java.lang.String getProcurementProtocolId()
Gets the ProcurementProtocolId name
Returns:
the procurement protocol id

getReqId

public java.lang.String getReqId()
Gets the requisitioner id
Returns:
the requisitioner id

getReqName

public java.lang.String getReqName()
Gets the requisitioner name
Returns:
the name of the requisitioner

getSessionId

public java.lang.String getSessionId()
Gets the session id
Returns:
the session id

getSessionType

public java.lang.String getSessionType()
Gets the type of the session info
Returns:
the session info type

getShoppingCartId

public long getShoppingCartId()
Gets the shoppingCartId of the session info
Returns:
the shopping cart id inside this session

setCustomSessionProperties

public void setCustomSessionProperties(TypedProperty sessionProperties)
Sets custom session properties
Parameters:
sessionProperties - a set of NVP containing custom session attributes

setDeptName

public void setDeptName(java.lang.String deptName)
Sets the name of the dept. to which the requisitioner belongs
Parameters:
deptName - the new name of the department

setItemId

public void setItemId(long itemId)
Sets the item Id (for 'display' LogonMode)
Parameters:
itemId - the new item id

setLogonMode

public void setLogonMode(short logonMode)
Sets the type of the logon
Parameters:
logonMode - the new logon type

setOrderStatusUrl

public void setOrderStatusUrl(java.lang.String orderStatusUrl)
Sets the order status URL
Parameters:
orderStatusUrl - URL to which this order status should be posted

setPostBackURL

public void setPostBackURL(java.lang.String newPostBackURL)
Sets the postback URL
Parameters:
newPostBackURL - URL to which this order approval should be posted

setProcurementProtocolId

public void setProcurementProtocolId(java.lang.String protocolId)
Sets the Procurement Protocol Id
Parameters:
protocolId - The new protocol id

setReqId

public void setReqId(java.lang.String newReqId)
Sets the requisitioner id
Parameters:
newReqId - the new id for the requisitioner

setReqName

public void setReqName(java.lang.String newReqName)
Sets the requisitioner name
Parameters:
newReqName - the name of the requisitioner

setSessionId

public void setSessionId(java.lang.String newSessionId)
Sets the session id
Parameters:
newSessionId - the session id of the current session

setSessionType

public void setSessionType(java.lang.String newSessionType)
Sets the type of the session info

setShoppingCartId

public void setShoppingCartId(long shoppingCartId)
Sets the shopping cart id
Parameters:
shoppingCartId - the new shopping cart id

toString

public java.lang.String toString()
Returns a String that represents the value of this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the receiver