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:
Serializable,Cloneable,GuiTitlable,Idable,ListItem,Node<VoiceAccount>,TreeNode<VoiceAccount>
Базовый account, который добавляется на договор и представляет
собой сущность, аналогичную поинту/правилу в модуле Phone и
логин в модуле VoiceIP
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ru.bitel.common.model.IdTitle
IdTitle.IdTitleBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortСостояние сервиса - удален (со связанных устройств).static final shortСостояние сервиса/соединения - доступ отключен.static final shortСостояние сервиса/соединения - доступ включен.Fields inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
entitySpecId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VoiceAccount.Builderbuilder()static VoiceAccount.Builderbuilder(VoiceAccount voiceAccount) clone()voidcopyTo(VoiceAccount voiceAccount) intПолучение комментария аккаунта.intshortintgetLogin()Получение логина, привязанного на договорlongПолучение номера телефона, привязанного к договоруintПолучение пароля аккаунта.getPorts()bytevoidsetAccessCode(int accessCode) voidsetChildren(List<VoiceAccount> children) voidsetComment(String comment) Установка комментария для аккаунтаvoidsetContractObjectId(int contractObjectId) voidsetDeviceState(short deviceState) voidsetLineCount(int value) voidУстановка логинаvoidsetNumber(long number) Установка номера телефона для договораvoidsetParentId(int parentId) voidsetPassword(String passwd) Установка пароля для аккаунта.voidsetPortList(List<VoiceAccountPort> portList) voidvoidsetSessionCountLimit(byte sessionCountLimit) voidsetStatus(VoiceAccountStatus status) toString()Methods inherited from class ru.bitel.bgbilling.modules.voice.common.bean.AbtractVoiceAccount
copyTo, getContractComment, getContractId, getContractTitle, getDateFrom, getDateTo, getDeviceId, getObjectId, getTypeId, setContractComment, setContractId, setContractTitle, setDateFrom, setDateTo, setDeviceId, setObjectId, 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, setId
-
Field Details
-
STATE_DELETED
public static final short STATE_DELETEDСостояние сервиса - удален (со связанных устройств).- See Also:
-
STATE_DISABLE
public static final short STATE_DISABLEСостояние сервиса/соединения - доступ отключен.- See Also:
-
STATE_ENABLE
public static final short STATE_ENABLEСостояние сервиса/соединения - доступ включен.- See Also:
-
-
Constructor Details
-
VoiceAccount
public VoiceAccount()
-
-
Method Details
-
getComment
Получение комментария аккаунта.- Returns:
- комментарий аккаунта
-
setComment
Установка комментария для аккаунта- Parameters:
comment- коммментарий
-
getNumber
public long getNumber()Получение номера телефона, привязанного к договору- Returns:
- строка с номером телефона
-
setNumber
public void setNumber(long number) Установка номера телефона для договора- Parameters:
number- номер телефона
-
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getStatus
-
setStatus
-
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
Получение логина, привязанного на договор- Returns:
- логин
-
setLogin
Установка логина- Parameters:
login- логин
-
getPassword
Получение пароля аккаунта.- Returns:
- пароль.
-
setPassword
Установка пароля для аккаунта.- Parameters:
passwd- пароль
-
getSessionCountLimit
public byte getSessionCountLimit() -
setSessionCountLimit
public void setSessionCountLimit(byte sessionCountLimit) -
getPorts
-
setPorts
-
getPortList
-
setPortList
-
getContractObjectId
public int getContractObjectId() -
setContractObjectId
public void setContractObjectId(int contractObjectId) -
getLineCount
public int getLineCount() -
setLineCount
public void setLineCount(int value) -
copyTo
-
builder
-
builder
-