public class ContextInfo extends HasAttributesInfo implements Context, Serializable
| Constructor and Description |
|---|
ContextInfo()
Constructs a new ContextInfo.
|
ContextInfo(Context context)
Constructs a new ContextInfo from another Context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticatedPrincipalId()
The Principal Id of the currently authenticated user.
|
Date |
getCurrentDate()
The current date in this context.
|
static ContextInfo |
getInstance(String principalId,
String localeLanguage,
String localeRegion)
Deprecated.
|
LocaleInfo |
getLocale()
The locale information requested by the user.
|
String |
getPrincipalId()
The Principal Id of the principal on whose behalf the
authenticated principal is acting.
|
String |
getTimeZone()
The time zone requested by the user.
|
void |
setAuthenticatedPrincipalId(String authenticatedPrincipalId) |
void |
setCurrentDate(Date currentDate) |
void |
setLocale(LocaleInfo locale) |
void |
setPrincipalId(String principalId) |
void |
setTimeZone(String timeZone) |
getAttributes, getAttributeValue, getAttributeValueList, setAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributespublic ContextInfo()
public ContextInfo(Context context)
context - the context to copypublic String getAuthenticatedPrincipalId()
ContextgetAuthenticatedPrincipalId in interface Contextpublic void setAuthenticatedPrincipalId(String authenticatedPrincipalId)
public String getPrincipalId()
ContextgetPrincipalId in interface Contextpublic void setPrincipalId(String principalId)
public Date getCurrentDate()
ContextgetCurrentDate in interface Contextpublic void setCurrentDate(Date currentDate)
public LocaleInfo getLocale()
Contextpublic void setLocale(LocaleInfo locale)
public String getTimeZone()
ContextgetTimeZone in interface Contextpublic void setTimeZone(String timeZone)
@Deprecated public static ContextInfo getInstance(String principalId, String localeLanguage, String localeRegion)
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.