public abstract class NotificationAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Constructor and Description |
|---|
NotificationAction() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Implements deep-copy clone.
|
java.lang.String |
getApiUrl()
Complete URL (ncluding CSRF token, if appropriate) that can be used to invoke this action
through the
NotificationRestV2Controller. |
java.lang.String |
getClazz() |
java.lang.String |
getId() |
java.lang.String |
getLabel() |
NotificationEntry |
getTarget() |
abstract void |
invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
Deprecated.
Prefer interactions that are not based on the Portlet API
|
abstract void |
invoke(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Perform this action on the notification to which it is attached.
|
void |
setApiUrl(java.lang.String apiUrl)
Sets the URL for invoking this action through the
NotificationRestV2Controller. |
void |
setId(java.lang.String id)
Identifies the action, from among the available set of actions, when the
user invokes it.
|
void |
setLabel(java.lang.String label) |
public final java.lang.String getClazz()
public final java.lang.String getId()
public final void setId(java.lang.String id)
public final java.lang.String getLabel()
public final void setLabel(java.lang.String label)
public final NotificationEntry getTarget()
public java.lang.String getApiUrl()
NotificationRestV2Controller.public void setApiUrl(java.lang.String apiUrl)
NotificationRestV2Controller.
This field should not be provided by the data source (i.e. Notification Service).
It must be set by the API layer.@Deprecated
public abstract void invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws java.io.IOException
java.io.IOExceptionpublic abstract void invoke(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - Not really, but it's on the method
signature we're overriding.