@Controller @RequestMapping(value="/writer/{instance}/editArticle") public class WriterEditArticleController extends Object
Constructor and Description |
---|
WriterEditArticleController() |
Modifier and Type | Method and Description |
---|---|
String |
createArticle(javax.servlet.http.HttpServletRequest request,
Article article,
String instance) |
String |
createArticle(javax.servlet.http.HttpServletRequest request,
String userAgent,
String instance,
org.springframework.ui.Model uiModel)
This method is called by ajax when using the native app to create articles
|
String |
discardArticle(javax.servlet.http.HttpServletRequest request,
String instance,
long articleId) |
String |
editExistingArticle(javax.servlet.http.HttpServletRequest request,
long articleId,
String instance,
org.springframework.ui.Model uiModel)
Edit existing article
|
String |
handleHttpSessionRequiredException(org.springframework.web.HttpSessionRequiredException ex)
This will happen in the rare case where the user created a new article, saved it
and goes back in history.
|
String |
index(String instance)
Default page for writer
|
String |
maintainArticle(javax.servlet.http.HttpServletRequest request,
Article articleObj,
org.springframework.web.multipart.MultipartFile videoFile,
org.springframework.web.multipart.MultipartFile imageFile,
int pageAction,
long topicId,
Long articleId,
boolean removeImage,
boolean removeVideo,
String instance,
org.springframework.ui.Model uiModel) |
org.springframework.http.ResponseEntity<String> |
mediaUpload(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile mediaFile,
int mediaType,
long articleId,
org.springframework.ui.Model uiModel) |
void |
setWriterService(WriterService service) |
public WriterEditArticleController()
public void setWriterService(WriterService service)
@RequestMapping(method=GET) public String index(@PathVariable(value="instance") String instance)
uiModel
- @ExceptionHandler(value=org.springframework.web.HttpSessionRequiredException.class) public String handleHttpSessionRequiredException(org.springframework.web.HttpSessionRequiredException ex)
ex
- @RequestMapping(value="/{articleId}", method=GET) public String editExistingArticle(javax.servlet.http.HttpServletRequest request, @PathVariable long articleId, @PathVariable(value="instance") String instance, org.springframework.ui.Model uiModel)
@RequestMapping(value="/new", method=GET) public String createArticle(javax.servlet.http.HttpServletRequest request, @RequestHeader(required=false,value="User-Agent",defaultValue="unknown") String userAgent, @PathVariable(value="instance") String instance, org.springframework.ui.Model uiModel)
@RequestMapping(value="/createNew", method=POST) @ResponseBody public String createArticle(javax.servlet.http.HttpServletRequest request, @ModelAttribute(value="article") Article article, @PathVariable(value="instance") String instance)
@RequestMapping(value="/discard/{articleId}", method=GET) public String discardArticle(javax.servlet.http.HttpServletRequest request, @PathVariable(value="instance") String instance, @PathVariable long articleId)
@RequestMapping(value="/maintainArticle") public String maintainArticle(javax.servlet.http.HttpServletRequest request, @ModelAttribute(value="article") Article articleObj, @RequestParam(value="uploadVideo",required=false) org.springframework.web.multipart.MultipartFile videoFile, @RequestParam(value="uploadImage",required=false) org.springframework.web.multipart.MultipartFile imageFile, @RequestParam(value="pageAction",required=true) int pageAction, @RequestParam(value="topicId",required=true) long topicId, @RequestParam(value="articleId",required=false) Long articleId, @RequestParam(value="removeImage",required=false,defaultValue="false") boolean removeImage, @RequestParam(value="removeVideo",required=false,defaultValue="false") boolean removeVideo, @PathVariable(value="instance") String instance, org.springframework.ui.Model uiModel)
@RequestMapping(value="/mediaUpload", method=POST) public org.springframework.http.ResponseEntity<String> mediaUpload(javax.servlet.http.HttpServletRequest request, @RequestParam(value="file",required=false) org.springframework.web.multipart.MultipartFile mediaFile, @RequestParam(value="mediaType") int mediaType, @RequestParam(value="articleId",required=false) long articleId, org.springframework.ui.Model uiModel)
Copyright © 2011–2014 The Kuali Foundation. All rights reserved.