|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.p13n.http.HttpConfigurableEntity | +--com.beasys.commerce.user.jsp.beans.LocalProfileBean
Bean used to hold the local user profile. This is used behind any bean that caches user profile values at the JSP layer, such as the AnonymousProfileBean.
Constructor Summary | |
LocalProfileBean()
|
Method Summary | |
void |
clearValues()
Clears the values in the anonymous profile. |
java.lang.Object |
getProperty(java.lang.String scope,
java.lang.String propertyName)
Retrieves the property value for the given scope. |
java.lang.Object |
getProperty(java.lang.String aScopeName,
java.lang.String aKey,
ConfigurableEntity successor,
java.lang.Object aDefault)
Retrieves a property value. |
java.lang.String |
getPropertyAsString(java.lang.String scope,
java.lang.String propertyName)
Retrieves the property value for the given scope, cast to a String by calling the value's toString() method. |
java.lang.Object |
removeProperty(java.lang.String scope,
java.lang.String propertyName)
Removes the specified property from the profile. |
protected void |
setProperties(java.util.HashMap properties)
Resets all locally-held properties to the given values. |
void |
setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value)
Sets a property in the profile. |
void |
transferProperties(User knownProfile)
Moves the properties from this profile into a concrete profile. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LocalProfileBean()
Method Detail |
public void setProperty(java.lang.String scope, java.lang.String propertyName, java.lang.Object value)
scope
- the scope to which the property is set.propertyName
- the name of the property to setvalue
- the new property valuepublic java.lang.Object getProperty(java.lang.String scope, java.lang.String propertyName)
the
- scope in which the property value is to be looked uppropertyName
- the name of the property whose value is soughtnull
if the value is
not foundpublic java.lang.String getPropertyAsString(java.lang.String scope, java.lang.String propertyName)
the
- scope in which the property value is to be looked uppropertyName
- the name of the property whose value is soughtnull
if the value is
not foundpublic java.lang.Object removeProperty(java.lang.String scope, java.lang.String propertyName)
scope
- the scope in which to find the profilepropertyName
- the name of the property to remove from the profilepublic void transferProperties(User knownProfile)
knownProfile
- the profile into which properties are transferredpublic void clearValues()
public java.lang.Object getProperty(java.lang.String aScopeName, java.lang.String aKey, ConfigurableEntity successor, java.lang.Object aDefault)
scopeName
- The name of the scope for which the property is
sought. The scope is only used if no property is found in the request
and we use the scope to look up the default value in the Schema for the
request. This parameter can be null.key
- The property namesuccessor
- The successor. Must be null. It is not used in this
method and will be ignored.defaultValue
- the default value to return if the property is
not found anywhere.protected void setProperties(java.util.HashMap properties)
properties
- a Map of key->value pairs
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |