|
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.LocalProfile
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LocalProfile()
Method Detail |
public void setProperty(java.lang.String name, java.lang.Object value)
name
- The name to associate the value withvalue
- The value to associate with the namepublic java.lang.Object getProperty(java.lang.String name, java.lang.Object defaultValue)
name
- The name of the property to retrieve.defaultValue
- The value to return if that property is not set.public java.lang.String getPropertyAsString(java.lang.String key, java.lang.String defaultValue)
key
- java.lang.Stringpublic java.lang.Object removeProperty(java.lang.String key)
key
- java.lang.Stringpublic java.lang.Object getProperty(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.Object defaultValue)
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.public java.lang.String getPropertyAsString(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.String defaultValue)
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.ConfigurableEntity.getProperty(String scopeName, String key, ConfigurableEntity successor, Object defaultValue)
public void setProperty(java.lang.String scopeName, java.lang.String key, java.lang.Object property)
scopeName
- The name of the scope.name
- The name to associate the value with.value
- The value to associate with the name.public java.lang.Object removeProperty(java.lang.String scopeName, java.lang.String key)
scopeName
- The name of the scope.key
- The name of the property to remove.public long getUniqueId()
protected java.util.Map getDefaultScope()
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |