it.eng.spagobi.engines.kpi
Class SpagoBIKpiInternalEngine
java.lang.Object
it.eng.spagobi.engines.drivers.AbstractDriver
it.eng.spagobi.engines.kpi.SpagoBIKpiInternalEngine
- All Implemented Interfaces:
- InternalEngineIFace
public class SpagoBIKpiInternalEngine
- extends AbstractDriver
- implements InternalEngineIFace
- Author:
- Chiara Chiarelli
Method Summary |
void |
calculateAndInsertKpiValueWithResources(java.lang.Integer miId,
java.util.List resources)
|
void |
execute(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response)
Method used by basic execution and by the scheduler. |
void |
execute(it.eng.spago.base.RequestContainer requestContainer,
it.eng.spago.base.SourceBean response)
|
java.util.List<KpiResourceBlock> |
executeCode(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response,
java.lang.String userId)
|
void |
executeSubObject(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response,
java.lang.Object subObjectInfo)
The SpagoBIDashboardInternalEngine cannot manage
subobjects so this method must not be invoked. |
KpiLine |
getBlock(java.lang.Integer miId,
Resource r)
|
KpiValue |
getKpiValueFromDataset(it.eng.spagobi.tools.dataset.bo.IDataSet dataSet,
java.util.HashMap pars,
KpiValue kVal,
java.util.Date begD,
java.util.Date endDate,
boolean doSave,
java.lang.Integer modInstNodeId)
|
KpiValue |
getNewKpiValue(it.eng.spagobi.tools.dataset.bo.IDataSet dataSet,
KpiInstance kpiInst,
Resource r,
java.lang.Integer modelInstanceId,
OrganizationalUnitGrantNode grantNode)
|
void |
getSetConf(it.eng.spago.base.SourceBean content)
Function that sets the basic values getting them from the xml template |
void |
handleDocumentTemplateEdit(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response)
Function not implemented. |
void |
handleNewDocumentTemplateCreation(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response)
Function not implemented. |
KpiValue |
recursiveGetKpiValueFromKpiRel(Kpi kpiParent,
it.eng.spagobi.tools.dataset.bo.IDataSet dataSet,
java.util.HashMap pars,
KpiValue kVal,
java.util.Date begD,
java.util.Date endDate,
java.lang.Integer modInstNodeId)
|
void |
setName(java.lang.String _name)
|
void |
setSubName(java.lang.String _name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messageBundle
public static final java.lang.String messageBundle
- See Also:
- Constant Field Values
publisher_Name
protected java.lang.String publisher_Name
metadata_publisher_Name
protected java.lang.String metadata_publisher_Name
trend_publisher_Name
protected java.lang.String trend_publisher_Name
name
protected java.lang.String name
subName
protected java.lang.String subName
styleTitle
protected StyleLabel styleTitle
styleSubTitle
protected StyleLabel styleSubTitle
userIdField
protected java.lang.String userIdField
locale
protected java.util.Locale locale
internationalizedFormat
protected java.lang.String internationalizedFormat
formatServer
protected java.lang.String formatServer
parametersObject
protected java.util.HashMap parametersObject
closed_tree
protected boolean closed_tree
model_title
protected java.lang.String model_title
threshold_image_title
protected java.lang.String threshold_image_title
bullet_chart_title
protected java.lang.String bullet_chart_title
value_title
protected java.lang.String value_title
kpi_title
protected java.lang.String kpi_title
weight_title
protected java.lang.String weight_title
use_ou
protected boolean use_ou
display_semaphore
protected boolean display_semaphore
display_bullet_chart
protected boolean display_bullet_chart
display_threshold_image
protected boolean display_threshold_image
display_weight
protected boolean display_weight
display_alarm
protected boolean display_alarm
register_values
protected boolean register_values
recalculate_anyway
protected boolean recalculate_anyway
register_par_setted
protected boolean register_par_setted
show_axis
protected boolean show_axis
weighted_values
protected boolean weighted_values
confMap
protected java.util.HashMap confMap
resources
protected java.util.List resources
dateOfKPI
protected java.util.Date dateOfKPI
endKpiValueDate
protected java.util.Date endKpiValueDate
periodInstID
protected java.lang.Integer periodInstID
modelInstanceRootId
protected java.lang.Integer modelInstanceRootId
lang
protected java.lang.String lang
country
protected java.lang.String country
behaviour
protected java.lang.String behaviour
dataset_multires
protected boolean dataset_multires
timeRangeFrom
protected java.util.Date timeRangeFrom
timeRangeTo
protected java.util.Date timeRangeTo
dateIntervalFrom
protected java.util.Date dateIntervalFrom
dateIntervalTo
protected java.util.Date dateIntervalTo
kpiResultsList
protected java.util.List<KpiResourceBlock> kpiResultsList
SpagoBIKpiInternalEngine
public SpagoBIKpiInternalEngine()
execute
public void execute(it.eng.spago.base.RequestContainer requestContainer,
it.eng.spago.base.SourceBean response)
throws it.eng.spago.error.EMFUserError,
it.eng.spago.base.SourceBeanException
- Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.base.SourceBeanException
execute
public void execute(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response)
throws it.eng.spago.error.EMFUserError
- Method used by basic execution and by the scheduler. Executes the document and populates the response.
- Specified by:
execute
in interface InternalEngineIFace
- Parameters:
requestContainer
- The RequestContainer
object (the session
can be retrieved from this object)obj
- The BIObject
representing the document to be executedresponse
- The response SourceBean
to be populated
- Throws:
it.eng.spago.error.EMFUserError
- the EMF user error
executeCode
public java.util.List<KpiResourceBlock> executeCode(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response,
java.lang.String userId)
throws it.eng.spago.error.EMFUserError
- Parameters:
- resources
-
- Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError
calculateAndInsertKpiValueWithResources
public void calculateAndInsertKpiValueWithResources(java.lang.Integer miId,
java.util.List resources)
throws it.eng.spago.error.EMFUserError,
it.eng.spago.error.EMFInternalError,
it.eng.spago.base.SourceBeanException
- Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError
it.eng.spago.base.SourceBeanException
getBlock
public KpiLine getBlock(java.lang.Integer miId,
Resource r)
throws it.eng.spago.error.EMFUserError,
it.eng.spago.error.EMFInternalError,
it.eng.spago.base.SourceBeanException
- Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError
it.eng.spago.base.SourceBeanException
getNewKpiValue
public KpiValue getNewKpiValue(it.eng.spagobi.tools.dataset.bo.IDataSet dataSet,
KpiInstance kpiInst,
Resource r,
java.lang.Integer modelInstanceId,
OrganizationalUnitGrantNode grantNode)
throws it.eng.spago.error.EMFUserError,
it.eng.spago.error.EMFInternalError,
it.eng.spago.base.SourceBeanException
- Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError
it.eng.spago.base.SourceBeanException
recursiveGetKpiValueFromKpiRel
public KpiValue recursiveGetKpiValueFromKpiRel(Kpi kpiParent,
it.eng.spagobi.tools.dataset.bo.IDataSet dataSet,
java.util.HashMap pars,
KpiValue kVal,
java.util.Date begD,
java.util.Date endDate,
java.lang.Integer modInstNodeId)
throws it.eng.spago.error.EMFUserError,
it.eng.spago.error.EMFInternalError,
it.eng.spago.base.SourceBeanException
- Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError
it.eng.spago.base.SourceBeanException
getKpiValueFromDataset
public KpiValue getKpiValueFromDataset(it.eng.spagobi.tools.dataset.bo.IDataSet dataSet,
java.util.HashMap pars,
KpiValue kVal,
java.util.Date begD,
java.util.Date endDate,
boolean doSave,
java.lang.Integer modInstNodeId)
throws it.eng.spago.error.EMFInternalError,
it.eng.spago.base.SourceBeanException,
it.eng.spago.error.EMFUserError,
it.eng.spagobi.tools.dataset.exceptions.DatasetException
- Throws:
it.eng.spago.error.EMFInternalError
it.eng.spago.base.SourceBeanException
it.eng.spago.error.EMFUserError
it.eng.spagobi.tools.dataset.exceptions.DatasetException
getSetConf
public void getSetConf(it.eng.spago.base.SourceBean content)
- Function that sets the basic values getting them from the xml template
- Parameters:
content
- The template SourceBean containing parameters configuration
executeSubObject
public void executeSubObject(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response,
java.lang.Object subObjectInfo)
throws it.eng.spago.error.EMFUserError
- The
SpagoBIDashboardInternalEngine
cannot manage
subobjects so this method must not be invoked.
- Specified by:
executeSubObject
in interface InternalEngineIFace
- Parameters:
requestContainer
- The RequestContainer
object (the session
can be retrieved from this object)obj
- The BIObject
representing the documentresponse
- The response SourceBean
to be populatedsubObjectInfo
- An object describing the subobject to be executed
- Throws:
it.eng.spago.error.EMFUserError
- the EMF user error
setName
public void setName(java.lang.String _name)
setSubName
public void setSubName(java.lang.String _name)
handleNewDocumentTemplateCreation
public void handleNewDocumentTemplateCreation(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response)
throws it.eng.spago.error.EMFUserError,
InvalidOperationRequest
- Function not implemented. Thid method should not be called
- Specified by:
handleNewDocumentTemplateCreation
in interface InternalEngineIFace
- Parameters:
requestContainer
- The RequestContainer
object (the session
can be retrieved from this object)response
- The response SourceBean
to be populatedobj
- the obj
- Throws:
InvalidOperationRequest
- the invalid operation request
it.eng.spago.error.EMFUserError
- the EMF user error
handleDocumentTemplateEdit
public void handleDocumentTemplateEdit(it.eng.spago.base.RequestContainer requestContainer,
BIObject obj,
it.eng.spago.base.SourceBean response)
throws it.eng.spago.error.EMFUserError,
InvalidOperationRequest
- Function not implemented. Thid method should not be called
- Specified by:
handleDocumentTemplateEdit
in interface InternalEngineIFace
- Parameters:
requestContainer
- The RequestContainer
object (the session
can be retrieved from this object)response
- The response SourceBean
to be populatedobj
- the obj
- Throws:
InvalidOperationRequest
- the invalid operation request
it.eng.spago.error.EMFUserError
- the EMF user error