public class CtrlCondPropCache extends java.lang.Object implements MaximoCache, FixedLoggers
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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| Constructor and Description |
|---|
CtrlCondPropCache() |
| Modifier and Type | Method and Description |
|---|---|
java.util.TreeMap |
getCtrlConditions(java.lang.String app,
java.lang.String optionname,
java.util.HashSet groupNames)
Read CtrlGroup and CtrlCondition for the given app and optionname.
|
java.util.TreeMap |
getCtrlGroups(java.lang.String app,
java.lang.String optionname)
Get the entry in
ctrlGroups for the given app and optionname. |
java.util.HashMap |
getLoadedProperties(java.lang.String langCode,
java.lang.String ctrlConditionID,
java.lang.String result)
Retrieve the properties Hash from the data structure.
|
java.lang.String |
getName()
Returns "CTRLCONDPROP" - the name of the cache object.
|
java.util.HashMap |
getPropertyCache(UserInfo ui,
java.lang.String ctrlConditionID,
java.lang.String result)
Get the HashMap of properties by language code(using UserInfo),
condition identifier, and condition result.
|
java.util.TreeSet |
getPropertyList()
Returns a list (TreeMap) of all possible properties that can be conditional changed.
|
void |
init()
Initialize the cache object.
|
void |
init(MXServer mxs)
Does same as init();
|
void |
reload()
Reloads the cache object.
|
void |
reload(java.lang.String key)
Not used.
|
void |
setPropertyList(java.util.TreeSet propertyList)
Caches a list (TreeSet) of all possible properties that can be conditional changed.
|
public java.lang.String getName()
getName in interface MaximoCachepublic void init()
throws MXException
init in interface MaximoCacheMXExceptionpublic void reload()
throws MXException
reload in interface MaximoCacheMXExceptionMaximoCache.reload(),
#reloadCachepublic void reload(java.lang.String key)
throws MXException
reload in interface MaximoCachekey - MXExceptionpublic void init(MXServer mxs) throws MXException
MXExceptionpublic java.util.HashMap getPropertyCache(UserInfo ui, java.lang.String ctrlConditionID, java.lang.String result) throws MXException, java.rmi.RemoteException
UserInfo - uiString - ctrlConditionIDString - resultMXExceptionjava.rmi.RemoteExceptionpublic java.util.HashMap getLoadedProperties(java.lang.String langCode,
java.lang.String ctrlConditionID,
java.lang.String result)
String - langCodeString - ctrlConditionIDlangCode - public java.util.TreeMap getCtrlGroups(java.lang.String app,
java.lang.String optionname)
throws MXException,
java.rmi.RemoteException
ctrlGroups for the given app and optionname.
If the app is not already in ctrlGroups, it will be loaded.app - Application nameoptionname - Sigoption optionnamectrlGroups.
If app or optionname not found, this will be empty.MXExceptionjava.rmi.RemoteExceptionpublic java.util.TreeMap getCtrlConditions(java.lang.String app,
java.lang.String optionname,
java.util.HashSet groupNames)
throws MXException,
java.rmi.RemoteException
app - Application nameoptionname - Option namegroupNames - The security groups to which the relevant user belongs.
The condition will be returned only if it is related to one of the
user's security groups.MXExceptionjava.rmi.RemoteExceptionCtrlCondPropCache.getCtrlGroups(java.lang.String, java.lang.String),
CtrlCondPropCache.loadCtrlConditions(java.lang.Long)public java.util.TreeSet getPropertyList()
throws MXException
MXExceptionpublic void setPropertyList(java.util.TreeSet propertyList)
throws MXException
MXException