public class ControlsCache extends AbstractMaximoMTEnabledCache
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Modifier and Type | Method and Description |
---|---|
boolean |
doesXREFExist(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid,
java.lang.String currentValue,
boolean fromMaximo)
Find out is CrossRefrence exists for the Given Value
|
java.util.Map<java.lang.String,MaxIfaceControlInfo> |
getAllControls(java.lang.String extSystem)
Gets all controls info
|
java.lang.String |
getControlType(java.lang.String extSystem,
java.lang.String name)
Gets control type for the control
|
MaxIfaceControlInfo |
getIfaceControlInfo(java.lang.String extSystem,
java.lang.String name)
Gets all systems info for the specific control in the external system
|
static ControlsCache |
getInstance()
Always use one instance of ControlsCache
|
java.lang.String |
getInternalControlType(java.lang.String extSystem,
java.lang.String name)
Gets Internal Control Type
|
java.util.List<java.lang.String> |
getListControl(java.lang.String extsys,
java.lang.String name)
Gets control value for List type controls
|
java.util.ArrayList<java.lang.String> |
getListControl(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid)
Gets control value for List type controls
|
java.lang.String |
getName()
Return name to be registered in the cashe to reload
|
java.lang.String |
getValueControl(java.lang.String extsys,
java.lang.String name)
Gets control value for VALUE type controls
|
java.lang.String |
getValueControl(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid)
Gets control value for VALUE type controls
|
java.lang.String |
getValueOrBooleanControl(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid)
Gets control value for VALUE type controls
|
java.util.List |
getXREFControl(java.lang.String extsys,
java.lang.String name,
java.lang.String currentValue,
boolean fromMaximo)
Gets control value for CrossRference type controls
|
java.util.List<java.lang.String> |
getXREFControl(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid,
java.lang.String currentValue,
boolean fromMaximo)
Gets control value for Crossrefrence type controls
|
java.lang.String |
getXREFControlValue(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid,
java.lang.String currentValue,
boolean fromMaximo)
Gets control value for Crossrefrence type controls
|
java.util.List |
getXREFControlValues(java.lang.String extsys,
java.lang.String name)
Gets control value for CrossRefrence type controls
|
boolean |
isControlEqual(java.lang.String extsys,
java.lang.String name,
java.lang.String value)
Compares control with a value
|
boolean |
isControlEqual(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid,
java.lang.String value)
Gets control value for VALUE type controls
|
boolean |
isControlExists(java.lang.String extsys,
java.lang.String controlName)
Check whether the given control exists for the given external system.
|
boolean |
isControlTrue(java.lang.String extsys,
java.lang.String name)
Gets control value for Boolean type controls and evaluates it to true
|
boolean |
isControlTrue(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid)
Gets control value for List type controls and evaluates it to true
|
boolean |
isValueControlNull(java.lang.String extsys,
java.lang.String name)
Check control value for VALUE type controls being null
|
boolean |
isValueControlNull(java.lang.String extsys,
java.lang.String name,
java.lang.String orgid,
java.lang.String siteid)
Chueck control value for VALUE type controls being null
|
void |
setXREFValues(java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String key,
java.lang.String val1,
java.lang.String val2)
Gets control value for cross-reference type controls
|
getCache, getLoadedTenants, init, isLoaded, reload, reload, unloadInactiveCaches, unloadTenant
public static ControlsCache getInstance() throws MXException
MXException
public java.lang.String getName()
MXException
- MAXIMO exceptionpublic java.util.Map<java.lang.String,MaxIfaceControlInfo> getAllControls(java.lang.String extSystem)
public MaxIfaceControlInfo getIfaceControlInfo(java.lang.String extSystem, java.lang.String name) throws MXException
name
- Control nameMXException
- MAXIMO exceptionpublic java.lang.String getControlType(java.lang.String extSystem, java.lang.String name) throws MXException
extSystem
- External System namename
- Control nameMXException
- MAXIMO exceptionpublic java.lang.String getInternalControlType(java.lang.String extSystem, java.lang.String name) throws MXException
extSystem
- External System namename
- Control nameMXException
- MAXIMO exceptionpublic boolean isControlEqual(java.lang.String extsys, java.lang.String name, java.lang.String value) throws MXException
extsys
- External System namename
- Control namevalue
- Value to compareMXException
- MAXIMO exceptionpublic boolean isControlEqual(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid, java.lang.String value) throws MXException
name
- Control nameorgid
- Organizationsiteid
- Sitevalue
- Value to compareMXException
- MAXIMO exceptionpublic java.lang.String getValueControl(java.lang.String extsys, java.lang.String name) throws MXException
name
- Control nameMXException
- MAXIMO exceptionpublic java.lang.String getValueOrBooleanControl(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SiteMXException
- MAXIMO exceptionpublic java.lang.String getValueControl(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SiteMXException
- MAXIMO exceptionpublic boolean isValueControlNull(java.lang.String extsys, java.lang.String name) throws MXException
name
- Control nameMXException
- MAXIMO exceptionpublic boolean isValueControlNull(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SiteMXException
- MAXIMO exceptionpublic boolean isControlExists(java.lang.String extsys, java.lang.String controlName) throws MXException
extsys
- external system namecontrolName
- control nameMXException
- Maximo Exceptionpublic java.util.List getXREFControl(java.lang.String extsys, java.lang.String name, java.lang.String currentValue, boolean fromMaximo) throws MXException
name
- Control namecurrentValue
- Value to fine CrossRefernce forfromMaximo
- Direction of CrossReference control FROM/TO MAXIMOMXException
- MAXIMO exceptionpublic java.lang.String getXREFControlValue(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid, java.lang.String currentValue, boolean fromMaximo) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SitecurrentValue
- Value to fine CrossRefernce forfromMaximo
- Direction of CrossReference control FROM/TO MAXIMOMXException
- MAXIMO exceptionpublic java.util.List<java.lang.String> getXREFControl(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid, java.lang.String currentValue, boolean fromMaximo) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SitecurrentValue
- Value to fine CrossRefernce forfromMaximo
- Direction of CrossReference control FROM/TO MAXIMOMXException
- MAXIMO exceptionpublic java.util.List getXREFControlValues(java.lang.String extsys, java.lang.String name) throws MXException
name
- Control nameMXException
- MAXIMO exceptionpublic boolean doesXREFExist(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid, java.lang.String currentValue, boolean fromMaximo) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SitecurrentValue
- Value to fine CrossRefernce forfromMaximo
- Direction of CrossReference control FROM/TO MAXIMOMXException
- MAXIMO exceptionpublic java.util.List<java.lang.String> getListControl(java.lang.String extsys, java.lang.String name) throws MXException
name
- Control nameMXException
- MAXIMO exceptionpublic java.util.ArrayList<java.lang.String> getListControl(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SiteMXException
- MAXIMO exceptionpublic boolean isControlTrue(java.lang.String extsys, java.lang.String name) throws MXException
name
- Control nameMXException
- MAXIMO exceptionpublic boolean isControlTrue(java.lang.String extsys, java.lang.String name, java.lang.String orgid, java.lang.String siteid) throws MXException
name
- Control nameorgid
- Organizationsiteid
- SiteMXException
- MAXIMO exceptionpublic void setXREFValues(java.util.Map<java.lang.String,java.lang.Object> inMap, java.lang.String key, java.lang.String val1, java.lang.String val2) throws MXException
inMap
- Map of the valueskey
- key nameval1
- value to replaceval2
- new valueMXException
- MAXIMO exception