@Controller
@RequestMapping(value="content")
public class ContentController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private CmsCategoryModelService |
categoryModelService |
private CmsCategoryService |
categoryService |
private LockComponent |
lockComponent |
protected LogOperateService |
logOperateService |
private ModelComponent |
modelComponent |
protected SafeConfigComponent |
safeConfigComponent |
private CmsContentService |
service |
protected SiteComponent |
siteComponent |
private StatisticsComponent |
statisticsComponent |
构造器和说明 |
---|
ContentController() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
contentFileRedirect(SysSite site,
java.lang.Long contentId,
java.lang.Long id)
内容附件链接重定向并计数
|
java.lang.String |
contentRedirect(SysSite site,
java.lang.Long id)
内容链接重定向并计数
|
java.lang.String |
save(SysSite site,
CmsContent entity,
SysUser user,
java.lang.Boolean draft,
java.lang.String captcha,
CmsContentAttribute attribute,
CmsContentParameters contentParameters,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes model)
保存内容
|
private StatisticsComponent statisticsComponent
private CmsCategoryModelService categoryModelService
private CmsCategoryService categoryService
private ModelComponent modelComponent
protected LogOperateService logOperateService
protected SiteComponent siteComponent
private LockComponent lockComponent
protected SafeConfigComponent safeConfigComponent
private CmsContentService service
@PostMapping(value="save") public java.lang.String save(@RequestAttribute SysSite site, CmsContent entity, @SessionAttribute SysUser user, java.lang.Boolean draft, java.lang.String captcha, CmsContentAttribute attribute, @ModelAttribute CmsContentParameters contentParameters, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
site
- entity
- user
- draft
- captcha
- attribute
- contentParameters
- returnUrl
- request
- model
- @RequestMapping(value="redirect") public java.lang.String contentRedirect(@RequestAttribute SysSite site, java.lang.Long id)
site
- id
- @RequestMapping(value="fileRedirect") public java.lang.String contentFileRedirect(@RequestAttribute SysSite site, java.lang.Long contentId, java.lang.Long id)
site
- contentId
- id
-