4 Replies Latest reply on Nov 2, 2012 7:13 AM by RMishra

    Manager Classes in order

      hi all,

      what is the usage of the Manager Classes and when its calling relating with order

        • 1. Re: Manager Classes in order
          Nooruddin Shaik
          CommerceItemManager - to create commerceItem and do item level operations.
          OrderManager - to create order and perform its operations

          Similarly other managers like ShippingGroupManager and PaymentGroupManager work on its corresponding shippinggroup and paymentGroup objects.

          • 2. Re: Manager Classes in order
            The use of above mentioed manager classes is to call some tools classes for low level operations(operation on repository add, update etc) and we call pipeline method. i.e. To update order we call CartModifierFormHandler.handleSetOrder->CartModifierFormHandler.updateOrder->OrderManager.updateOrder->PipelineManager.runProcess.
            • 3. Re: Manager Classes in order

              thank you for your response in ATGCommerceprogramming guide they mentioned like --> The methods in
              this class(OrderManager) are higher level than the methods in OrderTools.

              whats is the meaning of that, is that performing any higher level operations

              • 4. Re: Manager Classes in order
                High level operation is nothing but any operation that we want to perform before performing operation in repository by calling tools class(low level operation). For example to update order, In OrderManager class we create some required instance of different components in a sequence (mutrep, transaction blocks , calling pipeline method and various logic ect) and tools class basically have set of methods, each performing particular operation in repository, called low level operation. Calling them in a right sequence is done by ordermanager class. All this operation performed by ordermanager call is known as high level operation.

                Edited by: RMishra on Nov 2, 2012 12:41 PM