Class HelpDeskDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.HelpDeskDAO
-
Field Summary
Fields inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
dbInfo, jsonMapper, jsonTypeFactory, transferData, user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getAttach(int contractId, int id) getMessage(int topicId, int messageId) getTopicWithMessages(int topicId) Requests a single topic with related massages.voidmarkMessageRead(int messageId) voidvoidvoidsetTopicAutoClose(int contractId, int topicId, boolean value) voidsetTopicCost(int contractId, int topicId, BigDecimal cost) voidsetTopicExecutor(int topicId, int billingUserId) voidsetTopicExecutorMe(int topicId) voidsetTopicState(int topicId, boolean stateClose) voidsetTopicStatus(int contractId, int topicId, int status) voidupdateMessage(int topicId, HdMessage msg) Methods inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
doRequest, getDbInfo, getPage, getParameterId, getVersion, linesToString, readJsonValue, setPage
-
Constructor Details
-
HelpDeskDAO
-
-
Method Details
-
getTopicWithMessages
Requests a single topic with related massages.- Parameters:
topicId- the topic ID.- Returns:
- the topic - messages pair, or
null
-
updateMessage
-
getMessage
-
searchTopicsWithMessages
-
markMessageRead
public void markMessageRead(int messageId) -
setTopicState
public void setTopicState(int topicId, boolean stateClose) -
setTopicExecutor
public void setTopicExecutor(int topicId, int billingUserId) -
setTopicExecutorMe
public void setTopicExecutorMe(int topicId) -
setTopicStatus
public void setTopicStatus(int contractId, int topicId, int status) -
setTopicAutoClose
public void setTopicAutoClose(int contractId, int topicId, boolean value) -
setTopicCost
-
getAttach
- Throws:
Exception
-
putAttach
- Throws:
Exception
-