com.ibm.commerce.me.commands

Class BatchOrderRequestCmdImpl

    • Constructor Detail

      • BatchOrderRequestCmdImpl

        public BatchOrderRequestCmdImpl()
        Default Constructor
    • Method Detail

      • getAuthType

        public java.lang.Integer getAuthType()
        Gets the authentication type
        Returns:
        an integer indicating the authentication type
      • getBuyerId

        public java.lang.Long getBuyerId()
        Gets the buyer id
        Returns:
        id of the buyer
      • getContractId

        public java.lang.Long getContractId()
        Gets the contract id
        Returns:
        the contract id
      • getOrganizationUnitId

        public java.lang.Long getOrganizationUnitId()
        Gets the organization unit id
        Returns:
        the id identifying the organization
      • getProtocolId

        public java.lang.Integer getProtocolId()
        Gets the protocol id
        Returns:
        id identifying the protocol
      • getRequisitionerId

        public java.lang.String getRequisitionerId()
        Gets the requisitioner id
        Returns:
        requisitioner id
      • getSupplierId

        public java.lang.Long getSupplierId()
        Gets the supplier id
        Returns:
        the supplier id
      • isGeneric

        public boolean isGeneric()
        A user is generic till he logs on, so returns true.
        Specified by:
        isGeneric in interface ControllerCommand
        Overrides:
        isGeneric in class ControllerCommandImpl
        Parameters:
        none -
        Returns:
        true if this command can be executed by a generic user false if this command cannot be executed by a generic user
      • performExecute

        public void performExecute()
                            throws ECException
        If the checkParamateres are OK, authenticate the buyer and supplier credentials. If the order is solicit order get the user id from the shopping cart id and change the shopping cart status from I to H. or else register the user.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        CommandException.
        ECException
      • setAuthType

        public void setAuthType(java.lang.Integer anAuthType)
        Sets the authentication type
        Parameters:
        anAuthType - type of authentication mode
      • setBuyerId

        public void setBuyerId(java.lang.Long aBuyerId)
        Sets the buyer organization id
        Parameters:
        aBuyerId - the buyer id
      • setContractId

        public void setContractId(java.lang.Long aContractId)
        Sets the contract id
        Parameters:
        aContractId - the contract id
      • setOrganizationUnitId

        public void setOrganizationUnitId(java.lang.Long orgUnit)
        Sets the organization unit id
        Parameters:
        orgUnit - the organization unit id
      • setProtocolId

        public void setProtocolId(java.lang.Integer aProtocolId)
        Sets the protocol id
        Parameters:
        aProtocolId - the protocol id
      • setRequisitionerId

        public void setRequisitionerId(java.lang.String aRequisitionerId)
        Sets the requisitioner id
        Parameters:
        aRequisitionerId - the requisitioner id
      • setStoreId

        public void setStoreId(java.lang.Integer aStoreId)
        Sets the store id
        Parameters:
        aStoreId - the store id
      • setSupplierId

        public void setSupplierId(java.lang.Long aSupplierId)
        Sets the supplier id
        Parameters:
        aSupplierId - the supplier id