org.jasig.portlet.newsreader.mvc
Class AbstractNewsController
java.lang.Object
org.jasig.portlet.newsreader.mvc.AbstractNewsController
- Direct Known Subclasses:
- NewsController, SingleFeedNewsController
public class AbstractNewsController
- extends Object
Creating an abstract superclass for news in VIEW mode as a first step toward
combining controllers for single-feed and regular. I believe we'd be better
served -- have less chance for mismatch and regression -- if the 2 approaches
used the same controllers, and the differences in behavior were factored out
into different subclasses of service objects. We could then configure these
services appropriately in each portlet's Spring sub-context.
So I suggest factoring common code out of the subclasses (and into here)
bit-by-bit until the controllers are no different, at which point we can
loose this class if it seems like a good idea then.
- Author:
- awills
|
Method Summary |
boolean |
isAdmin(javax.portlet.PortletRequest req)
|
boolean |
isGuest(javax.portlet.PortletRequest req)
|
boolean |
supportsEdit(javax.portlet.PortletRequest req)
|
boolean |
supportsHelp(javax.portlet.PortletRequest req)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractNewsController
public AbstractNewsController()
isAdmin
@ModelAttribute(value="isAdmin")
public boolean isAdmin(javax.portlet.PortletRequest req)
isGuest
@ModelAttribute(value="isGuest")
public boolean isGuest(javax.portlet.PortletRequest req)
supportsEdit
@ModelAttribute(value="supportsEdit")
public boolean supportsEdit(javax.portlet.PortletRequest req)
supportsHelp
@ModelAttribute(value="supportsHelp")
public boolean supportsHelp(javax.portlet.PortletRequest req)
Copyright © 2009-2013 Jasig. All Rights Reserved.