com.ibm.portal.propertybroker.service

Interface PropertyFactory


  1. public interface PropertyFactory

Method Summary

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

Method Detail

createPropertyValue

  1. PropertyValue createPropertyValue( PortletRequest request,
  2. Property property,
  3. java.lang.Object value)
  4. throws CreateFailedException
  5. 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:
See Also:

createPropertyValue

  1. PropertyValue createPropertyValue( Property property,
  2. java.lang.Object value)
  3. throws CreateFailedException
  4. 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:
See Also:

createProperty

  1. PropertyController createProperty( PortletRequest request)
  2. 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:

createProperty

  1. PropertyController createProperty( PortletConfig config)
  2. 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: