psdi.app.common.purchasing.ecomm

Class ECommHelper

  • java.lang.Object
    • java.rmi.server.RemoteObject
      • java.rmi.server.RemoteServer
        • java.rmi.server.UnicastRemoteObject
          • psdi.app.common.purchasing.ecomm.ECommHelper
  • All Implemented Interfaces:
    java.io.Serializable, java.rmi.Remote, ECommHelperRemote


    public class ECommHelper
    extends java.rmi.server.UnicastRemoteObject
    implements ECommHelperRemote
    A helper object to handle the creation of MRLines and WPOperation from a Product Description Collection. Each ECommHelper object maintains a local reference of transaction ID. The transaction ID is used in obtaining the Product Description Collection. This collection is usually available in the B2B Server. The UI would have already requested the collection using the transID and the UI passes the transactionID to this object which in turn maintains a local reference of the transactionID. Hence each instance of this object maintains a unique value of the transactionID. Once the collection is obtained, the collection is looped through to create either MRLines or WPOperations.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.rmi.server.RemoteObject

        ref
    • Constructor Summary

      Constructors 
      Constructor and Description
      ECommHelper()
      Empty constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void createMRLineFromProdDescCollection()
      Service method to create MRLines from the Product Description Collection.
      void createWPMaterialFromProdDescCollection()
      Service method to create WPMaterialLines from the Product Description Collection.
      ECatalogURL getCatalogURL(java.lang.String catalogName, UserInfo ui, java.lang.String returnURL)
      Returns the catalog URL.
      void processAribaCart(java.lang.String cxmlCart) 
      boolean returncart()
      Calls the proper method to return the cart back to the calling application
      void setMRReference(MboRemote mrRemote)
      Stores the reference of the MR that created an instance of this object.
      void setWOReference(MboRemote woRemote)
      Stores the reference of the WO that created an instance of this object.
      • Methods inherited from class java.rmi.server.UnicastRemoteObject

        clone, exportObject, exportObject, exportObject, unexportObject
      • Methods inherited from class java.rmi.server.RemoteServer

        getClientHost, getLog, setLog
      • Methods inherited from class java.rmi.server.RemoteObject

        equals, getRef, hashCode, toString, toStub
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ECommHelper

        public ECommHelper()
                    throws java.rmi.RemoteException
        Empty constructor.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • createMRLineFromProdDescCollection

        public void createMRLineFromProdDescCollection()
                                                throws MXException,
                                                       java.rmi.RemoteException
        Service method to create MRLines from the Product Description Collection. The Product Description Collection is obtained from the B2B server using the transaction ID. For each Product Description in the Product Description Collection an MRLine is created. The following values are obtained from the Prod. Description Collection and set on the MRLine.
        • catalogcode
        • currencycode
        • description
        • manufacturer
        • modelnum
        • orderunit
        • qty
        • remarks
        • requireddate
        • unitcost
        • vendor
        Specified by:
        createMRLineFromProdDescCollection in interface ECommHelperRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ECommHelper.createMRLineFromProdDescCollection()
      • createWPMaterialFromProdDescCollection

        public void createWPMaterialFromProdDescCollection()
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Service method to create WPMaterialLines from the Product Description Collection. The Product Description Collection is obtained from the B2B server using the transaction ID. For each Product Description in the Product Description Collection an WPMaterialLine is created. The following values are obtained from the Prod. Description Collection and set on the WPMaterialLine.
        • catalogcode
        • currencycode
        • description
        • manufacturer
        • modelnum
        • orderunit
        • qty
        • remarks
        • requireddate
        • unitcost
        • vendor
        Specified by:
        createWPMaterialFromProdDescCollection in interface ECommHelperRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ECommHelper.createWPMaterialFromProdDescCollection()
      • getCatalogURL

        public ECatalogURL getCatalogURL(java.lang.String catalogName,
                                         UserInfo ui,
                                         java.lang.String returnURL)
                                  throws MXException,
                                         java.rmi.RemoteException
        Returns the catalog URL.
        Specified by:
        getCatalogURL in interface ECommHelperRemote
        Parameters:
        catalogName - - The name of the catalog where you want to search for this item.
        UserInfo - - The userInfo object of the current user.
        return - URL - The URL to which the Product Description Collection must be returned.
        Returns:
        ECatalogURL - The URL where the catalog with the specified catalog name is found
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mnet.B2BMessageService#getECatalogURL
      • returncart

        public boolean returncart()
                           throws MXException,
                                  java.rmi.RemoteException
        Calls the proper method to return the cart back to the calling application
        Specified by:
        returncart in interface ECommHelperRemote
        Returns:
        boolean - true if application to return to is known, false otherwise
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ECommHelper.returncart()