Class ContractParameterManager
java.lang.Object
bitel.billing.server.contract.bean.ContractParameterManager
- All Implemented Interfaces:
AutoCloseable
Deprecated.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckMultiListValue(int val, int pid) Deprecated.voidclearParameterHistory(int cid, int pid, int parameterTypeId) Deprecated.Очищает историю параметра договора.voidclose()Deprecated.voidcopyContractParams(String where, Map<String, bitel.billing.server.util.db.ColumnValue> valuesPairs) Deprecated.Копирование параметров договора.voiddeleteContractRefParam(int cid, int pid, int userId) Deprecated.Удаление параметра типа "Ссылка на договор"voiddeleteListCustomValue(String customValue, int pid) Deprecated.voiddeleteListValue(int id) Deprecated.voiddeleteMultiListCustomValue(String customValue, int pid) Deprecated.voiddeleteMultiListValue(int id) Deprecated.voiddeleteParamForContractByType(int parameterTypeId, int contractId) Deprecated.voiddeleteParamLog(int parameterId) Deprecated.Удаление истории параметра определенного типаvoiddeleteParamLogForContractByType(int parameterTypeId, int contractId) Deprecated.Deprecated.Получение Map<Integer, Integer> с новыми пользовательскими адресами, где key - это id параметра, а value - количество новых адресов этого параметраgetAllParams(int cid, String tableName, String pids) Deprecated.Возвращает список параметров договора в виде idTitlegetContractParamValueMap(int cid) Deprecated.getContractRefParam(int cid, int pid) Deprecated.Получает параметр типа "Ссылка на договор"getContractRefParamMap(int cid, Set<Integer> pids) Deprecated.getListValues(int parameterId) Deprecated.intgetMultilistParamId(String title) Deprecated.getMultiListParamValueMap(int cid, Set<Integer> pids) Deprecated.getMultiListParamValues(int contractId, int parameterId) Deprecated.getMultiListValues(int parameterId) Deprecated.getParameterHistory(int contractId, int parameterId) Deprecated.Получает историю параметраgetParameterListValues(int parameterId) Deprecated.getParamPref(int parameterId) Deprecated.Возвращает описание типа параметра по типу самого параметраgetTableName(int parameterTypeId) Deprecated.Получает название таблицы БД для параметра этого типа.getTextlikeParam(int contractId, int pid) Deprecated.Получает параметр который можно трактовать как текст, т.е. текст, мыло, телефон итд.getValuesForPids(List<Integer> pids, int contractId) Deprecated.getValuesForPids(Set<Integer> pids, int contractId) Deprecated.Возвращает строковые значения переданных параметров договора для данного договора.voidreplaceCustomListValue(int id, int pid, String customValue) Deprecated.voidreplaceMultiListCustomValues(int id, int pid, String customValue) Deprecated.static voidDeprecated.Сбрасывает кеш с флагами о необходимости ввести историю параметровvoidsearchCustomAddress(SearchResult<String[]> searchResult, int parameterId) Deprecated.Возвращает список кастомных адресовvoidsetContractRefParam(int cid, int pid, int value, int userId) Deprecated.Установка параметра типа "Ссылка на договор"voidupdateListParamLog(int cid, int pid, Integer value, String customValue, int userId) Deprecated.Обновление истории спискового параметраintupdateListValue(int id, int pid, String title) Deprecated.voidupdateMultiListParameter(Connection con, int cid, int pid, MultiListParamValues values, int userID) Deprecated.voidupdateMultiListParameterAndItems(int contractId, int parameterId, MultiListParamValues values, int userId) Deprecated.Установка значения мультиспискового параметраintupdateMultiListParameterValue(int id, int pid, String title) Deprecated.voidupdateMultiListParamLog(int cid, int pid, String value, int userId) Deprecated.Обновление истории мультиспискового параметра
-
Field Details
-
con
Deprecated.
-
-
Constructor Details
-
ContractParameterManager
Deprecated.
-
-
Method Details
-
resetParametersHistoryMap
public static void resetParametersHistoryMap()Deprecated.Сбрасывает кеш с флагами о необходимости ввести историю параметров -
setContractRefParam
public void setContractRefParam(int cid, int pid, int value, int userId) Deprecated.Установка параметра типа "Ссылка на договор"- Parameters:
cid- код договораpid- код параметраvalue- значениеuserId- кто изменил
-
getContractRefParam
Deprecated.Получает параметр типа "Ссылка на договор"- Parameters:
cid- код договораpid- код параметра- Returns:
- параметр типа "Ссылка на договор"
-
getContractRefParamMap
Deprecated.- Throws:
SQLException
-
deleteContractRefParam
public void deleteContractRefParam(int cid, int pid, int userId) throws ru.bitel.bgbilling.common.BGException Deprecated.Удаление параметра типа "Ссылка на договор"- Parameters:
cid-pid-userId-- Throws:
ru.bitel.bgbilling.common.BGException
-
getMultiListParamValueMap
public Map<Integer,MultiListParamValues> getMultiListParamValueMap(int cid, Set<Integer> pids) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
updateMultiListParameterAndItems
public void updateMultiListParameterAndItems(int contractId, int parameterId, MultiListParamValues values, int userId) Deprecated.Установка значения мультиспискового параметра -
updateMultiListParameter
public void updateMultiListParameter(Connection con, int cid, int pid, MultiListParamValues values, int userID) Deprecated. -
updateListParamLog
Deprecated.Обновление истории спискового параметра -
updateMultiListParamLog
Deprecated.Обновление истории мультиспискового параметра -
getListValues
Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
getMultiListValues
public List<IdTitle> getMultiListValues(int parameterId) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
getMultiListParamValues
public MultiListParamValues getMultiListParamValues(int contractId, int parameterId) throws SQLException Deprecated.- Throws:
SQLException
-
updateMultiListParameterValue
Deprecated.- Throws:
SQLException
-
replaceMultiListCustomValues
Deprecated.- Throws:
SQLException
-
updateListValue
Deprecated.- Throws:
SQLException
-
replaceCustomListValue
Deprecated.- Throws:
SQLException
-
checkMultiListValue
Deprecated.- Throws:
SQLException
-
deleteListValue
Deprecated.- Throws:
SQLException
-
deleteMultiListValue
Deprecated.- Throws:
SQLException
-
deleteListCustomValue
Deprecated.- Throws:
SQLException
-
deleteMultiListCustomValue
Deprecated.- Throws:
SQLException
-
getMultilistParamId
Deprecated.- Throws:
SQLException
-
getParameterListValues
@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
Deprecated.Получение Map<Integer, Integer> с новыми пользовательскими адресами, где key - это id параметра, а value - количество новых адресов этого параметра -
deleteParamForContractByType
public void deleteParamForContractByType(int parameterTypeId, int contractId) Deprecated. -
deleteParamLogForContractByType
public void deleteParamLogForContractByType(int parameterTypeId, int contractId) Deprecated. -
deleteParamLog
public void deleteParamLog(int parameterId) throws ru.bitel.bgbilling.common.BGException Deprecated.Удаление истории параметра определенного типа- Parameters:
parameterId- код параметра- Throws:
ru.bitel.bgbilling.common.BGException
-
getParameterHistory
public List<ParameterHistoryEntry> getParameterHistory(int contractId, int parameterId) throws ru.bitel.bgbilling.common.BGException Deprecated.Получает историю параметра- Parameters:
contractId- код договораparameterId- код параметра- Returns:
- список записей истории
- Throws:
ru.bitel.bgbilling.common.BGException
-
clearParameterHistory
Deprecated.Очищает историю параметра договора.- Parameters:
cid- код договора.pid- код параметра.parameterTypeId- тип параметра.- Throws:
SQLException
-
getTableName
Deprecated.Получает название таблицы БД для параметра этого типа.- Parameters:
parameterTypeId- (номер) тип параметра.- Returns:
- строка - имя таблицы БД contract_parameter_type_*.
-
getAllParams
Deprecated.Возвращает список параметров договора в виде idTitle- Parameters:
cid- - id договораtableName- - имя таблицы параметровpids- - строка с кодом(ами) параметров, через запятую
-
copyContractParams
public void copyContractParams(String where, Map<String, bitel.billing.server.util.db.ColumnValue> valuesPairs) Deprecated.Копирование параметров договора. -
searchCustomAddress
public void searchCustomAddress(SearchResult<String[]> searchResult, int parameterId) throws ru.bitel.bgbilling.common.BGException Deprecated.Возвращает список кастомных адресов- Throws:
ru.bitel.bgbilling.common.BGException
-
getValuesForPids
Deprecated. -
getValuesForPids
Deprecated.Возвращает строковые значения переданных параметров договора для данного договора.- Parameters:
pids- список кодов параметровcontractId- код договора- Returns:
-
getTextlikeParam
Deprecated.Получает параметр который можно трактовать как текст, т.е. текст, мыло, телефон итд. Как getValuesForPids, только для одного договора и одного параметра. Вернёт null если параметра нет (и возможно если он не заполнен для некоторых типов?) -
getParamPref
public ContractParameterPref getParamPref(int parameterId) throws ru.bitel.bgbilling.common.BGException Deprecated.Возвращает описание типа параметра по типу самого параметра- Parameters:
parameterId- тип параметра- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getContractParamValueMap
public Map<Integer,ContractParamValue> getContractParamValueMap(int cid) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
close
public void close() throws ru.bitel.bgbilling.common.BGExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Throws:
ru.bitel.bgbilling.common.BGException
-
ContractDaoorContractService