Class CustomDispatchMessage
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.bgbilling.plugins.dispatch.common.bean.DispatchMessage
ru.bitel.bgbilling.plugins.dispatch.server.bean.message.CustomDispatchMessage
- All Implemented Interfaces:
java.io.Serializable,GuiTitlable,Idable,ListItem
- Direct Known Subclasses:
DispatchBalanceMessage
public abstract class CustomDispatchMessage extends DispatchMessage
Пользовательский класс для формирования произвольных сообщений для модуля Dispatch.
Можно считывать нужные данные из базы, обращаться к акшенам, использовать xsl-шаблоны.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.sql.Connectionconprotected intcontractIdprotected ContractManagercontractManagerFields inherited from class ru.bitel.bgbilling.plugins.dispatch.common.bean.DispatchMessage
messageBody -
Constructor Summary
Constructors Constructor Description CustomDispatchMessage() -
Method Summary
Modifier and Type Method Description abstract java.lang.StringgetMessageBody()Возвращает тело сообщенияvoidrecycle()voidsetConnection(java.sql.Connection con)voidsetContractId(int contractId)Methods inherited from class ru.bitel.bgbilling.plugins.dispatch.common.bean.DispatchMessage
getCreateDate, getDispatchId, getSendDate, isSent, setCreateDate, setDispatchId, setMessageBody, setSendDate, setSentMethods inherited from class ru.bitel.common.model.IdTitle
copyTo, getGuiTitle, getTitle, setTitle, toIdTitle, toStringMethods 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
con
protected java.sql.Connection con -
contractId
protected int contractId -
contractManager
-
-
Constructor Details
-
CustomDispatchMessage
public CustomDispatchMessage()
-
-
Method Details
-
setConnection
public void setConnection(java.sql.Connection con) -
setContractId
public void setContractId(int contractId) -
getMessageBody
public abstract java.lang.String getMessageBody()Description copied from class:DispatchMessageВозвращает тело сообщения- Overrides:
getMessageBodyin classDispatchMessage- Returns:
-
recycle
public void recycle()
-