BEA Systems, Inc.

com.beasys.commerce.user.jsp.beans
Class LocalProfileBean

java.lang.Object
  |
  +--com.beasys.commerce.axiom.p13n.http.HttpConfigurableEntity
        |
        +--com.beasys.commerce.user.jsp.beans.LocalProfileBean
Direct Known Subclasses:
AnonymousProfileBean, CachedProfileBean

public class LocalProfileBean
extends HttpConfigurableEntity
implements java.io.Serializable

Bean used to hold the local user profile.

See Also:
Serialized Form

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)
          This method is not supported.
 java.lang.Object removeProperty(java.lang.String scope, java.lang.String propertyName)
          Removes the specified property from the profile.
 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, getEJBHome, getHandle, getPersistableHandle, getPrimaryKey, getProperty, getPropertyAsString, getPropertyDefault, getPropertyNoDefault, getSuccessor, getUniqueId, isIdentical, remove, removeBusinessPolicy, removeProperty, removePropertyValue, removePropertyValueMapped, removeSuccessor, set__containingBelonging, set__containingEntity, set__mapKey, setProperty, setSuccessor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalProfileBean

public LocalProfileBean()
Method Detail

setProperty

public void setProperty(java.lang.String scope,
                        java.lang.String propertyName,
                        java.lang.Object value)
Sets a property in the profile.
Overrides:
setProperty in class HttpConfigurableEntity
Parameters:
scope - the scope to which the property is set.
propertyName - the name of the property to set
value - the new property value

getProperty

public java.lang.Object getProperty(java.lang.String scope,
                                    java.lang.String propertyName)
Retrieves the property value for the given scope.
Parameters:
the - scope in which the property value is to be looked up
propertyName - the name of the property whose value is sought
Returns:
the value of the property, null if the value is not found

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String scope,
                                            java.lang.String propertyName)
Description copied from class: HttpConfigurableEntity
This method is not supported.
Overrides:
getPropertyAsString in class HttpConfigurableEntity
Tags copied from interface: ConfigurableEntity
Parameters:
key - The name of the property to retrieve.
defaultValue - The String to return if that property is not set.
See Also:
ConfigurableEntity.getProperty(String key, Object defaultValue)

removeProperty

public java.lang.Object removeProperty(java.lang.String scope,
                                       java.lang.String propertyName)
Removes the specified property from the profile.
Overrides:
removeProperty in class HttpConfigurableEntity
Parameters:
scope - the scope in which to find the profile
propertyName - the name of the property to remove from the profile

transferProperties

public void transferProperties(User knownProfile)
Moves the properties from this profile into a concrete profile.
Parameters:
knownProfile - the profile into which properties are transferred

clearValues

public void clearValues()
Clears the values in the anonymous profile.

getProperty

public java.lang.Object getProperty(java.lang.String aScopeName,
                                    java.lang.String aKey,
                                    ConfigurableEntity successor,
                                    java.lang.Object aDefault)
Retrieves a property value.
Overrides:
getProperty in class HttpConfigurableEntity
Parameters:
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 name
successor - 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.
Returns:
the property value

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved