All Known Implementing Classes:
LrdActionsStrategyERP, LrdActionsStrategyERP605

public interface LrdActionsStrategy
Standard actions provided by the LORD API; such as save, load, copy, etc.
  • Field Details

  • Method Details

    • executeLrdDoActionsDelete

      BaseStrategyERP.ReturnValue executeLrdDoActionsDelete(TransactionConfiguration shop, SalesDocument salesDoc, JCoConnection cn, String objectName, TechKey[] itemsToDelete) throws BackendException
      Strategy for ERP_LORD_DO_ACTIONS.
      Parameters:
      shop - The shop object
      salesDoc - The sales document (e.g. basket, order, ...)
      cn - Connection to use
      objectName - Object type to delete, one of DoActionsStrategy.CREDIT_CARD, DoActionsStrategy.ITEMS or DoActionsStrategy.SHIP_TO_PARTNER.
      itemsToDelete - Array of TechKeys of the items to delete. Use DoActionsStrategy.NO_ITEMS if no items are to be deleted.
      Returns:
      Object containing messages of call and (if present) the return code generated by the function module.
      Throws:
      BackendException - in case of a back-end or communication error
    • executeLrdSave

      BackendCallResult executeLrdSave(SalesDocument posd, boolean commit, JCoConnection cn) throws BackendException
      Strategy for ERP_LORD_SAVE.
      Parameters:
      posd - The sales document (e.g. basket, order, ...)
      commit - Specifies if the save should be committed also
      cn - Connection to use
      Returns:
      Object containing messages of call and (if present) the return code generated by the function module.
      Throws:
      BackendException - in case of a back-end or communication error
    • executeLrdLoad

      BackendCallResult executeLrdLoad(SalesDocument posd, BackendState erpDocument, JCoConnection cn, LoadOperation loadState) throws BackendException
      Strategy for ERP_LORD_LOAD.
      Parameters:
      posd - The sales document (e.g. basket, order, ...)
      erpDocument - back-end layer representation of ERP sales document
      cn - Connection to use
      loadState - operation with should be performed, create, display or
      Returns:
      Object containing messages of call and (if present) the return code generated by the function module.
      Throws:
      BackendException - in case of a back-end error
    • executeSetActiveFields

      BaseStrategyERP.ReturnValue executeSetActiveFields(JCoConnection cn) throws BackendException
      Strategy for ERP_LORD_SET_ACTIVE_FIELDS. Allows to instruct LRD API to perform only checks on fields which are actually in use (performance).
      The "ActiveFieldsList" should be filled as follows:

      ArrayList activFieldList = new ArrayList();
      SetActiveFieldsListEntry aflE = new SetActiveFieldsListEntry("HEAD", "BSTKD");
      activeFieldList.add(aflE);
      Parameters:
      cn - Connection to use
      Returns:
      Object containing messages of call and (if present) the return code generated by the function module.
      Throws:
      BackendException - in case of a back-end or communication error
    • executeLrdDoActionsDocumentPricing

      void executeLrdDoActionsDocumentPricing(SalesDocument salesDoc, JCoConnection cn, TransactionConfiguration transConf) throws BackendException
      Executes ERP_LORD_DO_ACTIONS with PRICING action on header level. Updates the freights, i.e. runs with pricing type 'H'
      Parameters:
      salesDoc - Sales document
      cn - JCO connection to ERP
      transConf - Sales transaction specific customizing
      Throws:
      BackendException - in case of a back-end or communication error
    • executeLrdDoActionsDocumentPricing

      void executeLrdDoActionsDocumentPricing(SalesDocument salesDoc, String pricingType, JCoConnection cn, TransactionConfiguration transConf) throws BackendException
      Executes ERP_LORD_DO_ACTIONS with PRICING action on header level.
      Parameters:
      salesDoc - Sales document
      pricingType - Pricing type. See AdditionalPricing.getPriceType()
      cn - JCO connection to ERP
      transConf - Sales transaction specific customising
      Throws:
      BackendException - in case of a back-end or communication error