@Controller
@RequestMapping(path="VIEW",
params="view=attached")
public class EditorImageSourceAttachedController
extends Object
| Constructor and Description |
|---|
EditorImageSourceAttachedController()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
EditorImageSourceAttachedForm attachedForm)
Add attached image.
|
void |
delete(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
String index,
EditorImageSourceAttachedForm attachedForm)
Delete attached image action mapping.
|
EditorImageSourceAttachedForm |
getAttachedForm(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Get attached image form model attribute.
|
void |
select(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
String index,
EditorImageSourceAttachedForm attachedForm)
Select attached image action mapping.
|
String |
view(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
View render mapping.
|
public EditorImageSourceAttachedController()
@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
request - render requestresponse - render response@ActionMapping(name="submit",
params="upload")
public void add(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@Validated @ModelAttribute(value="attachedForm")
EditorImageSourceAttachedForm attachedForm)
throws javax.portlet.PortletException,
IOException
request - action requestresponse - action responseattachedForm - attached image form model attributejavax.portlet.PortletExceptionIOException@ActionMapping(value="select")
public void select(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@RequestParam(value="index")
String index,
@ModelAttribute(value="attachedForm")
EditorImageSourceAttachedForm attachedForm)
throws javax.portlet.PortletException
request - action requestresponse - action responseindex - attached image index request parameterattachedForm - attached image form model attributejavax.portlet.PortletException@ActionMapping(value="delete")
public void delete(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@RequestParam(value="index")
String index,
@ModelAttribute(value="attachedForm")
EditorImageSourceAttachedForm attachedForm)
throws javax.portlet.PortletException
request - action requestresponse - action responseindex - attached image index request parameterattachedForm - attached image form model attributejavax.portlet.PortletException@ModelAttribute(value="attachedForm") public EditorImageSourceAttachedForm getAttachedForm(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responsejavax.portlet.PortletExceptionCopyright © 2021 OSIVIA. All rights reserved.