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