|
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.
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)
Retrieves the property value for the given scope. |
java.lang.String |
getPropertyAsString(java.lang.String scope,
java.lang.String propertyName,
boolean getCached)
Retrieves the property value for the given scope, cast as a String by calling toString() on the returned object. |
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)
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)
Retrieves the property value for the given scope, cast as a String by calling toString() on the returned object. |
void |
setProperty(java.lang.String scope,
java.lang.String propertyName,
java.lang.Object value,
boolean setInCache)
Set a property in the given scope. |
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 |
getProperty,
getPropertyAsString,
setProperties,
transferProperties |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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)
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 foundpublic java.lang.Object getProperty(java.lang.String scope, java.lang.String propertyName)
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 foundpublic java.lang.String getPropertyAsString(java.lang.String scope, java.lang.String propertyName, boolean getCached)
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 foundpublic void setProperty(java.lang.String scope, java.lang.String propertyName, java.lang.Object value)
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 foundpublic void setProperty(java.lang.String scope, java.lang.String propertyName, java.lang.Object value, boolean setInCache)
scope
- the scope in which the property will be setpropertyName
- the name of the property to setvalue
- the value to assign to this propertysetInCache
- ignoredpublic 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()
public ConfigurableEntity getSuccessor()
public 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()
public java.lang.Object removeProperty(java.lang.String scope, java.lang.String propertyName)
scope
- the property set of the property to removepropertyName
- the name of the property to remove
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |