public class ControlsCache extends AbstractMaximoMTEnabledCache
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
|
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