IBM WebSphere Application ServerTM
Release 8

com.ibm.portal.propertybroker.service
Interface PropertyFactory


public interface PropertyFactory


Method Summary
 PropertyController createProperty(PortletConfig config)
          Creates and returns a property associated with a portlet, given the PortletConfig.
 PropertyController createProperty(PortletRequest request)
          Creates and returns a property associated with a portlet, given the PortletRequest.
 PropertyValue createPropertyValue(PortletRequest request, Property property, java.lang.Object value)
          Creates and returns a PropertyValue.
 PropertyValue createPropertyValue(Property property, java.lang.Object value)
          Creates and returns a PropertyValue.
 

Method Detail

createPropertyValue

PropertyValue createPropertyValue(PortletRequest request,
                                  Property property,
                                  java.lang.Object value)
                                  throws CreateFailedException,
                                         AccessFailedException
Creates and returns a PropertyValue. PropertyValue encapsulates a Property with its value.

Parameters:
request - the current portlet request.
property - the Property to be encapsulated in the returned object. Must not be null.
value - the value to be encapsulated in the returned object, currently only Strings are supported.
Returns:
a PropertyValue object encapsulating the information passed in
Throws:
CreateFailedException
AccessFailedException
See Also:
PropertyValue

createPropertyValue

PropertyValue createPropertyValue(Property property,
                                  java.lang.Object value)
                                  throws CreateFailedException,
                                         AccessFailedException
Creates and returns a PropertyValue. PropertyValue encapsulates a Property with its value.

Parameters:
property - the Property to be encapsulated in the returned object. Must not be null.
value - the value to be encapsulated in the returned object, currently only Strings are supported.
Returns:
a PropertyValue object encapsulating the information passed in
Throws:
CreateFailedException
AccessFailedException
See Also:
PropertyValue

createProperty

PropertyController createProperty(PortletRequest request)
                                  throws CreateFailedException
Creates and returns a property associated with a portlet, given the PortletRequest. PropertyController has setters which allow various attribute values to be set.

Parameters:
request - the PortletRequest object
Returns:
the new PropertyController object created for this portlet
Throws:
CreateFailedException - if the property cannot be created
See Also:
Property, PropertyController

createProperty

PropertyController createProperty(PortletConfig config)
                                  throws CreateFailedException
Creates and returns a property associated with a portlet, given the PortletConfig. PropertyController has setters which allow various attribute values for the property to be set. This will be typically done during the portlet's init() method.

Parameters:
config - the PortletConfig object
Returns:
the new PropertyController object created for this portlet
Throws:
CreateFailedException - if the property cannot be created
See Also:
Property, PropertyController

IBM WebSphere Application ServerTM
Release 8