@RequestMapping(value="/microblog/*/widgets/image/GlobalIdUploadImageUploader.json") public class GlobalIdUploadImageController extends Object
Constructor and Description |
---|
GlobalIdUploadImageController() |
Modifier and Type | Method and Description |
---|---|
void |
setDefault(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String entityId,
String imageType)
Method to reset the image of the given entity to the default type.
|
org.springframework.web.servlet.ModelAndView |
uploadImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.multipart.MultipartFile image,
String entityId,
String imageType,
String sendHtmlResponse) |
@RequestMapping(method=POST, produces="application/json", params="widgetAction=reset_default") public void setDefault(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @RequestParam(value="entityId",required=true) String entityId, @RequestParam(value="imageType",required=true) String imageType) throws IOException
request
- The send request.response
- The response.entityId
- Id of the entity to change.imageType
- Type of the image.IOException
- Thrown, when the output can't be written.@RequestMapping(method=POST, params="widgetAction=upload_image") public org.springframework.web.servlet.ModelAndView uploadImage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @RequestParam(value="file",required=true) org.springframework.web.multipart.MultipartFile image, @RequestParam(value="entityId",required=true) String entityId, @RequestParam(value="imageType",required=true) String imageType, @RequestParam(value="htmlResponse",required=false) String sendHtmlResponse) throws IOException
request
- The send request.response
- The responseimage
- The image.entityId
- The entities id.imageType
- Type of the image.IOException
- Thrown, when the output can't be written.Copyright © 2019 Communote team. All rights reserved.