|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.ResourceContext
Instances of this class contain information about the context the client is running is (request, session, etc.)
Copyright (c) SAP AG 2001-2004
| Field Summary | |
protected Locale |
locale
the locale object |
protected HashMap |
properties
some properties used by setValue() /getValue() |
protected com.sapportals.portal.security.usermanagement.IUser |
user
the current user in that context |
| Fields inherited from interface com.sapportals.wcm.repository.IResourceContext |
NO_KEYWORD_SUBSTITUTION |
| Constructor Summary | |
ResourceContext(com.sapportals.portal.security.usermanagement.IUser user)
|
|
ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
Locale fallbackLocale)
|
|
ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
Locale locale,
boolean isPrimaryLocale)
|
|
| Method Summary | |
IResourceContext |
cloneContext()
Clone resource context. |
long |
getCreationTime()
|
Locale |
getLocale()
Get the locale for that context. |
Object |
getObjectValue(String name)
Returns the value for the specified name |
com.sapportals.portal.security.usermanagement.IUser |
getUser()
Get the current user for that context. |
String |
getValue(String name)
Returns the value for the specified name |
HashMap |
getValues()
Returns the internal properties map as is without copying them to be used and possible modified from outside. |
void |
setLocale(Locale locale)
Set the locale for that context. |
void |
setObjectValue(String name,
Object value)
Add/update a name/value pair |
void |
setUser(com.sapportals.portal.security.usermanagement.IUser user)
Set the current user for that context. |
void |
setValue(String name,
String value)
Add/update a name/value pair |
void |
setValues(HashMap properties)
Takes and sets the properties as is without copying them to be used and possibly modified as internal properties map. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected HashMap properties
setValue() /getValue()
protected Locale locale
protected transient com.sapportals.portal.security.usermanagement.IUser user
| Constructor Detail |
public ResourceContext(com.sapportals.portal.security.usermanagement.IUser user)
public ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
Locale fallbackLocale)
public ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
Locale locale,
boolean isPrimaryLocale)
| Method Detail |
public long getCreationTime()
public void setObjectValue(String name,
Object value)
throws ResourceException
IResourceContext
setObjectValue in interface IResourceContextname - A unique namevalue - An object
ResourceException - If the name paramater is invalidpublic Object getObjectValue(String name)
IResourceContext
getObjectValue in interface IResourceContextname - TBD: Description of the incoming method parameter
public void setValue(String name,
String value)
throws ResourceException
IResourceContext
setValue in interface IResourceContextname - A unique namevalue - The value
ResourceException - If the name paramater is invalidpublic String getValue(String name)
IResourceContext
getValue in interface IResourceContextname - TBD: Description of the incoming method parameter
public void setValues(HashMap properties)
IResourceContext
setValues in interface IResourceContextproperties - propertiespublic HashMap getValues()
IResourceContext
getValues in interface IResourceContextpublic Locale getLocale()
IResourceContext
getLocale in interface IResourceContextLocale the locale to use.Localepublic void setLocale(Locale locale)
IResourceContext
setLocale in interface IResourceContextlocale - locale to be setLocalepublic void setUser(com.sapportals.portal.security.usermanagement.IUser user)
IResourceContext
setUser in interface IResourceContextuser - user to be setpublic com.sapportals.portal.security.usermanagement.IUser getUser()
IResourceContext
getUser in interface IResourceContextIUser the user.public IResourceContext cloneContext()
public String toString()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||