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
    This class encapsulates the login and purchase order data. This class is used by the PunchOutSetupCmd and BatchOrderRequestCmd to store information on purchase order requests. This includes shopping cart information, credentials, and data from the purchase order request.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • CIDataImpl

        public CIDataImpl()
        The CIDataImpl default constructor calls its parents constructor.
      • CIDataImpl

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

      • getDepartment

        public java.lang.String getDepartment()
        This method gets the department name.
        Specified by:
        getDepartment in interface CIData
        Returns:
        department name
      • getDeptExtrinsic

        public java.lang.String getDeptExtrinsic()
        This method gets the department extrinsic.
        Returns:
        department extrinsic
      • getLogonData

        public TypedProperty getLogonData()
        This method gets the logon data.
        Specified by:
        getLogonData in interface CIData
        Returns:
        name-value pair for the logon data
      • getPOData

        public TypedProperty getPOData()
        This method gets the purchase order data.
        Specified by:
        getPOData in interface CIData
        Returns:
        name-value pair for the purchase order data
      • getPOItems

        public java.util.Vector getPOItems()
        This method gets a Vector of 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()
        This method gets the protocol name.
        Specified by:
        getProtocolName in interface CIData
        Returns:
        protocol name
      • getProtocolVersion

        public java.lang.String getProtocolVersion()
        This method gets the protocol version.
        Specified by:
        getProtocolVersion in interface CIData
        Returns:
        protocol version
      • getRequisitioner

        public java.lang.String getRequisitioner()
        This method gets the name of the requisitioner.
        Specified by:
        getRequisitioner in interface CIData
        Returns:
        requisitioner name
      • getUserExtrinsic

        public java.lang.String getUserExtrinsic()
        This method gets the user extrinsic information.
        Returns:
        user extrinsic information
      • setLogonData

        public void setLogonData(TypedProperty p)
        This method sets the logon data and process the input parameters.
        Specified by:
        setLogonData in interface CIData
        Parameters:
        p - TypedProperty which contains the name-value pair of the input parameters
      • setPOData

        public void setPOData(TypedProperty p)
                       throws java.text.ParseException
        This method sets the purchase order data and process the input parameters.
        Specified by:
        setPOData in interface CIData
        Parameters:
        p - TypedProperty which contains the name-value pair of the purchase order information
        Throws:
        ParseException - Raised when this method cannot convert the currency amount to BigDecimal data type
      • setProtocolName

        public void setProtocolName(java.lang.String protocol)
        This method updates the protocol name.
        Parameters:
        protocol - the new protocol
      • setProtocolVersion

        public void setProtocolVersion(java.lang.String version)
        This method updates the protocol version.
        Parameters:
        version - the new protocol version