com.ibm.commerce.me.datatype
Class CIDataImpl

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

public class CIDataImpl
extends java.lang.Object
implements CIData, java.io.Serializable

Encapsulate the commerce Integrator login and purchase order data. This class is used by the PunchOutSetupCmd and BatchOrderRequestCmd to store information of purcahse order request including the shopping cart information, credential, and data from the purcahse order request. Creation date: (4/5/01 5:14:33 PM)

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright field
 
Constructor Summary
CIDataImpl()
          CIDataImpl default constructor
CIDataImpl( CommandContext cmdContext)
          CIDataImpl constructor with the command context as an input parameter.
 
Method Summary
  Address getBillTo()
          Gets the bill to address
  Credentials getBuyerCredentials()
          Gets the buyer credentials
 java.lang.String getDepartment()
          Gets the department name
 java.lang.String getDeptExtrinsic()
          Gets the department extrinsic
  TypedProperty getLogonData()
          Gets the logon data
  Credentials getMarketPlaceCredentials()
          Gets the marketPlace credentials
  TypedProperty getPOData()
          Gets the purchase order data
  PurchaseOrderHeader getPOHeader()
          Gets the purchase order request header
 java.util.Vector getPOItems()
          Gets the line items in the purchase order request
 java.lang.String getProtocolName()
          Gets the protocol name
 java.lang.String getProtocolVersion()
          Gets the protocol version
 java.lang.String getRequisitioner()
          Gets the name of the requisitioner
  SessionInfo getSessionInfo()
          Gets the session information
  Credentials getSupplierCredentials()
          Gets the supplier credentials
 java.lang.String getUserExtrinsic()
          Gets the userExtrinsic
 void setLogonData( TypedProperty p)
          Sets the logon data and process the input parameters
 void setPOData( TypedProperty p)
          Sets the purchase order data and process the input parameters
 void setProtocolName(java.lang.String protocol)
          Update the protocol name
 void setProtocolVersion(java.lang.String version)
          Update the protocol version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

CIDataImpl

public CIDataImpl()
CIDataImpl default constructor

CIDataImpl

public CIDataImpl(CommandContext cmdContext)
CIDataImpl constructor with the command context as an input parameter.
Parameters:
cmdContext - the command context from the calling command so that additional parameters (store specific) can be retrieved.
Method Detail

getBillTo

public Address getBillTo()
Gets the bill to address
Specified by:
getBillTo in interface CIData
Returns:
the billing address

getBuyerCredentials

public Credentials getBuyerCredentials()
Gets the buyer credentials
Specified by:
getBuyerCredentials in interface CIData
Returns:
the buyer credential information

getDepartment

public java.lang.String getDepartment()
Gets the department name
Specified by:
getDepartment in interface CIData
Returns:
department name

getDeptExtrinsic

public java.lang.String getDeptExtrinsic()
Gets the department extrinsic
Returns:
department extrinsic

getLogonData

public TypedProperty getLogonData()
Gets the logon data
Specified by:
getLogonData in interface CIData
Returns:
NVP for the logon data

getMarketPlaceCredentials

public Credentials getMarketPlaceCredentials()
Gets the marketPlace credentials
Specified by:
getMarketPlaceCredentials in interface CIData
Returns:
information for the market place credential

getPOData

public TypedProperty getPOData()
Gets the purchase order data
Specified by:
getPOData in interface CIData
Returns:
NVP for the purchase order data

getPOHeader

public PurchaseOrderHeader getPOHeader()
Gets the purchase order request header
Specified by:
getPOHeader in interface CIData
Returns:
an instance of PurchaseOrderHeader containing the data retrieved from the purcahse order request

getPOItems

public java.util.Vector getPOItems()
Gets the line items in the purchase order request
Specified by:
getPOItems in interface CIData
Returns:
vector of line items in the purchase order request

getProtocolName

public java.lang.String getProtocolName()
Gets the protocol name
Specified by:
getProtocolName in interface CIData
Returns:
protocol name

getProtocolVersion

public java.lang.String getProtocolVersion()
Gets the protocol version
Specified by:
getProtocolVersion in interface CIData
Returns:
protocol version

getRequisitioner

public java.lang.String getRequisitioner()
Gets the name of the requisitioner
Specified by:
getRequisitioner in interface CIData
Returns:
requisitioner name

getSessionInfo

public SessionInfo getSessionInfo()
Gets the session information
Specified by:
getSessionInfo in interface CIData
Returns:
session information

getSupplierCredentials

public Credentials getSupplierCredentials()
Gets the supplier credentials
Specified by:
getSupplierCredentials in interface CIData
Returns:
supplier credential information

getUserExtrinsic

public java.lang.String getUserExtrinsic()
Gets the userExtrinsic

setLogonData

public void setLogonData(TypedProperty p)
Sets the logon data and process the input parameters
Specified by:
setLogonData in interface CIData
Parameters:
p - TypedProperty which contains the NVP of the input parameters

setPOData

public void setPOData(TypedProperty p)
               throws java.text.ParseException
Sets the purchase order data and process the input parameters
Specified by:
setPOData in interface CIData
Parameters:
p - TypedProperty which contains the NVP of the purchase order information
java.text.ParseException

setProtocolName

public void setProtocolName(java.lang.String protocol)
Update the protocol name
Parameters:
protocol - the new protocol

setProtocolVersion

public void setProtocolVersion(java.lang.String version)
Update the protocol version
Parameters:
version - The new protocol version