Class VoiceGeographicCode
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
ru.bitel.oss.kernel.entity.common.bean.Entity
ru.bitel.common.model.AbstractTreeNode<VoiceGeographicCode>
ru.bitel.bgbilling.modules.voice.common.bean.VoiceBaseCodeBean<VoiceGeographicCode>
ru.bitel.bgbilling.modules.voice.common.bean.VoiceGeographicCode
- All Implemented Interfaces:
Serializable,Cloneable,GuiTitlable,Idable,ListItem,Node<VoiceGeographicCode>,TreeNode<VoiceGeographicCode>
Модель географического кода, представляющего собой код и направление,
с привязкой к определенному оператору.
- See Also:
-
Field Summary
Fields inherited from class ru.bitel.common.model.AbstractTreeNode
children, parentId -
Constructor Summary
ConstructorsConstructorDescriptionVoiceGeographicCode(int id, String title) КОнструктор, который устанавливает поле title (НЕ code!!!) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(VoiceGeographicCode child) Добавление дочернего элемента для данного географического кода при построении дерева кодов.voidcopyTo(VoiceGeographicCode copy) Строка - имя объекта.intsetDateFrom(Date dateFrom) Установка даты начала действия географического кода.Установка даты начала действия географического кода.setDestinationId(int destinationId) setId(int id) Устанавливает id объектаsetOperatorId(int operatorId) org.json.JSONObjecttoJson()toString()Methods inherited from class ru.bitel.bgbilling.modules.voice.common.bean.VoiceBaseCodeBean
clone, getCode, getDateFrom, getDateTo, getDestinationId, getDestinationTitle, getLevel, setDestinationTitle, setLevelMethods inherited from class ru.bitel.common.model.AbstractTreeNode
getChildren, getParentId, setChildren, setParentId, toListMethods inherited from class ru.bitel.oss.kernel.entity.common.bean.Entity
copyTo, getEntityId, setEntityIdMethods inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
copyTo, getEntityAttributes, getEntitySpecId, setEntityAttributes, setEntitySpecIdMethods inherited from class ru.bitel.common.model.IdTitle
copyTo, getTitle, setAsNoSelect, setTitle, to, toIdTitleMethods inherited from class ru.bitel.common.model.Id
copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap
-
Constructor Details
-
VoiceGeographicCode
public VoiceGeographicCode() -
VoiceGeographicCode
КОнструктор, который устанавливает поле title (НЕ code!!!) Нужно в клиенте для выпадающего списка- Parameters:
id- код геокодаtitle- название.
-
-
Method Details
-
addChild
Добавление дочернего элемента для данного географического кода при построении дерева кодов. Например, если текущий географический код имеет код "734" (Башкортостан), то дочерним для него будет являться код "7347" (Уфа) или "73473" (Стерлитамак).- Parameters:
child- дочерний географический код.
-
copyTo
-
getGuiTitle
Description copied from interface:GuiTitlableСтрока - имя объекта. Скорее всего уникальная. Используется в комбобоксах, например, итд.- Specified by:
getGuiTitlein interfaceGuiTitlable- Overrides:
getGuiTitlein classIdTitle- Returns:
- Строка - представление объекта.
-
getOperatorId
public int getOperatorId() -
setCode
- Overrides:
setCodein classVoiceBaseCodeBean<VoiceGeographicCode>
-
setDestinationId
- Overrides:
setDestinationIdin classVoiceBaseCodeBean<VoiceGeographicCode>
-
setDateFrom
Description copied from class:VoiceBaseCodeBeanУстановка даты начала действия географического кода.- Overrides:
setDateFromin classVoiceBaseCodeBean<VoiceGeographicCode>- Parameters:
dateFrom- дата начала
-
setDateTo
Description copied from class:VoiceBaseCodeBeanУстановка даты начала действия географического кода.- Overrides:
setDateToin classVoiceBaseCodeBean<VoiceGeographicCode>- Parameters:
dateTo- дата окончания.
-
setId
Description copied from class:IdУстанавливает id объекта -
setOperatorId
-
toJson
public org.json.JSONObject toJson() -
toString
-