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, 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
Constructor and Description |
---|
CtrlCondPropCache() |
Modifier and Type | Method and Description |
---|---|
java.util.TreeMap<java.lang.Integer,java.lang.String[]> |
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<java.lang.Integer,java.util.HashMap<java.lang.String,java.lang.Object>> |
getCtrlGroups(java.lang.String app,
java.lang.String optionname)
Get the entry in
ctrlGroups for the given app and optionname. |
java.util.HashMap<java.lang.String,java.lang.String> |
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<java.lang.String,java.lang.String> |
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<java.lang.String> |
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<java.lang.String> propertyList)
Caches a list (TreeSet) of all possible properties that can be conditional changed.
|
public java.lang.String getName()
getName
in interface MaximoCache
public void init() throws MXException
init
in interface MaximoCache
MXException
public void reload() throws MXException
reload
in interface MaximoCache
MXException
MaximoCache.reload()
,
#reloadCache
public void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
key
- MXException
public void init(MXServer mxs) throws MXException
MXException
public java.util.HashMap<java.lang.String,java.lang.String> getPropertyCache(UserInfo ui, java.lang.String ctrlConditionID, java.lang.String result) throws MXException, java.rmi.RemoteException
UserInfo
- uiString
- ctrlConditionIDString
- resultMXException
java.rmi.RemoteException
public java.util.HashMap<java.lang.String,java.lang.String> getLoadedProperties(java.lang.String langCode, java.lang.String ctrlConditionID, java.lang.String result)
String
- langCodeString
- ctrlConditionIDlangCode
- public java.util.TreeMap<java.lang.Integer,java.util.HashMap<java.lang.String,java.lang.Object>> 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.MXException
java.rmi.RemoteException
public java.util.TreeMap<java.lang.Integer,java.lang.String[]> 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.MXException
java.rmi.RemoteException
getCtrlGroups(java.lang.String, java.lang.String)
,
loadCtrlConditions(java.lang.Long)
public java.util.TreeSet<java.lang.String> getPropertyList() throws MXException
MXException
public void setPropertyList(java.util.TreeSet<java.lang.String> propertyList) throws MXException
MXException