public class MaxMessageCache 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 |
|---|
MaxMessageCache() |
| Modifier and Type | Method and Description |
|---|---|
MaxMessage |
getMaxMessage(java.lang.String group,
java.lang.String key)
Get the MaxMessage object in base language.
|
MaxMessage |
getMaxMessage(java.lang.String group,
java.lang.String key,
java.lang.String langCode)
Get the message for group,key and language
|
MaxMessage |
getMaxMessage(java.lang.String group,
java.lang.String key,
UserInfo ui)
Get the MaxMessage object in the language specified in the userinfo.
|
Message |
getMessage(java.lang.String group,
java.lang.String key)
Get the psdi.util.Message of the base language.
|
Message |
getMessage(java.lang.String group,
java.lang.String key,
UserInfo ui)
Get the psdi.util.Message object of the message specified by the group, key,
in the language of the user info.
|
java.lang.String |
getName()
Returns the name of the cache object MAXMESSAGECACHE.
|
static Message |
getTaggedMessage(MaxMessage mmsg) |
static Message |
getTaggedMessage(MaxMessageBase mmsg) |
Message |
getTaggedMessage(java.lang.String group,
java.lang.String key)
Called from MXException
This message will tag the group and key information also
Get the psdi.util.Message of the base language.
|
Message |
getTaggedMessage(java.lang.String group,
java.lang.String key,
java.lang.String langCode)
Get the message for the group,key and language
|
Message |
getTaggedMessage(java.lang.String group,
java.lang.String key,
UserInfo ui)
Called from MXException
This message will tag the group and key information also
Get the psdi.util.Message object of the message specified by the group, key,
in the language of the user info.
|
void |
init()
Initialize the cache object.
|
boolean |
isMsgBundleLoaded(java.lang.String msgGroup,
java.lang.String langCode)
Returns true if the message group has already loaded for the language specified
in the userinfo.
|
void |
loadMsgGroup(java.lang.String group,
UserInfo ui)
Load the entire message group to the cache for the language specified in the userInfo.
|
void |
reload()
Reloads the cache object.
|
void |
reload(java.lang.String hashKey)
Initialize a specific component of the cache identified by the key.
|
void |
reload(java.lang.String group,
java.lang.String key,
java.lang.String langCode)
Reload a specific message in a particular language.
|
public void init()
throws MXException
init in interface MaximoCacheMXExceptionpublic void reload()
throws MXException
reload in interface MaximoCacheMXExceptionpublic void reload(java.lang.String hashKey)
throws MXException
reload in interface MaximoCachekey - group|key or group only if there is no bar in the stringMXExceptionpublic void reload(java.lang.String group,
java.lang.String key,
java.lang.String langCode)
throws MXException,
java.rmi.RemoteException
group - message groupkey - message keylangCode - language codeMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getName()
getName in interface MaximoCachepublic MaxMessage getMaxMessage(java.lang.String group, java.lang.String key, UserInfo ui) throws MXException, java.rmi.RemoteException
bundle - key - ui - MXExceptionjava.rmi.RemoteExceptionpublic MaxMessage getMaxMessage(java.lang.String group, java.lang.String key, java.lang.String langCode) throws MXException, java.rmi.RemoteException
group - key - langCode - MXExceptionjava.rmi.RemoteExceptionpublic Message getMessage(java.lang.String group, java.lang.String key, UserInfo ui) throws MXException, java.rmi.RemoteException
group - key - ui - MXExceptionjava.rmi.RemoteExceptionpublic Message getTaggedMessage(java.lang.String group, java.lang.String key, UserInfo ui) throws MXException, java.rmi.RemoteException
group - key - ui - MXExceptionjava.rmi.RemoteExceptionpublic Message getTaggedMessage(java.lang.String group, java.lang.String key, java.lang.String langCode) throws MXException, java.rmi.RemoteException
group - key - langCode - MXExceptionjava.rmi.RemoteExceptionpublic MaxMessage getMaxMessage(java.lang.String group, java.lang.String key) throws MXException, java.rmi.RemoteException
bundle - key - MXExceptionjava.rmi.RemoteExceptionpublic Message getMessage(java.lang.String group, java.lang.String key) throws MXException, java.rmi.RemoteException
group - key - MXExceptionjava.rmi.RemoteExceptionpublic Message getTaggedMessage(java.lang.String group, java.lang.String key) throws MXException, java.rmi.RemoteException
group - key - MXExceptionjava.rmi.RemoteExceptionpublic static Message getTaggedMessage(MaxMessage mmsg)
public static Message getTaggedMessage(MaxMessageBase mmsg)
public void loadMsgGroup(java.lang.String group,
UserInfo ui)
throws MXException,
java.rmi.RemoteException
ui - MXExceptionjava.rmi.RemoteExceptionpublic boolean isMsgBundleLoaded(java.lang.String msgGroup,
java.lang.String langCode)
ui -