Class PluginDataSource
- java.lang.Object
-
- com.identityworksllc.iiq.common.reporting.AbstractJavaDataSource
-
- com.identityworksllc.iiq.common.reporting.PluginDataSource
-
- All Implemented Interfaces:
net.sf.jasperreports.engine.JRDataSource
,sailpoint.reporting.datasource.JavaDataSource
,sailpoint.reporting.datasource.LiveReportDataSource
,sailpoint.reporting.datasource.TopLevelDataSource
public class PluginDataSource extends AbstractJavaDataSource
A data source that delegates to a ‘real’ data source loaded from a plugin.IIQ does not allow report data sources to be loaded from plugins by default.
Your report would designate this class as its implementation. Then, specify the real data source class name in the TaskDefinition’s attributes as ‘pluginName’ and ‘pluginClass’. All other options will be delegated to your plugin class.
-
-
Field Summary
-
Fields inherited from class com.identityworksllc.iiq.common.reporting.AbstractJavaDataSource
context, groupBy, inputs, limit, liveReport, monitor, sortBy, start
-
-
Constructor Summary
Constructors Constructor Description PluginDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getBaseHql()
sailpoint.object.QueryOptions
getBaseQueryOptions()
Object
getFieldValue(String s)
Object
getFieldValue(net.sf.jasperreports.engine.JRField jrField)
int
getSizeEstimate()
void
initialize(sailpoint.api.SailPointContext sailPointContext, sailpoint.object.LiveReport liveReport, sailpoint.object.Attributes<String,Object> attributes, String s, List<sailpoint.object.Sort> list)
Initializes the report by loading the real data source specified, then delegating immediately to that data source.boolean
next()
void
setLimit(int i, int i1)
void
setMonitor(sailpoint.task.Monitor monitor)
-
-
-
Constructor Detail
-
PluginDataSource
public PluginDataSource()
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacesailpoint.reporting.datasource.TopLevelDataSource
- Overrides:
close
in classAbstractJavaDataSource
-
getBaseHql
public String getBaseHql()
- Specified by:
getBaseHql
in interfacesailpoint.reporting.datasource.LiveReportDataSource
- Overrides:
getBaseHql
in classAbstractJavaDataSource
-
getBaseQueryOptions
public sailpoint.object.QueryOptions getBaseQueryOptions()
- Specified by:
getBaseQueryOptions
in interfacesailpoint.reporting.datasource.LiveReportDataSource
- Overrides:
getBaseQueryOptions
in classAbstractJavaDataSource
-
getFieldValue
public Object getFieldValue(net.sf.jasperreports.engine.JRField jrField) throws net.sf.jasperreports.engine.JRException
- Specified by:
getFieldValue
in interfacenet.sf.jasperreports.engine.JRDataSource
- Overrides:
getFieldValue
in classAbstractJavaDataSource
- Throws:
net.sf.jasperreports.engine.JRException
-
getFieldValue
public Object getFieldValue(String s) throws sailpoint.tools.GeneralException
- Throws:
sailpoint.tools.GeneralException
-
getSizeEstimate
public int getSizeEstimate() throws sailpoint.tools.GeneralException
- Specified by:
getSizeEstimate
in interfacesailpoint.reporting.datasource.LiveReportDataSource
- Overrides:
getSizeEstimate
in classAbstractJavaDataSource
- Throws:
sailpoint.tools.GeneralException
-
initialize
public void initialize(sailpoint.api.SailPointContext sailPointContext, sailpoint.object.LiveReport liveReport, sailpoint.object.Attributes<String,Object> attributes, String s, List<sailpoint.object.Sort> list) throws sailpoint.tools.GeneralException
Initializes the report by loading the real data source specified, then delegating immediately to that data source.- Specified by:
initialize
in interfacesailpoint.reporting.datasource.JavaDataSource
- Overrides:
initialize
in classAbstractJavaDataSource
- Throws:
sailpoint.tools.GeneralException
-
next
public boolean next() throws net.sf.jasperreports.engine.JRException
- Throws:
net.sf.jasperreports.engine.JRException
-
setLimit
public void setLimit(int i, int i1)
- Specified by:
setLimit
in interfacesailpoint.reporting.datasource.JavaDataSource
- Overrides:
setLimit
in classAbstractJavaDataSource
-
setMonitor
public void setMonitor(sailpoint.task.Monitor monitor)
- Specified by:
setMonitor
in interfacesailpoint.reporting.datasource.TopLevelDataSource
- Overrides:
setMonitor
in classAbstractJavaDataSource
-
-