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 Summary
Fields 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.AbtractVoiceAccount
contractComment, deviceIdFields inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
entitySpecId -
Constructor Summary
Constructors Constructor Description VoiceAccount() -
Method Summary
Modifier 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.AbtractVoiceAccount
copyTo, getContractComment, getContractId, getContractTitle, getDateFrom, getDateTo, getDeviceId, getTypeId, setContractComment, setContractId, setContractTitle, setDateFrom, setDateTo, setDeviceId, setTypeIdMethods 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, getGuiTitle, getTitle, setTitle, toIdTitleMethods inherited from class ru.bitel.common.model.Id
copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setIdMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
STATUS_ACTIVE
public static final int STATUS_ACTIVE- See Also:
- Constant Field Values
-
STATUS_CLOSE
public static final int STATUS_CLOSE- See Also:
- Constant Field Values
-
STATUS_BLOCKED
public static final int STATUS_BLOCKED- See Also:
- Constant Field Values
-
STATE_DELETED
public static final short STATE_DELETEDСостояние сервиса - удален (со связанных устройств).- See Also:
- Constant Field Values
-
STATE_DISABLE
public static final short STATE_DISABLEСостояние сервиса/соединения - доступ отключен.- See Also:
- Constant Field Values
-
STATE_ENABLE
public static final short STATE_ENABLEСостояние сервиса/соединения - доступ включен.- See Also:
- Constant Field Values
-
-
Constructor Details
-
VoiceAccount
public VoiceAccount()
-
-
Method Details
-
getComment
public java.lang.String getComment()Получение комментария аккаунта.- Returns:
- комментарий аккаунта
-
setComment
public void setComment(java.lang.String comment)Установка комментария для аккаунта- Parameters:
comment- коммментарий
-
getNumber
public long getNumber()Получение номера телефона, привязанного к договору- Returns:
- строка с номером телефона
-
setNumber
public void setNumber(long number)Установка номера телефона для договора- Parameters:
number- номер телефона
-
toString
public java.lang.String toString() -
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status) -
getDeviceState
public short getDeviceState() -
setDeviceState
public void setDeviceState(short deviceState) -
getAccessCode
public int getAccessCode() -
setAccessCode
public void setAccessCode(int accessCode) -
getChildren
- Specified by:
getChildrenin interfaceTreeNode<VoiceAccount>
-
getParentId
public int getParentId()- Specified by:
getParentIdin interfaceNode<VoiceAccount>
-
setParentId
public void setParentId(int parentId) -
setChildren
- Specified by:
setChildrenin interfaceNode<VoiceAccount>
-
getLogin
public java.lang.String getLogin()Получение логина, привязанного на договор- Returns:
- логин
-
setLogin
public void setLogin(java.lang.String login)Установка логина- Parameters:
login- логин
-
getPassword
public java.lang.String getPassword()Получение пароля аккаунта.- Returns:
- пароль.
-
setPassword
public void setPassword(java.lang.String passwd)Установка пароля для аккаунта.- Parameters:
passwd- пароль
-
getSessionCountLimit
public byte getSessionCountLimit() -
setSessionCountLimit
public void setSessionCountLimit(byte sessionCountLimit) -
getPorts
public java.lang.String getPorts() -
setPorts
public void setPorts(java.lang.String ports) -
getPortList
-
setPortList
-
getContractObjectId
public int getContractObjectId() -
setContractObjectId
public void setContractObjectId(int contractObjectId) -
getLineCount
public int getLineCount() -
setLineCount
public void setLineCount(int value) -
copyTo
-