public interface DocCommentManager
| Modifier and Type | Method and Description |
|---|---|
void |
addDocCommentImpeach(CommentImpeach commentImpeach)
增加一条评论举报
|
void |
addOneComment(DocComment docComment)
增加一条文档评论
|
void |
delAllComments()
删除所有评论
|
void |
delCommentsByComId(java.lang.String[] docCommentIds)
批量删除评论id,docCommentIds
|
void |
delCommentsByDocId(int docId)
删除指定文档的所有评论
|
void |
deleteImpeachInfo(java.lang.String impeacheId)
删除单个举报信息
|
void |
deleteImpeachInfos(java.lang.String[] impeacheIds)
批量删除举报信息
|
void |
delOneCommentByComId(int docCommentId)
删除指定评论id对应的评论
|
java.lang.Integer |
getChannelCommentAduitSwitch(int channelId)
根据频道ID获取频道评论审核的开关信息
|
int |
getChannelCommentPublishedCount(java.lang.String channel)
获取频道已发布的评论总数
|
NComentList |
getChannelCommnetList(java.lang.String channel,
int n)
获取频道评论 前n条数据
|
DocComment |
getCommentByComId(int docCommentId)
根据指定评论id获取评论
|
int |
getCommentCount()
获取评论总数
|
int |
getCommentCount(int docId)
获取指定文档的评论数
|
com.frameworkset.util.ListInfo |
getCommentDictList(java.lang.String sql,
int offset,
int maxItem)
获取评论字典词汇列表
|
int |
getCommentPublishedCount(int docId)
获取已发布的评论总数
|
com.frameworkset.util.ListInfo |
getCommnetImpeachList(java.lang.String sql,
int offset,
int maxItem)
获取评论的举报信息列表
|
NComentList |
getCommnetList(int docId,
int n)
获取文档评论 前n条数据
|
com.frameworkset.util.ListInfo |
getCommnetList(int docId,
int offset,
int maxItem)
获取指定文档id获取文档列表
|
com.frameworkset.util.ListInfo |
getCommnetList(java.lang.String sql,
int offset,
int maxItem)
根据sql查询语句获取文档列表
|
int |
getDocCommentSwitch(java.lang.String id,
java.lang.String docorchnl)
获取频道或者文档是否开通频道的信息
|
int |
getFilteredCommentCount(int docId)
获取指定文档的已过滤水贴的评论数
|
int |
getHotCommentCount(int docId)
获取指定文档的热门评论数
|
int[] |
getResponseInfo(int docCommentId)
获取指定评论的回复情况
|
int |
getSiteCommentPublishedCount()
获取站点已发布的评论总数
|
NComentList |
getSiteCommnetList(int n)
获取站点评论 前n条数据
|
int |
getTotalCommnet(int docId)
获取总评论数
|
void |
replyImpeach(java.lang.String impeacheId,
java.lang.String toEmail,
java.lang.String toName,
java.lang.String subject,
java.lang.String msg)
举报信息邮件回复
|
void |
switchDocCommentAudit(int channelId,
int switchFlag)
切换频道的评论审核开关
|
void |
switchDocCommentFunction(java.lang.String id,
java.lang.String commentSwitch,
java.lang.String docorchnl)
开通open(或者关闭close)评论功能
如果docorchnl为“doc”则表示开通或关闭文档评论功能
如果docorchnl为“chnl”则表示开通或关闭频道评论功能
|
void |
updateCommentStatus(java.lang.String[] docCommentIds,
int newStatus)
批量更新
|
void |
updateCommentStatus(java.lang.String docCommentId,
int newStatus)
更新指定评论的状态,初始状态:0-未审;审核通过更新为:1-通过;
|
void addOneComment(DocComment docComment) throws DocCommentManagerException
docComment - DocCommentManagerExceptionint getCommentCount()
throws DocCommentManagerException
DocCommentManagerExceptionint getCommentPublishedCount(int docId)
throws DocCommentManagerException
DocCommentManagerExceptionint getSiteCommentPublishedCount()
throws DocCommentManagerException
DocCommentManagerExceptionint getChannelCommentPublishedCount(java.lang.String channel)
throws DocCommentManagerException
DocCommentManagerExceptionint getCommentCount(int docId)
throws DocCommentManagerException
docId - DocCommentManagerExceptionint getHotCommentCount(int docId)
throws DocCommentManagerException
docId - DocCommentManagerExceptionint getFilteredCommentCount(int docId)
throws DocCommentManagerException
docId - DocCommentManagerExceptionvoid delOneCommentByComId(int docCommentId)
throws DocCommentManagerException
docId - DocCommentManagerExceptionvoid delCommentsByComId(java.lang.String[] docCommentIds)
throws DocCommentManagerException
docCommentIds - DocCommentManagerExceptionvoid delCommentsByDocId(int docId)
throws DocCommentManagerException
docId - DocCommentManagerExceptionvoid delAllComments()
throws DocCommentManagerException
DocCommentManagerExceptioncom.frameworkset.util.ListInfo getCommnetList(int docId,
int offset,
int maxItem)
throws java.sql.SQLException
docId - offset - maxItem - DocCommentManagerExceptionjava.sql.SQLExceptionNComentList getCommnetList(int docId, int n) throws java.lang.Exception
docId - java.sql.SQLExceptionjava.lang.ExceptionNComentList getSiteCommnetList(int n) throws java.lang.Exception
n - java.sql.SQLExceptionjava.lang.ExceptionNComentList getChannelCommnetList(java.lang.String channel, int n) throws java.lang.Exception
channel - n - java.sql.SQLExceptionjava.lang.Exceptionint getTotalCommnet(int docId)
throws java.sql.SQLException
docId - java.sql.SQLExceptioncom.frameworkset.util.ListInfo getCommnetList(java.lang.String sql,
int offset,
int maxItem)
throws DocCommentManagerException
sql - offset - maxItem - DocCommentManagerExceptionDocComment getCommentByComId(int docCommentId) throws DocCommentManagerException
docCommentId - DocCommentManagerExceptionvoid updateCommentStatus(java.lang.String docCommentId,
int newStatus)
throws DocCommentManagerException
docCommentId - DocCommentManagerExceptionvoid updateCommentStatus(java.lang.String[] docCommentIds,
int newStatus)
throws DocCommentManagerException
docCommentIds - DocCommentManagerExceptionint[] getResponseInfo(int docCommentId)
throws DocCommentManagerException
docCommentId - DocCommentManagerExceptionvoid switchDocCommentFunction(java.lang.String id,
java.lang.String commentSwitch,
java.lang.String docorchnl)
throws DocCommentManagerException
docCommentId - commentSwitch - 值为“open” 或者“close”docorchnl - 值为“doc” 或 “chnl”DocCommentManagerExceptionint getDocCommentSwitch(java.lang.String id,
java.lang.String docorchnl)
throws DocCommentManagerException
id - docorchnl - 值为“doc” 或 “chnl”DocCommentManagerExceptionvoid addDocCommentImpeach(CommentImpeach commentImpeach) throws DocCommentManagerException
commentImpeach - DocCommentManagerExceptioncom.frameworkset.util.ListInfo getCommnetImpeachList(java.lang.String sql,
int offset,
int maxItem)
throws DocCommentManagerException
sql - offset - maxItem - DocCommentManagerExceptionvoid deleteImpeachInfo(java.lang.String impeacheId)
throws DocCommentManagerException
impeache - DocCommentManagerExceptionvoid deleteImpeachInfos(java.lang.String[] impeacheIds)
throws DocCommentManagerException
impeaches - DocCommentManagerExceptionvoid replyImpeach(java.lang.String impeacheId,
java.lang.String toEmail,
java.lang.String toName,
java.lang.String subject,
java.lang.String msg)
throws DocCommentManagerException
impeacheId - DocCommentManagerExceptioncom.frameworkset.util.ListInfo getCommentDictList(java.lang.String sql,
int offset,
int maxItem)
throws DocCommentManagerException
sql - offset - maxItem - DocCommentManagerExceptionjava.lang.Integer getChannelCommentAduitSwitch(int channelId)
throws java.sql.SQLException
channelId - 频道IDjava.sql.SQLExceptionvoid switchDocCommentAudit(int channelId,
int switchFlag)
throws java.sql.SQLException
switchFlag - 是否开启java.sql.SQLException