public interface MainbodyHandler
Title: T1开发框架
Description: 正文组件处理器接口
Copyright: Copyright (c) 2012
Company: seeyon.com
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterSaveContent(CtpContentAllBean content)
保存正文之后需要执行的方法
|
void |
beforeSaveContent(CtpContentAllBean content)
保存正文之前需要执行的方法
|
boolean |
checkRight(CtpContentAllBean content)
校验当前用户是否有权限
|
com.seeyon.ctp.common.constants.ApplicationCategoryEnum |
getCategoryEnum(CtpContentAllBean content)
获取正文归属的应用分类
主要用于权限校验,如果返回为空,则默认为有权限打开
|
MainbodyType |
getType()
返回当前正文组件类型,对应Content对象的contentType,如10 – html正文;20 – 表单正文。。。
|
CtpContentAllBean |
handleContentSaveOrUpdate(CtpContentAllBean content,
boolean notSaveDB,
java.lang.String jsonStr)
内容提交,包括新建保存、修改保存处理
|
CtpContentAllBean |
handleContentView(CtpContentAllBean content)
|
CtpContentAllBean |
handleContentView(CtpContentAllBean content,
ContentContext context)
重构
handleContentView(CtpContentAllBean), 取消 request和response的耦合 |
MainbodyType getType()
CtpContentAllBean handleContentView(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
content - 内容组件对象com.seeyon.ctp.common.exceptions.BusinessExceptionCtpContentAllBean handleContentView(CtpContentAllBean content, ContentContext context) throws com.seeyon.ctp.common.exceptions.BusinessException
handleContentView(CtpContentAllBean), 取消 request和response的耦合content - context - com.seeyon.ctp.common.exceptions.BusinessExceptionCtpContentAllBean handleContentSaveOrUpdate(CtpContentAllBean content, boolean notSaveDB, java.lang.String jsonStr) throws com.seeyon.ctp.common.exceptions.BusinessException
content - 内容组件对象notSaveDB - 不保存到DB中,用于预提交com.seeyon.ctp.common.exceptions.BusinessExceptionvoid beforeSaveContent(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
content - com.seeyon.ctp.common.exceptions.BusinessExceptionvoid afterSaveContent(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
content - com.seeyon.ctp.common.exceptions.BusinessExceptionboolean checkRight(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
content - 正文request - reqresponse - rescom.seeyon.ctp.common.exceptions.BusinessExceptioncom.seeyon.ctp.common.constants.ApplicationCategoryEnum getCategoryEnum(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
content - 正文com.seeyon.ctp.common.exceptions.BusinessException