Class VoiceAccountChangingEvent
java.lang.Object
ru.bitel.bgbilling.kernel.event.common.Event
ru.bitel.bgbilling.kernel.event.common.QueueEvent
ru.bitel.bgbilling.kernel.event.common.LocalEvent
ru.bitel.bgbilling.modules.voice.server.event.VoiceAccountChangingEvent
- All Implemented Interfaces:
Serializable
,ErrorReturnableEvent
public class VoiceAccountChangingEvent
extends ru.bitel.bgbilling.kernel.event.common.LocalEvent
implements ErrorReturnableEvent
- See Also:
-
Field Summary
Fields inherited from class ru.bitel.bgbilling.kernel.event.common.Event
CONTRACT_GLOBAL, NO_MODULE, NO_PLUGIN
-
Constructor Summary
ConstructorsConstructorDescriptionVoiceAccountChangingEvent
(int moduleId, int userId, VoiceAccount oldVoiceAccount, VoiceAccount newVoiceAccount) -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Возвращает ошибку при правке сервиса.Возвращает изменяемый сервис договора.Возвращает предыдущее значение изменяемого сервиса договора.Возвращает изменяемый сервис договора (не рекомендуемый синоним для#getNewInetServ()
).void
Устанавливает ошибку при правке сервиса.Methods inherited from class ru.bitel.bgbilling.kernel.event.common.Event
getContractId, getDestination, getGenerateTime, getMessageID, getModuleId, getPluginId, getSource, getSuperContractId, getTime, getTimestamp, getTypeId, getUserId, isLogFunctionProcess, prepareMessage, serializeAsObject, setLogFunctionProcess, setMessageID, setSource, toString, toString
-
Constructor Details
-
VoiceAccountChangingEvent
public VoiceAccountChangingEvent(int moduleId, int userId, VoiceAccount oldVoiceAccount, VoiceAccount newVoiceAccount)
-
-
Method Details
-
getNewVoiceAccount
Возвращает изменяемый сервис договора.- Returns:
-
getOldVoiceAccount
Возвращает предыдущее значение изменяемого сервиса договора.- Returns:
-
getVoiceAccount
Возвращает изменяемый сервис договора (не рекомендуемый синоним для#getNewInetServ()
).- Returns:
-
getError
Возвращает ошибку при правке сервиса. При наличие ошибки правка отменяется.- Specified by:
getError
in interfaceErrorReturnableEvent
- Overrides:
getError
in classru.bitel.bgbilling.kernel.event.common.LocalEvent
- Returns:
-
setError
Устанавливает ошибку при правке сервиса.- Specified by:
setError
in interfaceErrorReturnableEvent
- Overrides:
setError
in classru.bitel.bgbilling.kernel.event.common.LocalEvent
- Parameters:
error
-
-