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, wait
getType
public CtpContentAllBean handleContentSaveOrUpdate(CtpContentAllBean content, boolean notSaveDB, java.lang.String jsonStr) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandler
handleContentSaveOrUpdate
在接口中 MainbodyHandler
content
- 内容组件对象notSaveDB
- 不保存到DB中,用于预提交com.seeyon.ctp.common.exceptions.BusinessException
public CtpContentAllBean handleContentView(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandler
handleContentView
在接口中 MainbodyHandler
content
- 内容组件对象com.seeyon.ctp.common.exceptions.BusinessException
public CtpContentAllBean handleContentView(CtpContentAllBean content, ContentContext context) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandler
MainbodyHandler.handleContentView(CtpContentAllBean)
, 取消 request和response的耦合handleContentView
在接口中 MainbodyHandler
com.seeyon.ctp.common.exceptions.BusinessException
public void beforeSaveContent(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
beforeSaveContent
在接口中 MainbodyHandler
content
- com.seeyon.ctp.common.exceptions.BusinessException
public void afterSaveContent(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
afterSaveContent
在接口中 MainbodyHandler
content
- com.seeyon.ctp.common.exceptions.BusinessException
public boolean checkRight(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandler
checkRight
在接口中 MainbodyHandler
content
- 正文com.seeyon.ctp.common.exceptions.BusinessException
public com.seeyon.ctp.common.constants.ApplicationCategoryEnum getCategoryEnum(CtpContentAllBean content) throws com.seeyon.ctp.common.exceptions.BusinessException
MainbodyHandler
getCategoryEnum
在接口中 MainbodyHandler
content
- 正文com.seeyon.ctp.common.exceptions.BusinessException