|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.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 java.util.Locale |
locale
the locale object |
protected java.util.Properties |
placeholders
URI placeholder used by resource factory |
protected java.util.HashMap |
properties
some properties used by setValue() /getValue() |
protected static java.lang.String |
SESSION
testing ? |
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,
java.util.Locale fallbackLocale)
|
|
ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
java.util.Locale locale,
boolean isPrimaryLocale)
|
|
| Method Summary | |
IResourceContext |
cloneContext()
Clone resource context. |
long |
getCreationTime()
|
java.util.Locale |
getLocale()
Get the locale for that context. |
java.lang.Object |
getObjectValue(java.lang.String name)
Returns the value for the specified name |
com.sapportals.portal.security.usermanagement.IUser |
getUser()
Get the current user for that context. |
java.lang.String |
getValue(java.lang.String name)
Returns the value for the specified name |
java.util.HashMap |
getValues()
Returns the internal properties map as is without copying them to be used and possible modified from outside. |
void |
setLocale(java.util.Locale locale)
Set the locale for that context. |
void |
setObjectValue(java.lang.String name,
java.lang.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(java.lang.String name,
java.lang.String value)
Add/update a name/value pair |
void |
setValues(java.util.HashMap properties)
Takes and sets the properties as is without copying them to be used and possibly modified as internal properties map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String SESSION
protected java.util.HashMap properties
setValue() /getValue()protected java.util.Locale locale
protected transient com.sapportals.portal.security.usermanagement.IUser user
protected java.util.Properties placeholders
| Constructor Detail |
public ResourceContext(com.sapportals.portal.security.usermanagement.IUser user)
public ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
java.util.Locale fallbackLocale)
public ResourceContext(com.sapportals.portal.security.usermanagement.IUser user,
java.util.Locale locale,
boolean isPrimaryLocale)
| Method Detail |
public long getCreationTime()
public void setObjectValue(java.lang.String name,
java.lang.Object value)
throws ResourceException
IResourceContextsetObjectValue in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextname - A unique namevalue - An objectResourceException - If the name paramater is invalidpublic java.lang.Object getObjectValue(java.lang.String name)
IResourceContextgetObjectValue in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextname - TBD: Description of the incoming method parameter
public void setValue(java.lang.String name,
java.lang.String value)
throws ResourceException
IResourceContextsetValue in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextname - A unique namevalue - The valueResourceException - If the name paramater is invalidpublic java.lang.String getValue(java.lang.String name)
IResourceContextgetValue in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextname - TBD: Description of the incoming method parameterpublic void setValues(java.util.HashMap properties)
IResourceContextsetValues in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextproperties - propertiespublic java.util.HashMap getValues()
IResourceContextgetValues in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextpublic java.util.Locale getLocale()
IResourceContextgetLocale in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextLocale the locale to use.Localepublic void setLocale(java.util.Locale locale)
IResourceContextsetLocale in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextlocale - locale to be setLocalepublic void setUser(com.sapportals.portal.security.usermanagement.IUser user)
IResourceContextsetUser in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextuser - user to be setpublic com.sapportals.portal.security.usermanagement.IUser getUser()
IResourceContextgetUser in interface IResourceContextcom.sapportals.wcm.repository.IResourceContextIUser the user.public IResourceContext cloneContext()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||