public interface MainbodyManager
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkRight(CtpContentAllBean content,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
校验正文数据是否有权限查看
如无权限,给出前台提示:无权限查看该主题
|
void |
deleteById(java.lang.Long id)
根据ID删除ctp_Content_all数据
|
void |
deleteContentAllByFormAppId(java.lang.Long formAppId)
根据表单ID删除相关正文数据
|
void |
deleteContentAllByModuleId(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId)
根据模块ID删除正文数据
|
void |
deleteContentAllByMoudleTemplateIds(java.util.List<java.lang.Long> moduleTemplateId) |
java.util.Map |
getByModuleIdAndType(java.util.Map<java.lang.String,java.lang.Object> map) |
CtpContentAll |
getContentById(java.lang.Long id) |
MainbodyHandler |
getContentHandler(java.lang.Integer contentType) |
java.util.List<CtpContentAll> |
getContentList(java.util.Map<java.lang.String,java.lang.Object> params)
根据参数查询ctpContentALl,传入的参数map,其键值必须是ctpContentALL的属性,因为要将key作为属性来组装hql语句,这一点切记
默认分库查询
|
java.util.List<CtpContentAll> |
getContentList(java.util.Map<java.lang.String,java.lang.Object> params,
boolean needQueryFk)
根据参数查询ctpContentALl,传入的参数map,其键值必须是ctpContentALL的属性,因为要将key作为属性来组装hql语句,这一点切记
|
java.util.List<CtpContentAll> |
getContentList(java.util.Map<java.lang.String,java.lang.Object> params,
boolean needQueryFk,
int size) |
java.util.List<CtpContentAll> |
getContentList(java.util.Map<java.lang.String,java.lang.Object> params,
int size) |
java.util.List<CtpContentAll> |
getContentList(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
java.lang.String rightId)
(此方法为正文组件内部使用.不允许正文组件以外的地方调用,后果自负)
根据模块类型,与模块业务数据ID查询正文列表
|
java.util.List<CtpContentAll> |
getContentList(java.lang.String sql,
java.util.Map<java.lang.String,java.lang.Object> params)
根据传入的sql语句和参数查询cptContentAll 此方法用于需要增加默认的查询条件的时候使用,
传入的参数map,其键值必须是ctpContentALL的属性,因为要将key作为属性来组装hql语句,这一点切记
默认分库查询
|
java.util.List<CtpContentAll> |
getContentList(java.lang.String sql,
java.util.Map<java.lang.String,java.lang.Object> params,
boolean needQueryFk)
根据传入的sql语句和参数查询cptContentAll 此方法用于需要增加默认的查询条件的时候使用,
传入的参数map,其键值必须是ctpContentALL的属性,因为要将key作为属性来组装hql语句,这一点切记
|
java.util.List<CtpContentAll> |
getContentListByContentDataIdAndModuleType(int moduleType,
java.lang.Long contentDataId)
根据模块类型,与模块类型与contentDataId查询正文列表
|
java.util.List<CtpContentAll> |
getContentListByCreateTime(com.seeyon.ctp.common.ModuleType moduleType,
int contentType,
java.util.Date before,
java.util.Date after)
根据创建时间范围查询正文数据
|
java.util.List<CtpContentAll> |
getContentListByFlipInfo(com.seeyon.ctp.util.FlipInfo flipInfo,
java.util.Map<java.lang.String,java.lang.Object> param)
分页查询表单数据,包括有流程和无流程
|
java.util.List<CtpContentAll> |
getContentListByModuleIdAndModuleType(com.seeyon.ctp.common.ModuleType moduleType,
java.util.List<java.lang.Long> moduleIds) |
java.util.List<CtpContentAll> |
getContentListByModuleIdAndModuleType(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId)
根据模块类型,与模块业务数据ID查询正文列表
|
java.util.List<CtpContentAll> |
getContentListByModuleIdAndModuleType(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
boolean needSetTitle) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getContentListOnlyModuleAndDataId(java.lang.String sql,
java.util.Map<java.lang.String,java.lang.Object> params)
根据传入的sql语句和参数查询ctpContentAll 这个方法用于仅需要查询出部分字段的时候,不用去构造整个ctpContentAll对象
传入的参数map,其键值必须是ctpContentALL的属性,因为要将key作为属性来组装hql语句,这一点切记
|
int |
getContentSize(java.lang.String hql,
java.util.Map<java.lang.String,java.lang.Object> params,
boolean needQueryFk) |
java.util.List<CtpContentAll> |
getUnflowContentListByContentDataId(int contentType,
java.lang.Long contentDataId) |
CtpContentAllBean |
handContentByContentType(CtpContentAllBean content,
java.lang.Integer contentType)
已过时。
这个方法里面会直接获取 request 和 response , 请使用
handContentByContentType(CtpContentAllBean, Integer, ContentContext) |
CtpContentAllBean |
handContentByContentType(CtpContentAllBean content,
java.lang.Integer contentType,
ContentContext context)
|
void |
onlyDeleteContentByContentId(java.lang.Long id)
从数据库中删除正文数据[真正的id删除]
|
void |
onlyDeleteContentById(java.lang.Long id) |
void |
saveAll(java.util.List<CtpContentAll> contentAlls)
保存正文list
|
void |
saveOrUpdateContentAll(CtpContentAll contentAll)
保持或更新正文PO对象,根据主键记录是否存在自动判断
|
boolean |
signatureCheck(java.lang.String fileId,
java.lang.String affairId)
校验签名数据
|
com.seeyon.ctp.util.FlipInfo |
testContentList(com.seeyon.ctp.util.FlipInfo fi,
java.util.Map params)
测试用内容列表查询
|
CtpContentAllBean |
transContentNewResponse(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
MainbodyType contentType,
java.lang.String rightId,
java.util.Map<java.lang.String,java.lang.Object> map)
|
CtpContentAllBean |
transContentNewResponse(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
MainbodyType contentType,
java.lang.String rightId,
java.util.Map<java.lang.String,java.lang.Object> map,
ContentContext context)
重构
transContentNewResponse(ModuleType, Long, MainbodyType, String, Map) , 取消 request 和 response 深入传递 |
CtpContentAllBean |
transContentSaveOrUpdate(CtpContentAllBean content)
(此方法为正文组件内部使用.不允许正文组件以外的地方调用,后果自负)
内容提交接口,内容新建保存或内容更新实现
|
CtpContentAllBean |
transContentSaveOrUpdateWithoutDB(CtpContentAllBean content) |
java.util.List<CtpContentAllBean> |
transContentViewResponse(int moduleType,
java.lang.Long moduleId) |
java.util.List<CtpContentAllBean> |
transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
java.lang.Integer viewState,
java.lang.String rightId) |
java.util.List<CtpContentAllBean> |
transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
java.lang.Integer viewState,
java.lang.String rightId,
java.lang.Integer index)
(此方法为正文组件内部使用.不允许正文组件以外的地方调用,后果自负)
内容浏览应答显示接口,内容查看显示、修改显示
|
java.util.List<CtpContentAllBean> |
transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
java.lang.Integer viewState,
java.lang.String rightId,
java.lang.Integer index,
java.lang.Long fromCopy) |
java.util.List<CtpContentAllBean> |
transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
java.lang.Integer viewState,
java.lang.String rightId,
java.lang.Integer index,
java.lang.Long fromCopy,
boolean onlyGenList,
java.util.Map<java.lang.String,java.lang.Object> map) |
java.util.List<CtpContentAllBean> |
transContentViewResponseForGovdoc(com.seeyon.ctp.common.ModuleType moduleType,
java.lang.Long moduleId,
java.lang.Integer viewState,
java.lang.String rightId,
java.lang.Integer index,
java.lang.Long fromCopy,
java.util.Map<java.lang.String,java.lang.Object> map) |
int |
updateContentByModuleId(java.lang.Long moduleId,
java.lang.String content)
暂时主要使用公文联合发文来更新 相关公文的Content属性
|
int |
updateContentTitle(java.lang.Long id,
java.lang.String title)
协同发送之后更新正文标题
|
java.lang.Integer |
updateTitleByModuleId(java.lang.String title,
java.lang.Long moduleId)
根据moduleId更新标题
|
CtpContentAllBean transContentNewResponse(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, MainbodyType contentType, java.lang.String rightId, java.util.Map<java.lang.String,java.lang.Object> map) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- 显示内容的模块类型,协同、计划等moduleId
- 内容挂接模块IDcontentType
- 正文类型,如html、表单、Office等contentTemplateId
- 正文ID,需要内容模板ID的正文类型需要此参数,如表单正文时表单IDrightId
- 内容权限ID,内容模板需要权限控制时的需要此参数,如表单模板授权IDcom.seeyon.ctp.common.exceptions.BusinessException
CtpContentAllBean transContentNewResponse(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, MainbodyType contentType, java.lang.String rightId, java.util.Map<java.lang.String,java.lang.Object> map, ContentContext context) throws com.seeyon.ctp.common.exceptions.BusinessException
transContentNewResponse(ModuleType, Long, MainbodyType, String, Map)
, 取消 request 和 response 深入传递moduleType
- moduleId
- contentType
- rightId
- map
- context
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAll> getContentList(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, java.lang.String rightId) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType模块类型
- moduleId模块业务数据ID
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAll> getContentListByCreateTime(com.seeyon.ctp.common.ModuleType moduleType, int contentType, java.util.Date before, java.util.Date after) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- 对应ModuType 枚举before
- 开始日期after
- 截止日期contentType
- 正文类型,MainBodyType.Formcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAll> getContentListByFlipInfo(com.seeyon.ctp.util.FlipInfo flipInfo, java.util.Map<java.lang.String,java.lang.Object> param) throws com.seeyon.ctp.common.exceptions.BusinessException
flipInfo
- param
- 包含moduleType,正文类型(MainBodyType.Form),查询的起止日期com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAllBean> transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, java.lang.Integer viewState, java.lang.String rightId, java.lang.Integer index) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- 显示内容的模块类型,协同、计划等moduleId
- 内容挂接模块IDviewState
- 参看CtpContentAllBean静态常量 业务查看模式1;可编辑状态,2;只读状态,3;预览状态,可编辑但是控件没有JS事件rightId
- 内容权限ID,内容模板需要权限控制时的需要此参数,如表单模板授权IDindex
- 当前展示第几个正文(多视图正文)com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAllBean> transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, java.lang.Integer viewState, java.lang.String rightId) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- moduleId
- viewState
- rightId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAllBean> transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, java.lang.Integer viewState, java.lang.String rightId, java.lang.Integer index, java.lang.Long fromCopy) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- moduleId
- viewState
- rightId
- index
- fromCopy
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAllBean> transContentViewResponse(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, java.lang.Integer viewState, java.lang.String rightId, java.lang.Integer index, java.lang.Long fromCopy, boolean onlyGenList, java.util.Map<java.lang.String,java.lang.Object> map) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- moduleId
- viewState
- rightId
- index
- fromCopy
- onlyGenList
- 只生成contentList列表,不处理内容,给协同生成页签使用com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAllBean> transContentViewResponse(int moduleType, java.lang.Long moduleId) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- moduleId
- com.seeyon.ctp.common.exceptions.BusinessException
CtpContentAllBean transContentSaveOrUpdate(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
content
- com.seeyon.ctp.common.exceptions.BusinessException
CtpContentAllBean transContentSaveOrUpdateWithoutDB(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAll> getContentListByModuleIdAndModuleType(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId)
moduleType
- moduleId
- java.util.List<CtpContentAll> getContentListByModuleIdAndModuleType(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, boolean needSetTitle)
moduleType
- moduleId
- needSetTitle
- 是否需要修改contentall中的标题java.util.List<CtpContentAll> getContentListByContentDataIdAndModuleType(int moduleType, java.lang.Long contentDataId)
moduleType
- 模块类型contentDataId
- java.util.List<CtpContentAll> getUnflowContentListByContentDataId(int contentType, java.lang.Long contentDataId)
void saveOrUpdateContentAll(CtpContentAll contentAll) throws com.seeyon.ctp.common.exceptions.BusinessException
contentAll
- 要保存或更新的正文PO对象com.seeyon.ctp.common.exceptions.BusinessException
void saveAll(java.util.List<CtpContentAll> contentAlls) throws com.seeyon.ctp.common.exceptions.BusinessException
contentAlls
- com.seeyon.ctp.common.exceptions.BusinessException
void deleteContentAllByModuleId(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- 模块类型moduleId
- 要删除正文数据的模块IDcom.seeyon.ctp.common.exceptions.BusinessException
void deleteContentAllByFormAppId(java.lang.Long formAppId) throws com.seeyon.ctp.common.exceptions.BusinessException
formAppId
- com.seeyon.ctp.common.exceptions.BusinessException
void deleteContentAllByMoudleTemplateIds(java.util.List<java.lang.Long> moduleTemplateId) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleTemplateId
- com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.util.FlipInfo testContentList(com.seeyon.ctp.util.FlipInfo fi, java.util.Map params) throws com.seeyon.ctp.common.exceptions.BusinessException
fi
- 翻页查询对象params
- 翻页查询参数com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandler getContentHandler(java.lang.Integer contentType) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
int updateContentTitle(java.lang.Long id, java.lang.String title)
id
- title
- int updateContentByModuleId(java.lang.Long moduleId, java.lang.String content)
id
- title
- void deleteById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- com.seeyon.ctp.common.exceptions.BusinessException
void onlyDeleteContentById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
void onlyDeleteContentByContentId(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map getByModuleIdAndType(java.util.Map<java.lang.String,java.lang.Object> map) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<CtpContentAll> getContentListByModuleIdAndModuleType(com.seeyon.ctp.common.ModuleType moduleType, java.util.List<java.lang.Long> moduleIds)
CtpContentAll getContentById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
boolean checkRight(CtpContentAllBean content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.seeyon.ctp.common.exceptions.BusinessException
content
- 正文数据request
- reqresponse
- rescom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer updateTitleByModuleId(java.lang.String title, java.lang.Long moduleId)
title
- 标题moduleId
- 业务对象IDjava.util.List<CtpContentAll> getContentList(java.util.Map<java.lang.String,java.lang.Object> params)
params
- 传入的查询参数java.util.List<CtpContentAll> getContentList(java.util.Map<java.lang.String,java.lang.Object> params, int size)
java.util.List<CtpContentAll> getContentList(java.util.Map<java.lang.String,java.lang.Object> params, boolean needQueryFk)
params
- 传入的查询参数needQueryFk
- 是否需要查询分库java.util.List<CtpContentAll> getContentList(java.util.Map<java.lang.String,java.lang.Object> params, boolean needQueryFk, int size)
java.util.List<CtpContentAll> getContentList(java.lang.String sql, java.util.Map<java.lang.String,java.lang.Object> params)
sql
- 已经组装好的hql语句params
- 传入的查询参数java.util.List<CtpContentAll> getContentList(java.lang.String sql, java.util.Map<java.lang.String,java.lang.Object> params, boolean needQueryFk)
sql
- 已经组装好的hql语句params
- 传入的查询参数needQueryFk
- 是否需要查询分库java.util.List<CtpContentAllBean> transContentViewResponseForGovdoc(com.seeyon.ctp.common.ModuleType moduleType, java.lang.Long moduleId, java.lang.Integer viewState, java.lang.String rightId, java.lang.Integer index, java.lang.Long fromCopy, java.util.Map<java.lang.String,java.lang.Object> map) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
CtpContentAllBean handContentByContentType(CtpContentAllBean content, java.lang.Integer contentType) throws com.seeyon.ctp.common.exceptions.BusinessException
handContentByContentType(CtpContentAllBean, Integer, ContentContext)
content
- contentType
- com.seeyon.ctp.common.exceptions.BusinessException
CtpContentAllBean handContentByContentType(CtpContentAllBean content, java.lang.Integer contentType, ContentContext context) throws com.seeyon.ctp.common.exceptions.BusinessException
content
- contentType
- context
- com.seeyon.ctp.common.exceptions.BusinessException
int getContentSize(java.lang.String hql, java.util.Map<java.lang.String,java.lang.Object> params, boolean needQueryFk)
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getContentListOnlyModuleAndDataId(java.lang.String sql, java.util.Map<java.lang.String,java.lang.Object> params)
sql
- 已经组装好的hql语句params
- 传入的查询参数boolean signatureCheck(java.lang.String fileId, java.lang.String affairId)
fileId
- affairId
-