public class PortletEvent
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static PortletEvent |
LOGIN_REQUIRED_EVENT |
static PortletEvent |
SESSION_IS_NEW_EVENT |
Constructor and Description |
---|
PortletEvent(java.lang.String name,
de.innovationgate.wga.common.beans.csconfig.v1.Version compliance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(java.lang.String name,
java.lang.Object value)
Add a parameter to the event
|
long |
getIndex()
Returns the index of the events in the user sessions event queue
|
java.lang.String |
getIndexStr()
Returns a string representation of the event index
|
java.lang.String |
getName()
Returns the name of the event
|
java.lang.Object |
getParameter(java.lang.String name)
Retrieves the value of an event parameter
|
java.lang.String |
getSource()
Returns the portletKey of the portlet which fired the event
might be 'null' on system events
|
java.lang.String |
getSourceName()
Returns the name of the portlet that fired the event
|
java.lang.String |
getTargetPortletKey()
Returns a portlet key of the portlet for which this event was specifically fired.
|
int |
hashCode() |
void |
setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters) |
void |
setSource(java.lang.String source)
Sets the portlet key of the portlet that fired the event
|
void |
setSourceName(java.lang.String sourceName)
Sets the name of the portlet that fired the evente
|
void |
setTargetPortletKey(java.lang.String targetPortletKey)
Sets a portlet key of the portlet for which this event was specifically fired.
|
java.lang.String |
toJavaScriptObject()
Exports the event data to Javascript code
|
public static final PortletEvent SESSION_IS_NEW_EVENT
public static final PortletEvent LOGIN_REQUIRED_EVENT
public PortletEvent(java.lang.String name, de.innovationgate.wga.common.beans.csconfig.v1.Version compliance)
name
- Name of the eventcompliance
- Compliance of the originating WGA designpublic void addParameter(java.lang.String name, java.lang.Object value)
name
- parameter namevalue
- parameter valuepublic java.lang.Object getParameter(java.lang.String name)
name
- Name of the parameterpublic java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toJavaScriptObject()
public java.lang.String getSource()
public void setSource(java.lang.String source)
public java.lang.String getSourceName()
public void setSourceName(java.lang.String sourceName)
public long getIndex()
public java.lang.String getIndexStr()
public java.lang.String getTargetPortletKey()
public void setTargetPortletKey(java.lang.String targetPortletKey)
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)