public class KPI extends Mbo implements KPIRemote
This class defines, by a specific reference Mbo, object to represent Key Performance Indicator.
This is a SYSTEM level object.
The key attributes for this object are as follows: KPIMAINID
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| KPINAME | KPI Name |
| DESCRIPTION | Description |
| KPIVALUE | Current Value |
| KPIDATE | Created Date |
| CAUTIONMIN | Caution At |
| CAUTIONMAX | Alert At |
| FORMAT | Calculation Type |
| TARGET | Target |
| SELECTSTMT | Select |
| CLAUSE | Where |
| OWNER | Created By |
| ISPUBLIC | Make Public |
| APP | Application |
| REPORTNAME | Link to Report |
| LASTKPIVALUE | Last KPI Value |
| REALTIME | Real Time |
| LINKTO | Link to KPI |
| KPIMAINID | KPI Unique Id |
| DESCRIPTION_LONGDESCRIPTION | Details |
| LANGCODE | Language Code |
| HASLD | Has Long Description? |
MULTILANGCOPY, phantomList, phantomQueueALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
KPI(MboSet ms)
Construct the KPI object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a mbo, defaulting the attributes shown below.
|
void |
canDelete()
Checks if this KPI is refrenced anywhere.
Checks are made on KPIGraph portlet and KPi List portlet remotes, if a reference is not found then the KPI is deleted. |
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
duplicate()
Creates a duplicate KPI
|
java.util.ArrayList |
getComparisionKPIs()
Returns collection of KPI remotes that have to be compared with this KPI.
KPITRENDCFG.COMPAREWITH is queried for this KPI |
java.util.Date |
getCustomDates(boolean from)
This method returns the custom trend dates related to this KPI from KPIGTRENDCFG, its configuration table
|
java.lang.String |
getTrendRange()
Returns trend range based on what was selected by the user The values
could be
|
boolean |
isClearRelatedKPI() |
java.util.Vector |
kpiInfo()
Returns all details about the current KPI as a Vector
This method is called by UI layer basically for display
|
void |
run()
Runs the current KPI.
|
void |
setClearRelatedKPI(boolean clearRelatedKPI) |
void |
updateTrend() |
void |
validateSQL()
Validates the current current KPI
Checks if query is other than Select |
void |
validateTrendInfo()
Validate whether trend information is correct for drawing chart and saving KPI.
Range of start and end dates are validated for time range logic |
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic KPI(MboSet ms) throws MXException, java.rmi.RemoteException
ms - Mbo setMXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| IsPublic | True |
| KPIDate | Server Date |
| Format | DECIMAL |
| Real Time | Null |
| Last KPI Value | Null |
| Owner | Current user |
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void run()
throws MXException,
java.rmi.RemoteException
run in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpublic void validateSQL()
throws MXException,
java.rmi.RemoteException
validateSQL in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXApplicationException("kpi", - "DeleteKPIL") is thrown when
it is referenced by a KPILCONFIG object.MXApplicationException("kpi", - "DeleteKPIG") is thrown when
it is referenced by a KPIGCONFIG object.MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector kpiInfo()
throws MXException,
java.rmi.RemoteException
kpiInfo in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.ArrayList getComparisionKPIs()
throws MXException,
java.rmi.RemoteException
getComparisionKPIs in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getCustomDates(boolean from)
throws MXException,
java.rmi.RemoteException
getCustomDates in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.kpi.KPIRemote#getCustomDates()public java.lang.String getTrendRange()
throws MXException,
java.rmi.RemoteException
getTrendRange in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpublic void validateTrendInfo()
throws MXException,
java.rmi.RemoteException
validateTrendInfo in interface KPIRemoteMXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
Mbodelete in interface MboRemotedelete in class MboaccessModifier - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public boolean isClearRelatedKPI()
public void setClearRelatedKPI(boolean clearRelatedKPI)
public void updateTrend()
throws java.rmi.RemoteException,
MXException
updateTrend in interface KPIRemotejava.rmi.RemoteExceptionMXException