BEA Systems, Inc.

com.beasys.commerce.user.jsp
Class LocalProfile

java.lang.Object
  |
  +--com.beasys.commerce.axiom.p13n.http.HttpConfigurableEntity
        |
        +--com.beasys.commerce.user.jsp.LocalProfile

public class LocalProfile
extends HttpConfigurableEntity

Light-weight object to cache property values at the JSP layer. This is the base class for the jsp beans used behind the <um:getProperty> and <um:setProperty> tags, even when caching is not required.


Constructor Summary
LocalProfile()
           
 
Method Summary
protected  java.util.Map getDefaultScope()
          return the Map representing properties stored in the default scope
 java.lang.Object getProperty(java.lang.String name, java.lang.Object defaultValue)
          Retrieve the value associated with the string.
 java.lang.Object getProperty(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.Object defaultValue)
          not implemented
 java.lang.String getPropertyAsString(java.lang.String key, java.lang.String defaultValue)
          Retrieve the value associated with the string.
 java.lang.String getPropertyAsString(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.String defaultValue)
          not implemented
 long getUniqueId()
          not implemented
 java.lang.Object removeProperty(java.lang.String key)
          Remove the property associated with the string.
 java.lang.Object removeProperty(java.lang.String scopeName, java.lang.String key)
          not implemented
 void setProperty(java.lang.String name, java.lang.Object value)
          Associate the specified value with the named key.
 void setProperty(java.lang.String scopeName, java.lang.String key, java.lang.Object property)
          not implemented
 
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, getPropertyDefault, getPropertyNoDefault, getSuccessor, isIdentical, remove, removeBusinessPolicy, removePropertyValue, removePropertyValueMapped, removeSuccessor, set__containingBelonging, set__containingEntity, set__mapKey, setSuccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalProfile

public LocalProfile()
Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Associate the specified value with the named key.
Overrides:
setProperty in class HttpConfigurableEntity
Parameters:
name - The name to associate the value with
value - The value to associate with the name

getProperty

public java.lang.Object getProperty(java.lang.String name,
                                    java.lang.Object defaultValue)
Retrieve the value associated with the string.
Overrides:
getProperty in class HttpConfigurableEntity
Parameters:
name - The name of the property to retrieve.
defaultValue - The value to return if that property is not set.

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String key,
                                            java.lang.String defaultValue)
Retrieve the value associated with the string.
Overrides:
getPropertyAsString in class HttpConfigurableEntity
Parameters:
key - java.lang.String

removeProperty

public java.lang.Object removeProperty(java.lang.String key)
Remove the property associated with the string.
Overrides:
removeProperty in class HttpConfigurableEntity
Parameters:
key - java.lang.String

getProperty

public java.lang.Object getProperty(java.lang.String scopeName,
                                    java.lang.String key,
                                    ConfigurableEntity successor,
                                    java.lang.Object defaultValue)
not implemented
Overrides:
getProperty in class HttpConfigurableEntity
Tags copied from 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

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String scopeName,
                                            java.lang.String key,
                                            ConfigurableEntity successor,
                                            java.lang.String defaultValue)
not implemented
Overrides:
getPropertyAsString in class HttpConfigurableEntity
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.
key - The name of the property to retrieve.
successor - The explicit successor to use for sucessor hiearchy search if the entity does not have the property defined.
defaultValue - The String to return if that property is not set.
See Also:
ConfigurableEntity.getProperty(String scopeName, String key, ConfigurableEntity successor, Object defaultValue)

setProperty

public void setProperty(java.lang.String scopeName,
                        java.lang.String key,
                        java.lang.Object property)
not implemented
Overrides:
setProperty in class HttpConfigurableEntity
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.
name - The name to associate the value with.
value - The value to associate with the name.

removeProperty

public java.lang.Object removeProperty(java.lang.String scopeName,
                                       java.lang.String key)
not implemented
Overrides:
removeProperty in class HttpConfigurableEntity
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.
key - The name of the property to remove.

getUniqueId

public long getUniqueId()
not implemented
Overrides:
getUniqueId in class HttpConfigurableEntity

getDefaultScope

protected java.util.Map getDefaultScope()
return the Map representing properties stored in the default scope

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved