Interface AddressService
public interface AddressService
-
Method Summary
Modifier and TypeMethodDescriptionaddressDirectoryList(int mode, int cityId, int areaId, int streetId, int quarterId) Получение элементов справочника адресов (город, улица, район, квартал, дом).voidaddressEntityDataDelete(AddressEntityType addressEntityType, int recordId) addressEntityDataGet(AddressEntityType addressEntityType, int recordId) voidaddressEntityDataUpdate(AddressEntityData addressEntityData) addressEntityItems(AddressEntityType addressEntityType, int parentId) List<ru.bitel.bgbilling.common.model.KeyValue> addressFormat(EntityAttrAddress attrAddress, EntityType entityType) intaddressHouseUpdate(House house) Изменение дома в справочнике адресов с проверкой на дубликаты.voidaddressImport(int mode, int id, String data) voidareaDelete(int id) areaGet(int id) areaList(int cityId) intareaUpdate(Area area) booleanvoidcityDelete(int id) cityGet(int id) cityList(int countryId) intcityUpdate(City city) voidcountryDelete(int id) countryGet(int id) intcountryUpdate(Country country) voidextraParamsUpdate(AddressEntityType addressEntityType, int recordId, List<ru.bitel.bgbilling.common.model.KeyValue> values) getCoordinatesByHouse(int houseId) houseAreaGet(int streetId, String houseAndFrac, int house, String frac) Получение информации о районе и квартале дома.houseDataGet(int id) voidhouseDelete(int id) houseEditorGet(int id, String addressType) Получение данных для редактора дома в справочнике адресов.houseFilterList(int cityId, int quarterId, int streetId, String houseFrac) Получение списка домов, отобранных по городу, кварталу, улице и номеру дома.houseGet(int id) houseIndexGet(int streetId, String houseAndFrac, int house, String frac) houseInfoGet(int houseId, int pid, String flat, String room, String pod, String floor, boolean isObject) Получение информации о доме: сам дом, его дополнительные параметры и варианты форматирования адреса.inthouseUpdate(House house) postIndexGet(int streetId, String houseAndFrac, int house, String frac) voidquarterDelete(int id) quarterGet(int id) quarterList(int cityId) intquarterUpdate(Quarter quarter) voidsaveCoordinates(HouseCoordinates houseCoordinates) searchAreaList(int cityId, String title, String searchMode, Page page) searchCityList(int countryId, String title, String searchMode, Page page) searchCoordinatesByHouseId(int houseId) searchCountryList(String title, String searchMode, Page page) searchHouseList(int cityId, int areaId, int quarterId, int streetId, String house, Page page) searchQuarterList(int cityId, String title, String searchMode, Page page) searchStreetList(int cityId, String title, String searchMode, Page page) voidstreetDelete(int id) streetGet(int id) streetList(int cityId) streetSearch(int cityId, String title, String cityTitle, Page page) streetSearchBySubstring(String substring) Получение списка улиц, название которых содержит указанную подстроку.intstreetUpdate(Street street)
-
Method Details
-
countryGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchCountryList
SearchResult<Country> searchCountryList(String title, String searchMode, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
countryUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
countryDelete
void countryDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
cityGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchCityList
SearchResult<City> searchCityList(int countryId, String title, String searchMode, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
cityUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
cityDelete
void cityDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
cityList
- Throws:
ru.bitel.bgbilling.common.BGException
-
areaGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchAreaList
SearchResult<Area> searchAreaList(int cityId, String title, String searchMode, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
areaUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
areaDelete
void areaDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
areaList
- Throws:
ru.bitel.bgbilling.common.BGException
-
streetGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchStreetList
SearchResult<Street> searchStreetList(int cityId, String title, String searchMode, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
streetSearch
List<Street> streetSearch(int cityId, String title, String cityTitle, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
streetUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
streetDelete
void streetDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
streetList
- Throws:
ru.bitel.bgbilling.common.BGException
-
quarterGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchQuarterList
SearchResult<Quarter> searchQuarterList(int cityId, String title, String searchMode, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
quarterUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
quarterDelete
void quarterDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
quarterList
- Throws:
ru.bitel.bgbilling.common.BGException
-
postIndexGet
String postIndexGet(int streetId, String houseAndFrac, int house, String frac) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
houseGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
houseDataGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
houseList
List<House> houseList(int cityId, int areaId, int streetId, int quarterId, int house, String frac, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
houseUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
houseDelete
void houseDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
searchHouseList
SearchResult<House> searchHouseList(int cityId, int areaId, int quarterId, int streetId, String house, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
houseFilterList
List<AddressHouseFilterItem> houseFilterList(int cityId, int quarterId, int streetId, String houseFrac) throws ru.bitel.bgbilling.common.BGException Получение списка домов, отобранных по городу, кварталу, улице и номеру дома.- Parameters:
cityId- ID города.quarterId- ID квартала.streetId- ID улицы.houseFrac- номер дома с дробью (подстрока, регистр не учитывается).- Returns:
- список домов.
- Throws:
ru.bitel.bgbilling.common.BGException
-
addressDirectoryList
List<AddressDirectoryItem> addressDirectoryList(int mode, int cityId, int areaId, int streetId, int quarterId) throws ru.bitel.bgbilling.common.BGException Получение элементов справочника адресов (город, улица, район, квартал, дом).- Parameters:
mode- код типа элемента справочника (см.AddressEntityType).cityId- ID города.areaId- ID района.streetId- ID улицы.quarterId- ID квартала.- Returns:
- список элементов справочника.
- Throws:
ru.bitel.bgbilling.common.BGException
-
streetSearchBySubstring
Получение списка улиц, название которых содержит указанную подстроку.- Parameters:
substring- подстрока названия улицы.- Returns:
- список улиц.
- Throws:
ru.bitel.bgbilling.common.BGException
-
houseAreaGet
AddressHouseArea houseAreaGet(int streetId, String houseAndFrac, int house, String frac) throws ru.bitel.bgbilling.common.BGException Получение информации о районе и квартале дома.- Parameters:
streetId- ID улицы.houseAndFrac- номер дома с дробью.house- номер дома.frac- дробь дома.- Returns:
- информация о районе и квартале дома.
- Throws:
ru.bitel.bgbilling.common.BGException
-
houseInfoGet
AddressHouseInfo houseInfoGet(int houseId, int pid, String flat, String room, String pod, String floor, boolean isObject) throws ru.bitel.bgbilling.common.BGException Получение информации о доме: сам дом, его дополнительные параметры и варианты форматирования адреса.- Parameters:
houseId- ID дома.pid- ID параметра договора/объекта (для вариантов форматирования адреса).flat- квартира.room- комната.pod- подъезд.floor- этаж.isObject- признак того, что параметр принадлежит объекту.- Returns:
- информация о доме.
- Throws:
ru.bitel.bgbilling.common.BGException
-
houseEditorGet
AddressHouseEditorData houseEditorGet(int id, String addressType) throws ru.bitel.bgbilling.common.BGException Получение данных для редактора дома в справочнике адресов.- Parameters:
id- ID дома.addressType- тип адреса (house, street, area, quarter, city, country).- Returns:
- данные для редактора дома.
- Throws:
ru.bitel.bgbilling.common.BGException
-
addressHouseUpdate
Изменение дома в справочнике адресов с проверкой на дубликаты.- Parameters:
house- дом.- Returns:
- ID дома.
- Throws:
ru.bitel.bgbilling.common.BGException
-
addressFormat
List<ru.bitel.bgbilling.common.model.KeyValue> addressFormat(EntityAttrAddress attrAddress, EntityType entityType) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
houseIndexGet
String houseIndexGet(int streetId, String houseAndFrac, int house, String frac) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
extraParamsUpdate
void extraParamsUpdate(AddressEntityType addressEntityType, int recordId, List<ru.bitel.bgbilling.common.model.KeyValue> values) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addressEntityDataGet
AddressEntityData addressEntityDataGet(AddressEntityType addressEntityType, int recordId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addressEntityDataUpdate
void addressEntityDataUpdate(AddressEntityData addressEntityData) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addressEntityDataDelete
void addressEntityDataDelete(AddressEntityType addressEntityType, int recordId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addressEntityItems
List<IdTitle> addressEntityItems(AddressEntityType addressEntityType, int parentId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addressImport
- Throws:
ru.bitel.bgbilling.common.BGException
-
checkGarPluginInstalled
boolean checkGarPluginInstalled() throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
saveCoordinates
void saveCoordinates(HouseCoordinates houseCoordinates) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCoordinatesByHouse
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchCoordinatesByHouseId
HouseCoordinates searchCoordinatesByHouseId(int houseId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-