com.bea.content.expression
Class DefaultBasePropertyProvider

java.lang.Object
  extended by com.bea.content.expression.DefaultBasePropertyProvider
All Implemented Interfaces
PropertyProvider
Direct Known Subclasses:
DefaultPropertyProvider

public class DefaultBasePropertyProvider
extends Object
implements PropertyProvider

A generic implementation of a property provider, that supports user, request, session, and event properties.


Constructor Summary
DefaultBasePropertyProvider(ProfileWrapper userWrapper, SerializableRequest request, SerializableSession session, IEvent event)
          Create a new PropertyProvider, initializing possible sources for the property value.
 
Method Summary
static DefaultBasePropertyProvider getInstance(javax.servlet.http.HttpServletRequest httpRequest)
           
 Object getProperty(String propertySetType, String propertySet, String propertyName)
          Retrieve a property value.
protected  void setUser(ProfileWrapper user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBasePropertyProvider

public DefaultBasePropertyProvider(ProfileWrapper userWrapper,
                                   SerializableRequest request,
                                   SerializableSession session,
                                   IEvent event)
Create a new PropertyProvider, initializing possible sources for the property value. All parameters are optional.

Parameters
userWrapper - The profile wrapper of the user
request - The request object
session - The session object
event - The event object
Method Detail

getInstance

public static DefaultBasePropertyProvider getInstance(javax.servlet.http.HttpServletRequest httpRequest)

setUser

protected void setUser(ProfileWrapper user)

getProperty

public Object getProperty(String propertySetType,
                          String propertySet,
                          String propertyName)
                   throws IllegalArgumentException
Retrieve a property value.

Specified by:
getProperty in interface PropertyProvider
Parameters
propertySetType - the type of property set (user, request, session, event).
propertySet - the name of the property set.
propertyName - the name of the property.
Returns
the property value or null.
Throws
IllegalArgumentException - if an arg is invalid or the PropertyProvider isn't configured for the specified args.


Copyright © 2011, Oracle. All rights reserved.