public class ControlsCacheImpl extends java.lang.Object implements MaximoCache
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name to be registered in the cashe to reload
|
Constructor and Description |
---|
ControlsCacheImpl() |
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
|
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
|
void |
init()
Init Method
|
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 |
reload()
Default Reload method
|
void |
reload(java.lang.String key)
Reload method
|
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 final java.lang.String NAME
public void init() throws MXException
init
in interface MaximoCache
MXException
- MAXIMO exceptionpublic void reload() throws MXException
reload
in interface MaximoCache
MXException
- MAXIMO exceptionpublic void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
key
- Give keyMXException
- MAXIMO exceptionpublic java.lang.String getName()
getName
in interface MaximoCache
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