Package ru.bitel.bgbilling.kernel.contract.label.common.service

# Interface ContractLabelService

public interface ContractLabelService

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getContractCountByLabel(int labelId)`
  `List<Integer>`
  `getContractLabelIds(int contractId)`
  `ContractLabelItem`
  `getContractLabelTree()`
  `List<ContractLabelItem>`
  `getContractLabelTreeItemList(int contractId, boolean calcCount)`
  `List<ContractLabelItem>`
  `getContractLabelTreeItemListForUser(int userId)`
  Получение только тех меток, которые разрешены для данного пользователя
  `void`
  `removeContractLabelTreeItem(int contractLabelItemId)`
  `void`
  `setContractLabelIds(int contractId, List<Integer> contractLabelsIds)`
  `void`
  `setContractLabelTreeItemList(int contractId, List<ContractLabelItem> items)`
  `void`
  `syncLabelAndGroupContract(int contractId)`
  `void`
  `syncLabelAndGroupDirectory()`
  `int`
  `updateContractLabelTreeItem(ContractLabelItem contractLabelItem)`
  `void`
  `updateContractLabelTreeItems(List<ContractLabelItem> items)`

- ## Method Details

  - ### getContractLabelTreeItemListForUser

    List<ContractLabelItem> getContractLabelTreeItemListForUser(int userId) throws Exception
    Получение только тех меток, которые разрешены для данного пользователя
    Parameters:
      `userId` - id пользователя
    Returns:

  - ### getContractLabelTreeItemList

    List<ContractLabelItem> getContractLabelTreeItemList(int contractId, boolean calcCount) throws Exception
    Throws:
      `Exception`

  - ### getContractLabelIds

    List<Integer> getContractLabelIds(int contractId) throws Exception
    Throws:
      `Exception`

  - ### setContractLabelIds

    void setContractLabelIds(int contractId, List<Integer> contractLabelsIds) throws Exception
    Throws:
      `Exception`

  - ### setContractLabelTreeItemList

    void setContractLabelTreeItemList(int contractId, List<ContractLabelItem> items) throws Exception
    Throws:
      `Exception`

  - ### updateContractLabelTreeItem

    int updateContractLabelTreeItem(ContractLabelItem contractLabelItem) throws Exception
    Throws:
      `Exception`

  - ### updateContractLabelTreeItems

    void updateContractLabelTreeItems(List<ContractLabelItem> items) throws Exception
    Throws:
      `Exception`

  - ### removeContractLabelTreeItem

    void removeContractLabelTreeItem(int contractLabelItemId) throws Exception
    Throws:
      `Exception`

  - ### getContractLabelTree

    ContractLabelItem getContractLabelTree() throws Exception
    Throws:
      `Exception`

  - ### syncLabelAndGroupDirectory

    void syncLabelAndGroupDirectory() throws Exception
    Throws:
      `Exception`

  - ### syncLabelAndGroupContract

    void syncLabelAndGroupContract(int contractId) throws Exception
    Throws:
      `Exception`

  - ### getContractCountByLabel

    int getContractCountByLabel(int labelId) throws Exception
    Throws:
      `Exception`