public class DocCommentManagerImpl extends java.lang.Object implements DocCommentManager
| Constructor and Description |
|---|
DocCommentManagerImpl() |
| 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-通过;
|
public void updateCommentStatus(java.lang.String docCommentId,
int newStatus)
throws DocCommentManagerException
DocCommentManagerupdateCommentStatus in interface DocCommentManagerDocCommentManagerExceptionpublic void addOneComment(DocComment docComment) throws DocCommentManagerException
DocCommentManageraddOneComment in interface DocCommentManagerDocCommentManagerExceptionpublic void delAllComments()
throws DocCommentManagerException
DocCommentManagerdelAllComments in interface DocCommentManagerDocCommentManagerExceptionpublic void delCommentsByDocId(int docId)
throws DocCommentManagerException
DocCommentManagerdelCommentsByDocId in interface DocCommentManagerDocCommentManagerExceptionpublic void delOneCommentByComId(int docCommentId)
throws DocCommentManagerException
DocCommentManagerdelOneCommentByComId in interface DocCommentManagerDocCommentManagerExceptionpublic DocComment getCommentByComId(int docCommentId) throws DocCommentManagerException
DocCommentManagergetCommentByComId in interface DocCommentManagerDocCommentManagerExceptionpublic int getCommentCount()
throws DocCommentManagerException
DocCommentManagergetCommentCount in interface DocCommentManagerDocCommentManagerExceptionpublic int getCommentCount(int docId)
throws DocCommentManagerException
DocCommentManagergetCommentCount in interface DocCommentManagerDocCommentManagerExceptionpublic int getCommentPublishedCount(int docId)
throws DocCommentManagerException
DocCommentManagergetCommentPublishedCount in interface DocCommentManagerDocCommentManagerExceptionpublic int getSiteCommentPublishedCount()
throws DocCommentManagerException
DocCommentManagergetSiteCommentPublishedCount in interface DocCommentManagerDocCommentManagerExceptionpublic int getChannelCommentPublishedCount(java.lang.String channel)
throws DocCommentManagerException
DocCommentManagergetChannelCommentPublishedCount in interface DocCommentManagerDocCommentManagerExceptionpublic com.frameworkset.util.ListInfo getCommnetList(int docId,
int offset,
int maxItem)
throws java.sql.SQLException
DocCommentManagergetCommnetList in interface DocCommentManagerjava.sql.SQLExceptionpublic NComentList getCommnetList(int docId, int n) throws java.lang.Exception
DocCommentManagergetCommnetList in interface DocCommentManagerjava.sql.SQLExceptionjava.lang.Exceptionpublic NComentList getSiteCommnetList(int n) throws java.lang.Exception
getSiteCommnetList in interface DocCommentManagern - java.sql.SQLExceptionjava.lang.Exceptionpublic NComentList getChannelCommnetList(java.lang.String channel, int n) throws java.lang.Exception
getChannelCommnetList in interface DocCommentManagern - java.sql.SQLExceptionjava.lang.Exceptionpublic int getTotalCommnet(int docId)
throws java.sql.SQLException
DocCommentManagergetTotalCommnet in interface DocCommentManagerjava.sql.SQLExceptionpublic com.frameworkset.util.ListInfo getCommnetList(java.lang.String sql,
int offset,
int maxItem)
throws DocCommentManagerException
DocCommentManagergetCommnetList in interface DocCommentManagerDocCommentManagerExceptionpublic void delCommentsByComId(java.lang.String[] docCommentIds)
throws DocCommentManagerException
DocCommentManagerdelCommentsByComId in interface DocCommentManagerDocCommentManagerExceptionpublic void updateCommentStatus(java.lang.String[] docCommentIds,
int newStatus)
throws DocCommentManagerException
DocCommentManagerupdateCommentStatus in interface DocCommentManagerDocCommentManagerExceptionpublic int[] getResponseInfo(int docCommentId)
throws DocCommentManagerException
DocCommentManagergetResponseInfo in interface DocCommentManagerDocCommentManagerExceptionpublic int getFilteredCommentCount(int docId)
throws DocCommentManagerException
DocCommentManagergetFilteredCommentCount in interface DocCommentManagerDocCommentManagerExceptionpublic int getHotCommentCount(int docId)
throws DocCommentManagerException
DocCommentManagergetHotCommentCount in interface DocCommentManagerDocCommentManagerExceptionpublic void switchDocCommentFunction(java.lang.String id,
java.lang.String commentSwitch,
java.lang.String docorchnl)
throws DocCommentManagerException
DocCommentManagerswitchDocCommentFunction in interface DocCommentManagercommentSwitch - 值为“open” 或者“close”docorchnl - 值为“doc” 或 “chnl”DocCommentManagerExceptionpublic int getDocCommentSwitch(java.lang.String id,
java.lang.String docorchnl)
throws DocCommentManagerException
DocCommentManagergetDocCommentSwitch in interface DocCommentManagerdocorchnl - 值为“doc” 或 “chnl”DocCommentManagerExceptionpublic void addDocCommentImpeach(CommentImpeach commentImpeach) throws DocCommentManagerException
DocCommentManageraddDocCommentImpeach in interface DocCommentManagerDocCommentManagerExceptionpublic com.frameworkset.util.ListInfo getCommnetImpeachList(java.lang.String sql,
int offset,
int maxItem)
throws DocCommentManagerException
DocCommentManagergetCommnetImpeachList in interface DocCommentManagerDocCommentManagerExceptionpublic void deleteImpeachInfo(java.lang.String impeacheId)
throws DocCommentManagerException
DocCommentManagerdeleteImpeachInfo in interface DocCommentManagerDocCommentManagerExceptionpublic void deleteImpeachInfos(java.lang.String[] impeacheIds)
throws DocCommentManagerException
DocCommentManagerdeleteImpeachInfos in interface DocCommentManagerDocCommentManagerExceptionpublic void replyImpeach(java.lang.String impeacheId,
java.lang.String toEmail,
java.lang.String toName,
java.lang.String subject,
java.lang.String msg)
throws DocCommentManagerException
DocCommentManagerreplyImpeach in interface DocCommentManagerDocCommentManagerExceptionpublic com.frameworkset.util.ListInfo getCommentDictList(java.lang.String sql,
int offset,
int maxItem)
throws DocCommentManagerException
DocCommentManagergetCommentDictList in interface DocCommentManagerDocCommentManagerExceptionpublic java.lang.Integer getChannelCommentAduitSwitch(int channelId)
throws java.sql.SQLException
DocCommentManagergetChannelCommentAduitSwitch in interface DocCommentManagerchannelId - 频道IDjava.sql.SQLExceptionpublic void switchDocCommentAudit(int channelId,
int switchFlag)
throws java.sql.SQLException
DocCommentManagerswitchDocCommentAudit in interface DocCommentManagerswitchFlag - 是否开启java.sql.SQLException