public class ReadAction
extends org.jasig.portlet.notice.NotificationAction
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
static ReadAction |
READ
This INSTANCE is only for convenience -- READ and UNREAD not singletons.
|
| Constructor and Description |
|---|
ReadAction()
Must remain public, no-arg for de-serialization.
|
ReadAction(java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
static ReadAction |
createReadInstance() |
static ReadAction |
createUnReadInstance() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
Invoking a ReadAction toggles it.
|
void |
invoke(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
isRead(org.jasig.portlet.notice.NotificationEntry entry,
java.lang.String username) |
void |
removeReadNotices(javax.portlet.PortletRequest req,
java.util.Set<java.lang.String> idsToRemove) |
protected static org.slf4j.Logger logger
public static final ReadAction READ
public ReadAction()
public ReadAction(java.lang.String label)
public static final ReadAction createReadInstance()
public static final ReadAction createUnReadInstance()
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)
throws java.io.IOException
invoke in class org.jasig.portlet.notice.NotificationActionjava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void removeReadNotices(javax.portlet.PortletRequest req,
java.util.Set<java.lang.String> idsToRemove)
protected boolean isRead(org.jasig.portlet.notice.NotificationEntry entry,
java.lang.String username)