|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.b2bi.bfm.base.WWFResources
The WWFResources is utility class. It provides the service to get the values from the WWF_ResourceBundle.properties file, it provides a template for creating the home object for an enterprise bean, it provides services to trace and logging.
Method Summary | |
static boolean |
addUserInfo(java.lang.String userId,
java.lang.Object uInfo)
This method adds the logon object for the user to a cache |
java.lang.String |
getActivityRole(java.lang.String activityName)
This method gets the role for a given activityName |
java.sql.Connection |
getConnectionFromPool(java.lang.String _user,
java.lang.String _pwd)
|
com.ibm.epic.LogTrace.EpicLog |
getLogClient()
Gets the log client object. |
java.lang.String |
getNLSMessage(java.lang.String msgId,
java.lang.Object[] obj)
Gets the NLS based string for the given message Id. |
java.lang.Object |
getResource(java.lang.String name)
Returns the value for the given string name, defined in the wwf resourcebundle property file. |
static WWFResources |
getSingleton()
Returns the single instance of the WWFResources object. |
static java.lang.Object |
getUserInfo(java.lang.String userId)
This method retrieves the logon object for the user from the cache |
java.lang.String |
getUserPwd(java.lang.String userId)
Gets the user password from the property file if GSO is not available. |
boolean |
isGSO()
Returns boolean based on whether GSO is available or not NOTE: This method will be removed in the future releases. |
boolean |
isLogging()
Returns true if logging is enabled, else returns false |
boolean |
isTraceable()
Returns true if tracing is enabled, else returns false |
java.lang.String |
logExceptionToEM(java.lang.String expName,
java.lang.String fnName,
java.lang.String msgStr)
Logs the exception to the exception manager. |
static void |
removeAllUsers()
This method removes the logon object for the user to a cache |
static boolean |
removeUserInfo(java.lang.String userId)
This method removes the logon object for the user to a cache |
static void |
resetWaitForLogonToComplete(java.lang.String userId)
Remove the user from the pending list, after a successful logon |
boolean |
sendEvents()
Returns true if events is enabled, else returns false |
static void |
waitForLogonToComplete(java.lang.String userId)
If we receive multiple logon requests for the same user, process one at a time. |
void |
writeTrace(long level,
java.lang.Object obj,
java.lang.String clName,
java.lang.String msgId)
Traces a message, by key, with no parameters.. |
void |
writeTrace(long level,
java.lang.Object obj,
java.lang.String clName,
java.lang.String msgId,
java.lang.Object[] paramObjs)
Traces a message, by key, with an array of parameters. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public com.ibm.epic.LogTrace.EpicLog getLogClient()
public java.lang.String getNLSMessage(java.lang.String msgId, java.lang.Object[] obj)
msgId
- The message Id.obj
- An array of objects that gets filled in the NLS string.public boolean isLogging()
public boolean isTraceable()
public boolean sendEvents()
public void writeTrace(long level, java.lang.Object obj, java.lang.String clName, java.lang.String msgId)
level
- The trace level.obj
- The logging object ("this").clName
- The name of the logging method.msgId
- The message key.public void writeTrace(long level, java.lang.Object obj, java.lang.String clName, java.lang.String msgId, java.lang.Object[] paramObjs)
level
- The trace level.obj
- The logging object ("this").clName
- The name of the logging method.msgId
- The message key.parms
- An array of elements to be inserted into the message.public static boolean addUserInfo(java.lang.String userId, java.lang.Object uInfo)
userId
- User IduInfo
- The logon objectpublic java.lang.String getActivityRole(java.lang.String activityName)
activityName
- The activity Namepublic java.sql.Connection getConnectionFromPool(java.lang.String _user, java.lang.String _pwd) throws java.sql.SQLException, java.lang.Exception
public java.lang.Object getResource(java.lang.String name)
name
- The name of the string.public static WWFResources getSingleton()
public static java.lang.Object getUserInfo(java.lang.String userId)
userId
- User Idpublic java.lang.String getUserPwd(java.lang.String userId)
public boolean isGSO()
public java.lang.String logExceptionToEM(java.lang.String expName, java.lang.String fnName, java.lang.String msgStr)
expName
- The exception name.fnName
- The function name.msgStr
- The message string.public static void removeAllUsers()
userId
- User Idpublic static boolean removeUserInfo(java.lang.String userId)
userId
- User Idpublic static void resetWaitForLogonToComplete(java.lang.String userId)
public static void waitForLogonToComplete(java.lang.String userId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |