Class DispatchDAO

java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.DispatchDAO

public class DispatchDAO extends BillingDAO
  • Constructor Details

    • DispatchDAO

      public DispatchDAO(User user, DBInfo dbInfo)
    • DispatchDAO

      public DispatchDAO(User user, String billingId)
  • Method Details

    • updateContact

      public void updateContact(Contact contact)
      Updates or adds the contract's contact
      Parameters:
      contact - the contact
    • getContactList

      public List<Contact> getContactList(int contractId)
      Returns the contract's contacts
      Parameters:
      contractId - the contract ID
      Returns:
      the contact list
    • addSubscriptions

      public void addSubscriptions(Set<Integer> contractIds, Set<Integer> dispatchIds)
      Adds subscriptions to contracts if matching contacts are found on them
      Parameters:
      contractIds - the contract IDs
      dispatchIds - the subscription IDs