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, setAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributes
public ContextInfo()
public ContextInfo(Context context)
context
- the context to copypublic String getAuthenticatedPrincipalId()
Context
getAuthenticatedPrincipalId
in interface Context
public void setAuthenticatedPrincipalId(String authenticatedPrincipalId)
public String getPrincipalId()
Context
getPrincipalId
in interface Context
public void setPrincipalId(String principalId)
public Date getCurrentDate()
Context
getCurrentDate
in interface Context
public void setCurrentDate(Date currentDate)
public LocaleInfo getLocale()
Context
public void setLocale(LocaleInfo locale)
public String getTimeZone()
Context
getTimeZone
in interface Context
public void setTimeZone(String timeZone)
@Deprecated public static ContextInfo getInstance(String principalId, String localeLanguage, String localeRegion)
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.