org.kuali.student.common.ui.client.application
Class ApplicationContext

java.lang.Object
  extended by org.kuali.student.common.ui.client.application.ApplicationContext

public class ApplicationContext
extends Object


Field Summary
private  String applicationContextUrl
           
private  Map<String,String> flatMessages
           
private  boolean loggedIn
           
private  Map<String,Map<String,String>> messages
           
private  List<Message> messagesList
           
private  List<String> roles
           
private  SecurityContext securityContext
           
private  ServerPropertiesRpcServiceAsync serverPropertiesRpcService
           
private  String userId
           
 
Constructor Summary
protected ApplicationContext()
          This constructor should only be visible to the common application package.
 
Method Summary
 void addMessages(List<Message> messages)
           
 String getApplicationContextUrl()
           
 String getMessage(String messageId)
           
 String getMessage(String groupName, String messageId)
           
 List<Message> getMessages()
           
 List<String> getRoles()
           
 SecurityContext getSecurityContext()
           
 String getUILabel(String groupName, String fieldId)
           
 String getUILabel(String groupName, String type, String state, String fieldId)
          This method looks up a UI Label in the messages cache.
 String getUserId()
           
 boolean isLoggedIn()
           
 void setLoggedIn(boolean loggedIn)
           
 void setRoles(List<String> roles)
           
 void setSecurityContext(SecurityContext securityContext)
           
 void setUserId(String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ApplicationContext

protected ApplicationContext()
This constructor should only be visible to the common application package. If ApplicationContext is required outside this package do Application.getApplicationContext();

Method Detail

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.