Class ContractLabelManager

java.lang.Object
ru.bitel.bgbilling.kernel.contract.label.server.bean.ContractLabelManager

public class ContractLabelManager
extends java.lang.Object
  • Field Details

    • TABLE_CONTRACT_LABEL

      protected static final java.lang.String TABLE_CONTRACT_LABEL
      See Also:
      Constant Field Values
  • Constructor Details

    • ContractLabelManager

      public ContractLabelManager​(java.sql.Connection con)
  • Method Details

    • getContractLabelItemList

      public java.util.List<ContractLabelItem> getContractLabelItemList​(boolean calcCount) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getContractLabelIds

      public java.util.List<java.lang.Integer> getContractLabelIds​(int contractPlanId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • setContractLabelIds

      public void setContractLabelIds​(int contractId, java.util.List<java.lang.Integer> ids) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateContractLabelTreeItem

      public void updateContractLabelTreeItem​(ContractLabelItem contractLabelItem) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • removeContractLabelItem

      public void removeContractLabelItem​(int contractLabelItemId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getTree

      public ContractLabelItem getTree() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • syncLabelAndGroupContract

      public void syncLabelAndGroupContract​(int contractId) throws ru.bitel.bgbilling.common.BGException
      Синхронизация групп договоров и меток договоров (копирует группы в метки)
      Parameters:
      contractId - больше 0 - для одного договора, иначе для всех договоров
      Throws:
      ru.bitel.bgbilling.common.BGException
    • addChild

      protected void addChild​(int up, ContractLabelItem rootItem, java.util.List<ContractLabelItem> list)