public class FavoriteAction
extends org.jasig.portlet.notice.NotificationAction
| Modifier and Type | Field and Description |
|---|---|
static FavoriteAction |
FAVORITE
This INSTANCE is only for convenience -- FAVORITE and UNFAVORITE not singletons.
|
| Constructor and Description |
|---|
FavoriteAction()
Must remain public, no-arg for de-serialization.
|
FavoriteAction(java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
static FavoriteAction |
createFavoriteInstance() |
static FavoriteAction |
createUnfavoriteInstance() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
Invoking a FavoriteAction toggles it.
|
void |
invoke(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
removeFavoriteNotices(javax.portlet.PortletRequest req,
java.util.Set<java.lang.String> idsToRemove) |
public static final FavoriteAction FAVORITE
public FavoriteAction()
public FavoriteAction(java.lang.String label)
public static final FavoriteAction createFavoriteInstance()
public static final FavoriteAction createUnfavoriteInstance()
public void invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws java.io.IOException
invoke in class org.jasig.portlet.notice.NotificationActionjava.io.IOExceptionpublic void invoke(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
invoke in class org.jasig.portlet.notice.NotificationActionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void removeFavoriteNotices(javax.portlet.PortletRequest req,
java.util.Set<java.lang.String> idsToRemove)