public class Event extends Ind2uceEntity implements ParameterListProvider
GSON_DEFAULT, GSON_PLAIN, GSON_PRETTY, version| Constructor and Description |
|---|
Event(ActionId actionId,
boolean isTry,
long time,
Parameter<?>... params)
Instantiates a new event.
|
Event(ActionId actionId,
boolean isTry,
long time,
ParameterList params)
Instantiates a new event.
|
Event(ActionId actionId,
boolean isTry,
Parameter<?>... params)
Instantiates a new event.
|
Event(ActionId actionId,
Parameter<?>... params)
Instantiates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Parameter<?> param)
Adds a parameter.
|
<T> void |
addParameter(String name,
T value)
Adds a parameter.
|
void |
clearParameters()
Clear parameters.
|
ActionId |
getActionId()
Gets the id of the system action that occurred.
|
String |
getActionIdString()
Gets the action id string.
|
Parameter<?> |
getParameterForName(String name)
Gets a parameter.
|
ParameterList |
getParameters()
Gets the list of all parameters.
|
<T> T |
getParameterValue(String name,
Class<T> clazz)
Gets a parameter value.
|
Object |
getTag()
*.
|
long |
getTimestamp()
Gets the time at which the action occurred / was intercepted by the PEP.
|
Object |
getValueForName(String name)
Gets the object which is added as parameter for given name.
|
void |
removeParameter(String name)
Adds a parameter.
|
void |
setActionId(ActionId actionId)
Sets the id of the system action that occurred.
|
void |
setActionId(String actionId)
Sets the id of the system action that occurred.
|
void |
setParameters(ParameterList params)
Replaces all parameters with the parameters of the provided list.
|
void |
setTag(Object tag)
*.
|
void |
setTimestamp(long timestamp)
Sets the time at which the action occurred / was intercepted by the PEP.
|
fromJson, getGson, getVersion, toJson, toStringpublic Event(ActionId actionId, boolean isTry, long time, Parameter<?>... params)
actionId - the action idisTry - the is trytime - the timeparams - the paramspublic Event(ActionId actionId, boolean isTry, long time, ParameterList params)
actionId - the action idisTry - the is trytime - the timeparams - the paramspublic Event(ActionId actionId, boolean isTry, Parameter<?>... params)
actionId - the action idisTry - the is tryparams - the paramspublic void addParameter(Parameter<?> param)
ParameterListProvideraddParameter in interface ParameterListProviderparam - the parameter to addpublic <T> void addParameter(String name, T value)
ParameterListProvideraddParameter in interface ParameterListProviderT - the generic typename - the name of the parametervalue - the value of the parameterpublic void clearParameters()
clearParameters in interface ParameterListProviderpublic ActionId getActionId()
public String getActionIdString()
public Parameter<?> getParameterForName(String name)
ParameterListProvidergetParameterForName in interface ParameterListProvidername - the name of the parameterpublic ParameterList getParameters()
ParameterListProvidergetParameters in interface ParameterListProviderpublic <T> T getParameterValue(String name, Class<T> clazz)
ParameterListProvidergetParameterValue in interface ParameterListProviderT - the generic typename - the name of the parameterclazz - the value of the parameterpublic Object getTag()
public long getTimestamp()
public Object getValueForName(String name)
name - the namepublic void removeParameter(String name)
ParameterListProviderremoveParameter in interface ParameterListProvidername - the name of the parameter to be deletedpublic void setActionId(ActionId actionId)
actionId - the new id of the system action that occurredpublic void setActionId(String actionId)
actionId - the new id of the system action that occurredpublic void setParameters(ParameterList params)
ParameterListProvidersetParameters in interface ParameterListProviderparams - list of parameterspublic void setTag(Object tag)
tag - the new * Will be used by solution developer to identify event
uniquelypublic void setTimestamp(long timestamp)
timestamp - the timestamp to setCopyright © 2018. All rights reserved.