com.ibm.portal.propertybroker.service
Interface PropertyFactory
- public interface PropertyFactory
Method Summary
| Modifier and Type | Method and Description |
|---|---|
createProperty(javax.portlet.PortletConfig config)
Creates and returns a property associated with a portlet, given the
PortletConfig.
|
|
createProperty(javax.portlet.PortletRequest request)
Creates and returns a property associated with a portlet, given the
PortletRequest.
|
|
createPropertyValue(javax.portlet.PortletRequest request,Property property,java.lang.Object value)
Creates and returns a
PropertyValue.
|
|
createPropertyValue(Property property,java.lang.Object value)
Creates and returns a
PropertyValue.
|
Method Detail
createPropertyValue
- PropertyValue createPropertyValue( javax.portlet.PortletRequest request,
- Property property,
- java.lang.Object value)
- throws CreateFailedException
- AccessFailedException
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
- 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:
See Also:
createProperty
- PropertyController createProperty( javax.portlet.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:
createProperty
- PropertyController createProperty( javax.portlet.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:
PropertyValue. PropertyValue encapsulates a Property with its value.