public abstract class AbstractMainbodyHandler extends java.lang.Object implements MainbodyHandler
Title: T1开发框架
Description: 正文组件接口抽象类
Copyright: Copyright (c) 2012
Company: seeyon.com
| 构造器和说明 |
|---|
AbstractMainbodyHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterSaveContent(CtpContentAllBean content)
保存正文之后需要执行的方法
|
void |
beforeSaveContent(CtpContentAllBean content)
保存正文之前需要执行的方法
|
boolean |
checkRight(CtpContentAllBean content)
校验当前用户是否有权限
|
com.seeyon.ctp.common.constants.ApplicationCategoryEnum |
getCategoryEnum(CtpContentAllBean content)
获取正文归属的应用分类
主要用于权限校验,如果返回为空,则默认为有权限打开
|
CtpContentAllBean |
handleContentSaveOrUpdate(CtpContentAllBean content,
boolean notSaveDB,
java.lang.String jsonStr)
内容提交,包括新建保存、修改保存处理
|
CtpContentAllBean |
handleContentView(CtpContentAllBean content)
内容应答,包括新建、查看时的内容浏览加工处理
|
CtpContentAllBean |
handleContentView(CtpContentAllBean content,
ContentContext context)
重构
MainbodyHandler.handleContentView(CtpContentAllBean), 取消 request和response的耦合 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic CtpContentAllBean handleContentSaveOrUpdate(CtpContentAllBean content, boolean notSaveDB, java.lang.String jsonStr) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandlerhandleContentSaveOrUpdate 在接口中 MainbodyHandlercontent - 内容组件对象notSaveDB - 不保存到DB中,用于预提交com.seeyon.ctp.common.exceptions.BusinessExceptionpublic CtpContentAllBean handleContentView(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandlerhandleContentView 在接口中 MainbodyHandlercontent - 内容组件对象com.seeyon.ctp.common.exceptions.BusinessExceptionpublic CtpContentAllBean handleContentView(CtpContentAllBean content, ContentContext context) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandlerMainbodyHandler.handleContentView(CtpContentAllBean), 取消 request和response的耦合handleContentView 在接口中 MainbodyHandlercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void beforeSaveContent(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
beforeSaveContent 在接口中 MainbodyHandlercontent - com.seeyon.ctp.common.exceptions.BusinessExceptionpublic void afterSaveContent(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
afterSaveContent 在接口中 MainbodyHandlercontent - com.seeyon.ctp.common.exceptions.BusinessExceptionpublic boolean checkRight(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandlercheckRight 在接口中 MainbodyHandlercontent - 正文com.seeyon.ctp.common.exceptions.BusinessExceptionpublic com.seeyon.ctp.common.constants.ApplicationCategoryEnum getCategoryEnum(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandlergetCategoryEnum 在接口中 MainbodyHandlercontent - 正文com.seeyon.ctp.common.exceptions.BusinessException