Class ContractParameterManager

java.lang.Object
bitel.billing.server.contract.bean.ContractParameterManager
All Implemented Interfaces:
AutoCloseable

@Deprecated public class ContractParameterManager extends Object implements AutoCloseable
Deprecated.
  • Field Details Link icon

  • Constructor Details Link icon

    • ContractParameterManager Link icon

      public ContractParameterManager(Connection con)
      Deprecated.
  • Method Details Link icon

    • resetParametersHistoryMap Link icon

      public static void resetParametersHistoryMap()
      Deprecated.
      Сбрасывает кеш с флагами о необходимости ввести историю параметров
    • setContractRefParam Link icon

      public void setContractRefParam(int cid, int pid, int value, int userId)
      Deprecated.
      Установка параметра типа "Ссылка на договор"
      Parameters:
      cid - код договора
      pid - код параметра
      value - значение
      userId - кто изменил
    • getContractRefParam Link icon

      public Integer getContractRefParam(int cid, int pid)
      Deprecated.
      Получает параметр типа "Ссылка на договор"
      Parameters:
      cid - код договора
      pid - код параметра
      Returns:
      параметр типа "Ссылка на договор"
    • getContractRefParamMap Link icon

      public Map<Integer,Integer> getContractRefParamMap(int cid, Set<Integer> pids) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • deleteContractRefParam Link icon

      public void deleteContractRefParam(int cid, int pid, int userId) throws Exception
      Deprecated.
      Удаление параметра типа "Ссылка на договор"
      Parameters:
      cid -
      pid -
      userId -
      Throws:
      ru.bitel.bgbilling.common.BGException
      Exception
    • getMultiListParamValueMap Link icon

      public Map<Integer,MultiListParamValues> getMultiListParamValueMap(int cid, Set<Integer> pids) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateMultiListParameterAndItems Link icon

      public void updateMultiListParameterAndItems(int contractId, int parameterId, MultiListParamValues values, int userId)
      Deprecated.
      Установка значения мультиспискового параметра
    • updateMultiListParameter Link icon

      public void updateMultiListParameter(Connection con, int cid, int pid, MultiListParamValues values, int userID)
      Deprecated.
    • updateListParamLog Link icon

      public void updateListParamLog(int cid, int pid, Integer value, String customValue, int userId)
      Deprecated.
      Обновление истории спискового параметра
    • updateMultiListParamLog Link icon

      public void updateMultiListParamLog(int cid, int pid, String value, int userId)
      Deprecated.
      Обновление истории мультиспискового параметра
    • getListValues Link icon

      public List<IdTitle> getListValues(int parameterId) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getMultiListValues Link icon

      public List<IdTitle> getMultiListValues(int parameterId) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getMultiListParamValues Link icon

      public MultiListParamValues getMultiListParamValues(int contractId, int parameterId) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • updateMultiListParameterValue Link icon

      public int updateMultiListParameterValue(int id, int pid, String title) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • replaceMultiListCustomValues Link icon

      public void replaceMultiListCustomValues(int id, int pid, String customValue) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • updateListValue Link icon

      public int updateListValue(int id, int pid, String title) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • replaceCustomListValue Link icon

      public void replaceCustomListValue(int id, int pid, String customValue) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • checkMultiListValue Link icon

      public boolean checkMultiListValue(int val, int pid) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • deleteListValue Link icon

      public void deleteListValue(int id) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • deleteMultiListValue Link icon

      public void deleteMultiListValue(int id) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • deleteListCustomValue Link icon

      public void deleteListCustomValue(String customValue, int pid) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • deleteMultiListCustomValue Link icon

      public void deleteMultiListCustomValue(String customValue, int pid) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getMultilistParamId Link icon

      public int getMultilistParamId(String title) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getParameterListValues Link icon

      @Deprecated public List<IdTitle> getParameterListValues(int parameterId) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Deprecated. getListValues(int)
      Parameters:
      parameterId -
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getAddressCustomParam Link icon

      public Map<Integer,Integer> getAddressCustomParam()
      Deprecated.
      Получение Map<Integer, Integer> с новыми пользовательскими адресами, где key - это id параметра, а value - количество новых адресов этого параметра
    • deleteParamForContractByType Link icon

      public void deleteParamForContractByType(int parameterTypeId, int contractId)
      Deprecated.
    • deleteParamLogForContractByType Link icon

      public void deleteParamLogForContractByType(int parameterTypeId, int contractId)
      Deprecated.
    • deleteParamLog Link icon

      public void deleteParamLog(int parameterId) throws Exception
      Deprecated.
      Удаление истории параметра определенного типа
      Parameters:
      parameterId - код параметра
      Throws:
      ru.bitel.bgbilling.common.BGException
      Exception
    • getParameterHistory Link icon

      public List<ParameterHistoryEntry> getParameterHistory(int contractId, int parameterId) throws Exception
      Deprecated.
      Получает историю параметра
      Parameters:
      contractId - код договора
      parameterId - код параметра
      Returns:
      список записей истории
      Throws:
      ru.bitel.bgbilling.common.BGException
      Exception
    • clearParameterHistory Link icon

      public void clearParameterHistory(int cid, int pid, int parameterTypeId) throws SQLException
      Deprecated.
      Очищает историю параметра договора.
      Parameters:
      cid - код договора.
      pid - код параметра.
      parameterTypeId - тип параметра.
      Throws:
      SQLException
    • getTableName Link icon

      public String getTableName(int parameterTypeId)
      Deprecated.
      Получает название таблицы БД для параметра этого типа.
      Parameters:
      parameterTypeId - (номер) тип параметра.
      Returns:
      строка - имя таблицы БД contract_parameter_type_*.
    • getAllParams Link icon

      public List<IdTitle> getAllParams(int cid, String tableName, String pids)
      Deprecated.
      Возвращает список параметров договора в виде idTitle
      Parameters:
      cid - - id договора
      tableName - - имя таблицы параметров
      pids - - строка с кодом(ами) параметров, через запятую
    • copyContractParams Link icon

      public void copyContractParams(String where, Map<String,bitel.billing.server.util.db.ColumnValue> valuesPairs)
      Deprecated.
      Копирование параметров договора.
    • searchCustomAddress Link icon

      public void searchCustomAddress(SearchResult<String[]> searchResult, int parameterId) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Возвращает список кастомных адресов
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getValuesForPids Link icon

      @Deprecated public HashMap<Integer,String> getValuesForPids(List<Integer> pids, int contractId)
      Deprecated.
    • getValuesForPids Link icon

      public HashMap<Integer,String> getValuesForPids(Set<Integer> pids, int contractId)
      Deprecated.
      Возвращает строковые значения переданных параметров договора для данного договора.
      Parameters:
      pids - список кодов параметров
      contractId - код договора
      Returns:
    • getTextlikeParam Link icon

      public String getTextlikeParam(int contractId, int pid)
      Deprecated.
      Получает параметр который можно трактовать как текст, т.е. текст, мыло, телефон итд. Как getValuesForPids, только для одного договора и одного параметра. Вернёт null если параметра нет (и возможно если он не заполнен для некоторых типов?)
    • getParamPref Link icon

      public ContractParameterPref getParamPref(int parameterId) throws Exception
      Deprecated.
      Возвращает описание типа параметра по типу самого параметра
      Parameters:
      parameterId - тип параметра
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
      Exception
    • getContractParamValueMap Link icon

      public Map<Integer,ContractParamValue> getContractParamValueMap(int cid) throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • close Link icon

      public void close() throws ru.bitel.bgbilling.common.BGException
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Throws:
      ru.bitel.bgbilling.common.BGException