BEA Systems, Inc.

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

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

public class CachedProfileBean
extends LocalProfileBean
implements com.beasys.commerce.user.jsp.ProfileWrapper

Bean used to hold a local cache of a session's associated user profile.

See Also:
Serialized Form

Constructor Summary
CachedProfileBean()
          Default Constructor
CachedProfileBean(java.lang.String profileKey)
           
 
Method Summary
 void clearValues()
          Clears the values in the cached profile.
 ConfigurableEntity getProfile()
           
 long getProfileId()
           
 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)
           
 ConfigurableEntity getSuccessor()
          Returns the wrapped successor.
 long getSuccessorId()
           
 java.lang.String getSuccessorKey()
           
 java.lang.Object removeProperty(java.lang.String scope, java.lang.String propertyName)
          Removes the specified property from the profile.
 void setProfileKey(java.lang.String profileKey)
           
 void setProfileType(java.lang.String profileType)
           
 void setProperty(java.lang.String scope, java.lang.String propertyName, java.lang.Object value, boolean setInCache)
           
 void setSuccessorKey(java.lang.String successorKey)
           
 void setSuccessorType(java.lang.String successorType)
           
 
Methods inherited from class com.beasys.commerce.user.jsp.beans.LocalProfileBean
getProperty, getPropertyAsString, setProperty, 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, 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

CachedProfileBean

public CachedProfileBean()
Default Constructor

CachedProfileBean

public CachedProfileBean(java.lang.String profileKey)
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String scope,
                                    java.lang.String propertyName,
                                    boolean getCached)
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

getProperty

public java.lang.Object getProperty(java.lang.String scope,
                                    java.lang.String propertyName)
Description copied from class: LocalProfileBean
Retrieves the property value for the given scope.
Overrides:
getProperty in class LocalProfileBean
Tags copied from class: LocalProfileBean
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,
                                            boolean getCached)

setProperty

public void setProperty(java.lang.String scope,
                        java.lang.String propertyName,
                        java.lang.Object value,
                        boolean setInCache)

setProfileKey

public void setProfileKey(java.lang.String profileKey)

setProfileType

public void setProfileType(java.lang.String profileType)

getProfileId

public long getProfileId()

getSuccessorId

public long getSuccessorId()

getProfileKey

public java.lang.String getProfileKey()

getProfile

public ConfigurableEntity getProfile()
Specified by:
getProfile in interface com.beasys.commerce.user.jsp.ProfileWrapper

getSuccessor

public ConfigurableEntity getSuccessor()
Returns the wrapped successor.
Specified by:
getSuccessor in interface com.beasys.commerce.user.jsp.ProfileWrapper
Returns:
the wrapped successor

setSuccessorType

public void setSuccessorType(java.lang.String successorType)

setSuccessorKey

public void setSuccessorKey(java.lang.String successorKey)

getSuccessorKey

public java.lang.String getSuccessorKey()

clearValues

public void clearValues()
Clears the values in the cached profile.
Overrides:
clearValues in class LocalProfileBean

removeProperty

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

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved