|
© 2001 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.
Fields inherited from interface com.beasys.commerce.foundation.ConfigurableEntity |
RESERVED_SCOPE_NAME |
Constructor Summary | |
LocalProfileBean()
|
Method Summary | |
void |
clearValues()
Clears the values in the anonymous profile. |
java.util.Map |
getDefaultScope()
|
java.util.Map |
getProperties()
This returns the main cache of properties. |
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 com.beasys.commerce.axiom.p13n.http.HttpConfigurableEntity |
addBusinessPolicy, addPropertyValue, addPropertyValueMapped, get__classIdentifier, get__containingBelonging, get__containingEntity, get__mapKey, get__sequenceNumber, getBusinessPolicy, getDefaultValueFromSchema, getEJBHome, getHandle, getPersistableHandle, getPrimaryKey, getProperty, getPropertyAsString, getPropertyDefault, getPropertyNoDefault, getSuccessor, getUniqueId, isIdentical, remove, removeBusinessPolicy, removeProperty, r
|
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)
setProperty
in class HttpConfigurableEntity
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)
getPropertyAsString
in class HttpConfigurableEntity
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)
removeProperty
in class HttpConfigurableEntity
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)
getProperty
in class HttpConfigurableEntity
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 pairspublic java.util.Map getDefaultScope()
public java.util.Map getProperties()
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |