org.kuali.student.common.ui.client.application
Class ApplicationContext
java.lang.Object
org.kuali.student.common.ui.client.application.ApplicationContext
public class ApplicationContext
- extends Object
Constructor Summary |
protected |
ApplicationContext()
This constructor should only be visible to the common application package. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverPropertiesRpcService
private ServerPropertiesRpcServiceAsync serverPropertiesRpcService
loggedIn
private boolean loggedIn
userId
private String userId
roles
private List<String> roles
messages
private Map<String,Map<String,String>> messages
flatMessages
private Map<String,String> flatMessages
messagesList
private List<Message> messagesList
securityContext
private SecurityContext securityContext
applicationContextUrl
private String applicationContextUrl
ApplicationContext
protected ApplicationContext()
- This constructor should only be visible to the common application package. If ApplicationContext is
required outside this package do Application.getApplicationContext();
setLoggedIn
public void setLoggedIn(boolean loggedIn)
setUserId
public void setUserId(String userId)
setRoles
public void setRoles(List<String> roles)
isLoggedIn
public boolean isLoggedIn()
getUserId
public String getUserId()
getRoles
public List<String> getRoles()
addMessages
public void addMessages(List<Message> messages)
getMessage
public String getMessage(String messageId)
getMessages
public List<Message> getMessages()
getMessage
public String getMessage(String groupName,
String messageId)
getUILabel
public String getUILabel(String groupName,
String type,
String state,
String fieldId)
- This method looks up a UI Label in the messages cache.
First looks for a label specific to the type and state of the field.
If none found try for a generalized label.
Otherwise return the supplied fieldId
Groups provide namespace for same label ids within different LUs
- Parameters:
groupName
- - for example 'course' or 'program'type
- state
- fieldId
-
- Returns:
getUILabel
public String getUILabel(String groupName,
String fieldId)
getSecurityContext
public SecurityContext getSecurityContext()
setSecurityContext
public void setSecurityContext(SecurityContext securityContext)
getApplicationContextUrl
public String getApplicationContextUrl()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.