This discussion is archived
4 Replies Latest reply: Nov 2, 2012 12:13 AM by RMishra RSS

Manager Classes in order

333 Newbie
Currently Being Moderated
hi all,

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



regards
shya
  • 1. Re: Manager Classes in order
    Nooruddin Shaik Expert
    Currently Being Moderated
    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.

    Peace
    Shaik
  • 2. Re: Manager Classes in order
    RMishra Journeyer
    Currently Being Moderated
    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.
    RMishra
  • 3. Re: Manager Classes in order
    333 Newbie
    Currently Being Moderated
    hi,

    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


    regards
    shya
  • 4. Re: Manager Classes in order
    RMishra Journeyer
    Currently Being Moderated
    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.
    -RMishra

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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points