Class VoiceAccount
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.bgbilling.modules.voice.common.bean.AbtractVoiceAccount
ru.bitel.bgbilling.modules.voice.common.bean.VoiceAccount
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- GuiTitlable,- Idable,- ListItem,- Node<VoiceAccount>,- TreeNode<VoiceAccount>
public class VoiceAccount extends AbtractVoiceAccount implements Node<VoiceAccount>, java.lang.Cloneable
Базовый account, который добавляется на договор и представляет 
 собой сущность, аналогичную поинту/правилу в модуле Phone и 
 логин в модуле VoiceIP
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description static shortSTATE_DELETEDСостояние сервиса - удален (со связанных устройств).static shortSTATE_DISABLEСостояние сервиса/соединения - доступ отключен.static shortSTATE_ENABLEСостояние сервиса/соединения - доступ включен.static intSTATUS_ACTIVEstatic intSTATUS_BLOCKEDstatic intSTATUS_CLOSEFields inherited from class ru.bitel.bgbilling.modules.voice.common.bean.AbtractVoiceAccountcontractComment, deviceIdFields inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntityentitySpecId
- 
Constructor SummaryConstructors Constructor Description VoiceAccount()
- 
Method SummaryModifier and Type Method Description java.lang.Objectclone()voidcopyTo(VoiceAccount voiceAccount)intgetAccessCode()java.util.List<VoiceAccount>getChildren()java.lang.StringgetComment()Получение комментария аккаунта.intgetContractObjectId()shortgetDeviceState()intgetLineCount()java.lang.StringgetLogin()Получение логина, привязанного на договорlonggetNumber()Получение номера телефона, привязанного к договоруintgetParentId()java.lang.StringgetPassword()Получение пароля аккаунта.java.util.List<VoiceAccountPort>getPortList()java.lang.StringgetPorts()bytegetSessionCountLimit()intgetStatus()voidsetAccessCode(int accessCode)voidsetChildren(java.util.List<VoiceAccount> children)voidsetComment(java.lang.String comment)Установка комментария для аккаунтаvoidsetContractObjectId(int contractObjectId)voidsetDeviceState(short deviceState)voidsetLineCount(int value)voidsetLogin(java.lang.String login)Установка логинаvoidsetNumber(long number)Установка номера телефона для договораvoidsetParentId(int parentId)voidsetPassword(java.lang.String passwd)Установка пароля для аккаунта.voidsetPortList(java.util.List<VoiceAccountPort> portList)voidsetPorts(java.lang.String ports)voidsetSessionCountLimit(byte sessionCountLimit)voidsetStatus(int status)java.lang.StringtoString()Methods inherited from class ru.bitel.bgbilling.modules.voice.common.bean.AbtractVoiceAccountcopyTo, getContractComment, getContractId, getContractTitle, getDateFrom, getDateTo, getDeviceId, getTypeId, setContractComment, setContractId, setContractTitle, setDateFrom, setDateTo, setDeviceId, setTypeIdMethods inherited from class ru.bitel.oss.kernel.entity.common.bean.EntitycopyTo, getEntityId, setEntityIdMethods inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntitycopyTo, getEntityAttributes, getEntitySpecId, setEntityAttributes, setEntitySpecIdMethods inherited from class ru.bitel.common.model.IdTitlecopyTo, getGuiTitle, getTitle, setTitle, toIdTitleMethods inherited from class ru.bitel.common.model.IdcopyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setIdMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
- 
Field Details- 
STATUS_ACTIVEpublic static final int STATUS_ACTIVE- See Also:
- Constant Field Values
 
- 
STATUS_CLOSEpublic static final int STATUS_CLOSE- See Also:
- Constant Field Values
 
- 
STATUS_BLOCKEDpublic static final int STATUS_BLOCKED- See Also:
- Constant Field Values
 
- 
STATE_DELETEDpublic static final short STATE_DELETEDСостояние сервиса - удален (со связанных устройств).- See Also:
- Constant Field Values
 
- 
STATE_DISABLEpublic static final short STATE_DISABLEСостояние сервиса/соединения - доступ отключен.- See Also:
- Constant Field Values
 
- 
STATE_ENABLEpublic static final short STATE_ENABLEСостояние сервиса/соединения - доступ включен.- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
VoiceAccountpublic VoiceAccount()
 
- 
- 
Method Details- 
getCommentpublic java.lang.String getComment()Получение комментария аккаунта.- Returns:
- комментарий аккаунта
 
- 
setCommentpublic void setComment(java.lang.String comment)Установка комментария для аккаунта- Parameters:
- comment- коммментарий
 
- 
getNumberpublic long getNumber()Получение номера телефона, привязанного к договору- Returns:
- строка с номером телефона
 
- 
setNumberpublic void setNumber(long number)Установка номера телефона для договора- Parameters:
- number- номер телефона
 
- 
toStringpublic java.lang.String toString()
- 
clonepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
- clonein class- java.lang.Object
- Throws:
- java.lang.CloneNotSupportedException
 
- 
getStatuspublic int getStatus()
- 
setStatuspublic void setStatus(int status)
- 
getDeviceStatepublic short getDeviceState()
- 
setDeviceStatepublic void setDeviceState(short deviceState)
- 
getAccessCodepublic int getAccessCode()
- 
setAccessCodepublic void setAccessCode(int accessCode)
- 
getChildren- Specified by:
- getChildrenin interface- TreeNode<VoiceAccount>
 
- 
getParentIdpublic int getParentId()- Specified by:
- getParentIdin interface- Node<VoiceAccount>
 
- 
setParentIdpublic void setParentId(int parentId)
- 
setChildren- Specified by:
- setChildrenin interface- Node<VoiceAccount>
 
- 
getLoginpublic java.lang.String getLogin()Получение логина, привязанного на договор- Returns:
- логин
 
- 
setLoginpublic void setLogin(java.lang.String login)Установка логина- Parameters:
- login- логин
 
- 
getPasswordpublic java.lang.String getPassword()Получение пароля аккаунта.- Returns:
- пароль.
 
- 
setPasswordpublic void setPassword(java.lang.String passwd)Установка пароля для аккаунта.- Parameters:
- passwd- пароль
 
- 
getSessionCountLimitpublic byte getSessionCountLimit()
- 
setSessionCountLimitpublic void setSessionCountLimit(byte sessionCountLimit)
- 
getPortspublic java.lang.String getPorts()
- 
setPortspublic void setPorts(java.lang.String ports)
- 
getPortList
- 
setPortList
- 
getContractObjectIdpublic int getContractObjectId()
- 
setContractObjectIdpublic void setContractObjectId(int contractObjectId)
- 
getLineCountpublic int getLineCount()
- 
setLineCountpublic void setLineCount(int value)
- 
copyTo
 
-