@Controller
@RequestMapping(value="cmsTemplate")
public class CmsTemplateAdminController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private CacheComponent |
cacheComponent |
private CmsPlaceService |
cmsPlaceService |
protected org.apache.commons.logging.Log |
log |
protected LogOperateService |
logOperateService |
private MetadataComponent |
metadataComponent |
private ModelComponent |
modelComponent |
protected SiteComponent |
siteComponent |
protected SiteExchangeComponent |
siteExchangeComponent |
private SysDeptItemService |
sysDeptItemService |
private TemplateCacheComponent |
templateCacheComponent |
private TemplateComponent |
templateComponent |
构造器和说明 |
---|
CmsTemplateAdminController() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
createDirectory(SysSite site,
SysUser admin,
java.lang.String path,
java.lang.String name,
javax.servlet.http.HttpServletRequest request) |
java.lang.String |
delete(SysSite site,
SysUser admin,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
deletePlace(SysSite site,
SysUser admin,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
doImport(SysSite site,
SysUser admin,
org.springframework.web.multipart.MultipartFile file,
java.lang.String fileName,
boolean overwrite,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> |
export(SysSite site) |
java.lang.String |
lookupSiteImage(org.springframework.ui.ModelMap model) |
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> |
lookupSiteImage(java.lang.String sitefile,
java.lang.String imageFile) |
private void |
publish(SysSite site,
java.lang.String path) |
java.lang.String |
publish(SysSite site,
java.lang.String path,
org.springframework.ui.ModelMap model) |
java.lang.String |
publishPlace(SysSite site,
SysUser admin,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
replace(SysSite site,
SysUser admin,
TemplateReplaceParameters replaceParameters,
java.lang.String word,
java.lang.String replace,
javax.servlet.http.HttpServletRequest request) |
java.lang.String |
save(SysSite site,
SysUser admin,
java.lang.String path,
java.lang.String content,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
saveMetadata(SysSite site,
SysUser admin,
java.lang.String path,
CmsPageMetadata metadata,
java.lang.String content,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
savePlace(SysSite site,
SysUser admin,
java.lang.String path,
java.lang.String content,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
savePlaceMetaData(SysSite site,
SysUser admin,
java.lang.String path,
CmsPlaceMetadata metadata,
java.lang.String content,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
java.lang.String |
upload(SysSite site,
SysUser admin,
org.springframework.web.multipart.MultipartFile[] files,
boolean overwrite,
java.lang.String path,
java.lang.String encoding,
javax.servlet.http.HttpServletRequest request,
org.springframework.ui.ModelMap model) |
protected final org.apache.commons.logging.Log log
private TemplateComponent templateComponent
private TemplateCacheComponent templateCacheComponent
private CacheComponent cacheComponent
private MetadataComponent metadataComponent
private ModelComponent modelComponent
private CmsPlaceService cmsPlaceService
private SysDeptItemService sysDeptItemService
protected LogOperateService logOperateService
protected SiteComponent siteComponent
protected SiteExchangeComponent siteExchangeComponent
@RequestMapping(value="saveMetaData") public java.lang.String saveMetadata(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, @ModelAttribute CmsPageMetadata metadata, java.lang.String content, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- metadata
- content
- request
- model
- @RequestMapping(value="save") public java.lang.String save(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, java.lang.String content, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- content
- request
- model
- @RequestMapping(value="savePlaceMetaData") public java.lang.String savePlaceMetaData(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, @ModelAttribute CmsPlaceMetadata metadata, java.lang.String content, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- metadata
- content
- request
- model
- @RequestMapping(value="savePlace") public java.lang.String savePlace(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, java.lang.String content, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- content
- request
- model
- @RequestMapping(value="replace") public java.lang.String replace(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, @ModelAttribute TemplateReplaceParameters replaceParameters, java.lang.String word, java.lang.String replace, javax.servlet.http.HttpServletRequest request)
site
- admin
- replaceParameters
- word
- replace
- request
- @RequestMapping(value="doUpload") public java.lang.String upload(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, org.springframework.web.multipart.MultipartFile[] files, boolean overwrite, java.lang.String path, java.lang.String encoding, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- files
- overwrite
- path
- encoding
- request
- model
- @RequestMapping(value="export") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> export(@RequestAttribute SysSite site)
site
- @RequestMapping(value={"sitefileList.html","sitefileList"}) public java.lang.String lookupSiteImage(org.springframework.ui.ModelMap model)
model
- @RequestMapping(value="visitSitefileImage") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> lookupSiteImage(java.lang.String sitefile, java.lang.String imageFile)
sitefile
- imageFile
- @RequestMapping(value="doImport") public java.lang.String doImport(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, org.springframework.web.multipart.MultipartFile file, java.lang.String fileName, boolean overwrite, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- overwrite
- file
- fileName
- request
- model
- @RequestMapping(value="delete") public java.lang.String delete(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- request
- model
- @RequestMapping(value="deletePlace") public java.lang.String deletePlace(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- request
- model
- @RequestMapping(value="publishPlace") public java.lang.String publishPlace(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model)
site
- admin
- path
- request
- model
- @RequestMapping(value="publish") public java.lang.String publish(@RequestAttribute SysSite site, java.lang.String path, org.springframework.ui.ModelMap model)
site
- path
- model
- private void publish(SysSite site, java.lang.String path) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException
@RequestMapping(value="createDirectory") public java.lang.String createDirectory(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String path, java.lang.String name, javax.servlet.http.HttpServletRequest request)
site
- admin
- path
- name
- request
-