@Controller
@RequestMapping(value="VIEW",
params="edit=feed")
@SessionAttributes(value="form")
public class EditFeedController
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.
|
static String |
DISPLAY
Feed parameter.
|
protected static String |
FEED_ATTRIBUTE
Feed request attribute.
|
static String |
ID |
static String |
INDEX |
protected org.osivia.portal.api.notifications.INotificationsService |
notificationsService
Notifications service.
|
protected javax.portlet.PortletContext |
portletContext
Portlet context.
|
protected FeedService |
service
Feed RSS service.
|
static String |
URL |
| Constructor and Description |
|---|
EditFeedController()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
org.springframework.web.bind.support.SessionStatus status)
Cancel
|
void |
del(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
String id,
FeedRssModel form,
org.springframework.web.bind.support.SessionStatus status)
Delete feed
|
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,
String id,
String name,
String url,
String index) |
void |
modif(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
FeedRssModel form,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
Modification feed
|
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,
FeedRssModel form)
Edit 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
public static final String DISPLAY
public static final String URL
public static final String ID
public static final String INDEX
protected static final String FEED_ATTRIBUTE
@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, @ModelAttribute FeedRssModel form) throws javax.portlet.PortletException
request - render requestresponse - render responsejavax.portlet.PortletException@ActionMapping(value="del")
public void del(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@RequestParam
String id,
@ModelAttribute(value="form")
FeedRssModel form,
org.springframework.web.bind.support.SessionStatus status)
throws javax.portlet.PortletException,
IOException
request - response - form - status - javax.portlet.PortletExceptionIOException@ActionMapping(value="modif")
public void modif(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@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, @RequestParam(value="id",required=false) String id, @RequestParam(value="displayName",required=false) String name, @RequestParam(value="url",required=false) String url, @RequestParam(value="index",required=false) String index) throws javax.portlet.PortletException
javax.portlet.PortletException@ActionMapping(value="cancel")
public void cancel(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
org.springframework.web.bind.support.SessionStatus status)
@ActionMapping(name="modif",
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="modif",
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 attributeIOExceptionCopyright © 2020 OSIVIA. All rights reserved.