|
© 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
|
+--com.beasys.commerce.user.jsp.beans.CachedProfileBean
JSP Bean to support the <um:getProfile>, <um:getProperty>, and <um:setProperty> tags. This bean holds the state of the current profile and successor after calling <um:getProfile>. It also handles communications with the DirectPropertyManager session bean to set and retrieve properties.
NOTE: in previous releases, caching of properties was done in this bean at the JSP layer, hence the name. This is no longer the case, as properties are now cached in session beans.
| Fields inherited from interface com.beasys.commerce.foundation.ConfigurableEntity |
RESERVED_SCOPE_NAME |
| Constructor Summary | |
CachedProfileBean()
Default Constructor |
|
CachedProfileBean(javax.servlet.http.HttpServletRequest request,
java.lang.String profileKey)
|
|
| Method Summary | |
void |
clearValues()
Clears the values in the cached profile. |
ConfigurableEntity |
getProfile()
Returns a handle to itself, so that the profile can be treated as a ConfigurableEntity without locking any entity beans. |
long |
getProfileId()
Get the unique numeric id for the current profile. |
java.lang.String |
getProfileKey()
|
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 scope,
java.lang.String propertyName,
boolean getCached)
|
java.lang.Object |
getProperty(java.lang.String scope,
java.lang.String propertyName,
boolean getCached,
DirectPropertyManager dpm)
Retrieves the property value for the given scope. |
java.lang.Object |
getProperty(java.lang.String scope,
java.lang.String propertyName,
DirectPropertyManager dpm)
Retrieves the property value for the given scope. |
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.String |
getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
boolean getCached)
|
java.lang.String |
getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
boolean getCached,
DirectPropertyManager dpm)
Retrieves the property value for the given scope, cast as a String by calling toString() on the returned object. |
java.lang.String |
getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
DirectPropertyManager dpm)
|
ConfigurableEntity |
getSuccessor()
Returns the wrapped successor. |
long |
getSuccessorId()
Get the unique numeric id for the current successor. |
java.lang.String |
getSuccessorKey()
|
java.lang.Object |
removeProperty(java.lang.String scope,
java.lang.String propertyName)
Removes the specified property from the profile. |
java.lang.Object |
removeProperty(java.lang.String scope,
java.lang.String propertyName,
DirectPropertyManager dpm)
Remove a property from the current profile |
void |
setProfileKey(java.lang.String profileKey)
Set the current profile key. |
void |
setProfileType(java.lang.String profileType)
Set the current profile type. |
void |
setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value)
Sets a property in the profile. |
void |
setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
boolean setInCache)
|
void |
setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
boolean setInCache,
DirectPropertyManager dpm)
Set a property in the given scope. |
void |
setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
DirectPropertyManager dpm)
Retrieves the property value for the given scope, cast as a String by calling toString() on the returned object. |
void |
setSuccessorKey(java.lang.String successorKey)
Set the profile key of the current successor |
void |
setSuccessorType(java.lang.String successorType)
Set the current successor type. |
void |
setupSharedProfile(javax.servlet.http.HttpServletRequest request)
Allow an implementation of com.beasys.commerce.foundation.property.external.ProfileHandler to setup any necessary state with the current user. |
| Methods inherited from class com.beasys.commerce.user.jsp.beans.LocalProfileBean |
getDefaultScope, getProperties, getProperty, setProperties, transferProperties |
| 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 |
| Methods inherited from interface com.beasys.commerce.user.jsp.ProfileWrapper |
getProperty |
| Constructor Detail |
public CachedProfileBean()
public CachedProfileBean(javax.servlet.http.HttpServletRequest request,
java.lang.String profileKey)
| Method Detail |
public void setupSharedProfile(javax.servlet.http.HttpServletRequest request)
public java.lang.Object getProperty(java.lang.String scope,
java.lang.String propertyName,
boolean getCached)
public java.lang.Object getProperty(java.lang.String scope,
java.lang.String propertyName,
boolean getCached,
DirectPropertyManager dpm)
scope - the scope in which the property value is to be looked uppropertyName - the name of the property whose value is soughtgetCached - ignorednull if the value is
not found
public java.lang.Object getProperty(java.lang.String scope,
java.lang.String propertyName)
LocalProfileBeangetProperty in class LocalProfileBeancom.beasys.commerce.user.jsp.beans.LocalProfileBeanthe - 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 found
public java.lang.Object getProperty(java.lang.String scope,
java.lang.String propertyName,
DirectPropertyManager dpm)
scope - 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 found
public java.lang.String getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
boolean getCached)
public java.lang.String getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
boolean getCached,
DirectPropertyManager dpm)
scope - the scope in which the property value is to be looked uppropertyName - the name of the property whose value is soughtgetCached - ignorednull if the value is
not found
public java.lang.String getPropertyAsString(java.lang.String scope,
java.lang.String propertyName)
LocalProfileBeangetPropertyAsString in class LocalProfileBeancom.beasys.commerce.user.jsp.beans.LocalProfileBeanthe - 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 found
public java.lang.String getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
DirectPropertyManager dpm)
public void setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value)
throws SystemException
LocalProfileBeansetProperty in class LocalProfileBeancom.beasys.commerce.user.jsp.beans.LocalProfileBeanscope - the scope to which the property is set.propertyName - the name of the property to setvalue - the new property value
public void setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
DirectPropertyManager dpm)
throws SystemException
scope - 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 foundif - a failure occurs during the operation
public void setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
boolean setInCache)
throws SystemException
public void setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
boolean setInCache,
DirectPropertyManager dpm)
throws SystemException
scope - the scope in which the property will be setpropertyName - the name of the property to setvalue - the value to assign to this propertysetInCache - ignoredif - a failure occurs during the operationpublic void setProfileKey(java.lang.String profileKey)
profileKey - the key of the new User or Grouppublic void setProfileType(java.lang.String profileType)
profileType - the new profile type to usepublic long getProfileId()
public long getSuccessorId()
public java.lang.String getProfileKey()
public ConfigurableEntity getProfile()
getProfile in interface ProfileWrapperpublic ConfigurableEntity getSuccessor()
getSuccessor in interface ProfileWrapperpublic void setSuccessorType(java.lang.String successorType)
profileType - the new profile type to use for the successorpublic void setSuccessorKey(java.lang.String successorKey)
the - successor's keypublic java.lang.String getSuccessorKey()
public void clearValues()
clearValues in class LocalProfileBean
public java.lang.Object removeProperty(java.lang.String scope,
java.lang.String propertyName)
LocalProfileBeanremoveProperty in class LocalProfileBeancom.beasys.commerce.user.jsp.beans.LocalProfileBeanscope - the scope in which to find the profilepropertyName - the name of the property to remove from the profile
public java.lang.Object removeProperty(java.lang.String scope,
java.lang.String propertyName,
DirectPropertyManager dpm)
scope - the property set of the property to removepropertyName - the name of the property to remove
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||