Package lumis.portal.monitor.impl
Class MonitorEventValuesProvider
- java.lang.Object
-
- lumis.portal.monitor.impl.MonitorEventValuesProvider
-
- All Implemented Interfaces:
Serializable
,IMonitorValuesProvider
public class MonitorEventValuesProvider extends Object implements IMonitorValuesProvider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MonitorEventValuesProvider(Map<String,Object> source, MonitorUser monUser, String eventId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends Serializable>
getValues(SessionConfig sessionConfig, IMonitorField field, ITransaction transaction)
Returns the values for the given field.
If this value provider does not provide values for the given field, it must returnnull
.
Note that returning anull
value is not the same as returning an empty list.
-
-
-
Constructor Detail
-
MonitorEventValuesProvider
public MonitorEventValuesProvider(Map<String,Object> source, MonitorUser monUser, String eventId) throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
getValues
public List<? extends Serializable> getValues(SessionConfig sessionConfig, IMonitorField field, ITransaction transaction) throws Exception
Description copied from interface:IMonitorValuesProvider
Returns the values for the given field.
If this value provider does not provide values for the given field, it must returnnull
.
Note that returning anull
value is not the same as returning an empty list. When returning an empty list, it is implied that the field has an explicitnull
value. When anull
value is returned, then other value providers will be called. If a non-null
value is returned (even an empty list), then other value providers will not be called. Anynull
value in a list will be ignored, meaning that a list with onlynull
will be considered a empty list.It is important to notice also that the given session config is not the session of the user that generated the monitoring event. Instead, it is a
system user
session.
As well as session config, the given transaction is not related to the transaction that generated the event (if any).- Specified by:
getValues
in interfaceIMonitorValuesProvider
- Parameters:
sessionConfig
- the current session.field
- the desired field.transaction
- the current transaction.- Returns:
- the values for the desired field.
- Throws:
Exception
- if some error occur.
-
-