|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.util.GlobalVariables
public class GlobalVariables
This class will hold all of our thread local variables and accessors for those
| Constructor Summary | |
|---|---|
GlobalVariables()
|
|
| Method Summary | |
|---|---|
static void |
clear()
Clears out GlobalVariable objects with the exception of the UserSession |
static HashMap |
getAuditErrorMap()
|
static ErrorMap |
getErrorMap()
Deprecated. use getMessageMap() instead. |
static KualiForm |
getKualiForm()
|
static MessageList |
getMessageList()
|
static MessageMap |
getMessageMap()
|
static Object |
getRequestCache(String cacheName)
|
static UserSession |
getUserSession()
|
static void |
mergeErrorMap(MessageMap messageMap)
Merges a message map into the global variables error map |
static void |
setAuditErrorMap(HashMap errorMap)
Sets a new (clean) AuditErrorList |
static void |
setErrorMap(ErrorMap errorMap)
Deprecated. use setMessageMap(MessageMap) instead |
static void |
setHideSessionFromTestsMessage(String message)
Sets an error message for tests that try to use the session without declaring it. |
static void |
setKualiForm(KualiForm kualiForm)
sets the kualiForm object into the global variable for this thread |
static void |
setMessageList(MessageList messageList)
Sets a new message list |
static void |
setMessageMap(MessageMap messageMap)
Sets a new (clean) MessageMap |
static void |
setRequestCache(String cacheName,
Object cacheObject)
|
static void |
setUserSession(UserSession userSession)
sets the userSession object into the global variable for this thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalVariables()
| Method Detail |
|---|
public static UserSession getUserSession()
public static void setHideSessionFromTestsMessage(String message)
message - the detail to throw, or null to allow access to the sessionpublic static void setUserSession(UserSession userSession)
userSession - @Deprecated public static ErrorMap getErrorMap()
getMessageMap() instead.
public static MessageMap getMessageMap()
public static void mergeErrorMap(MessageMap messageMap)
messageMap - public static void setMessageMap(MessageMap messageMap)
messageMap - @Deprecated public static void setErrorMap(ErrorMap errorMap)
setMessageMap(MessageMap) instead
errorMap - public static MessageList getMessageList()
public static void setMessageList(MessageList messageList)
messageList - public static HashMap getAuditErrorMap()
public static void setAuditErrorMap(HashMap errorMap)
errorMap - public static KualiForm getKualiForm()
public static void setKualiForm(KualiForm kualiForm)
kualiForm - public static Object getRequestCache(String cacheName)
public static void setRequestCache(String cacheName,
Object cacheObject)
public static void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||