@Controller
@RequestMapping(value="VIEW",
params="add=feed")
@SessionAttributes(value="form")
public class AddFeedController
extends Object
| Modifier and Type | Field and Description |
|---|---|
org.springframework.context.ApplicationContext |
applicationContext
Application context.
|
protected org.osivia.portal.api.internationalization.IBundleFactory |
bundleFactory
Bundle factory.
|
protected org.osivia.portal.api.notifications.INotificationsService |
notificationsService
Notifications service.
|
protected javax.portlet.PortletContext |
portletContext
Portlet context.
|
protected FeedService |
service
Feed RSS service.
|
| Constructor and Description |
|---|
AddFeedController()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
FeedRssModel form,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
Add feed
|
void |
cancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
org.springframework.web.bind.support.SessionStatus status)
Cancel
|
void |
deleteVisual(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
FeedRssModel form)
Delete visual action mapping.
|
void |
formInitBinder(org.springframework.web.bind.WebDataBinder binder)
Container form init binder.
|
FeedRssModel |
getForm(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response) |
void |
uploadVisual(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
FeedRssModel form)
Upload visual action mapping.
|
String |
view(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
View container render mapping
|
void |
visualPreview(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
FeedRssModel form)
Visual preview resource mapping.
|
@Autowired protected javax.portlet.PortletContext portletContext
@Autowired public org.springframework.context.ApplicationContext applicationContext
@Autowired protected FeedService service
@Autowired protected org.osivia.portal.api.internationalization.IBundleFactory bundleFactory
@Autowired protected org.osivia.portal.api.notifications.INotificationsService notificationsService
@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException
request - render requestresponse - render responsejavax.portlet.PortletException@ActionMapping(value="save")
public void add(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@Validated @ModelAttribute(value="form")
FeedRssModel form,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
throws javax.portlet.PortletException,
IOException
request - response - form - status - javax.portlet.PortletExceptionIOException@ActionMapping(value="cancel")
public void cancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
org.springframework.web.bind.support.SessionStatus status)
@ActionMapping(name="save",
params="upload-visual")
public void uploadVisual(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="form")
FeedRssModel form)
throws javax.portlet.PortletException,
IOException
request - action requestresponse - action responseform - workspace edition form model attributejavax.portlet.PortletExceptionIOException@ActionMapping(name="save",
params="delete-visual")
public void deleteVisual(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="form")
FeedRssModel form)
throws javax.portlet.PortletException
request - action requestresponse - action responseform - workspace edition form model attributejavax.portlet.PortletException@ResourceMapping(value="visualPreview")
public void visualPreview(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@ModelAttribute(value="form")
FeedRssModel form)
throws IOException
request - resource requestresponse - resource responseform - workspace edition form model attributeIOException@InitBinder(value="form") public void formInitBinder(org.springframework.web.bind.WebDataBinder binder)
binder - data binder@ModelAttribute(value="form") public FeedRssModel getForm(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException
javax.portlet.PortletExceptionCopyright © 2020 OSIVIA. All rights reserved.