com.ibm.commerce.me.commands

Interface RegisterRequisitionerCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    RegisterRequisitionerCmdImpl


    public interface RegisterRequisitionerCmd
    extends TaskCommand
    This is the interface of RegisterRequisitionerCmd. It retrieves the requisitioning user if they are already registered, and registers them as a new requisitioning user if they are not registered. The RegisterRequisitioner command is called by the PunchOutSetup and BatchOrderRequest commands after successfully authenticating the PunchOutSetupRequest and PurchaseOrderRequest messages.
    • Field Detail

      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class name.
        See Also:
        Constant Field Values
    • Method Detail

      • getUsersId

        java.lang.Long getUsersId()
        This method sets the userId.
        Parameters:
        long - userId void setUsersId(long usersId); /** This method gets the userId.
        Returns:
        userId The user ID.
      • isRegisteredSuccessfully

        boolean isRegisteredSuccessfully()
        This method is called to check whether the registration of the requisitioner is successful. This method must be called after the command has been completed.
        Returns:
        boolean true if the requisitioner is registered successfully; false otherwise
      • setBuyerId

        void setBuyerId(long buyerId)
        This method sets the buyerId (ID of the buyer organization).
        Parameters:
        buyerId - The buyer organization ID.
      • setDeptName

        void setDeptName(java.lang.String deptName)
        This method sets the department name (if any) to which the requisitioner belongs to.
        Parameters:
        deptName - The department name.
      • setPostbackUrl

        void setPostbackUrl(java.lang.String postbackUrl)
        This method sets the URL for Postback.
        Parameters:
        postbackUrl - The postback URL
      • setProtocolId

        void setProtocolId(java.lang.Integer protocol)
        This method sets the protocolId.
        Parameters:
        protocol - The protocol ID.
      • setReqId

        void setReqId(java.lang.String reqId)
        This method sets the requisitioner ID.
        Parameters:
        reqId - The requisitioner ID
      • setSessionId

        void setSessionId(java.lang.String sessionId)
        This method sets the buyer cookie.
        Parameters:
        sessionId - The buyer cookie
      • setSessionInfo

        void setSessionInfo(SessionInfo sessionInfo)
        This method sets the sessionInfo
        Parameters:
        sessionInfo - The com.ibm.commerce.me.datatype.SessionInfo.
        See Also:
        com.ibm.commerce.me.datatype
      • setSupplierId

        void setSupplierId(long supplierId)
        This method sets the supplierId.
        Parameters:
        supplierId - The supplier ID.