| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyFactory
An factory interface provided by the Property Broker. It provides methods for creation of PropertyController, PropertyValue, ActionController and ParameterController objects.
The PropertyFactory
interface is implemented by a PortletService.
A portlet can obtain the service by using JNDI. A boolean guard may be used to guard uses of the PropertyFactory
by the portlet; this will enable the portlet to execute correctly in JSR-168 compliant portlet
containers outside of WebSphere Portal.
A snippet of the JNDI lookup code:
boolean propertyFactoryAvailable = false;
A similar interface,
PropertyFactory propertyFactory = null;
try {
Context ctx = new InitialContext();
PortletServiceHome serviceHome = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.propertybroker.service.PropertyFactory");
propertyFactory = (PropertyFactory)serviceHome.getPortletService(com.ibm.portal.propertybroker.service.PropertyFactory.class);
propertyFactoryAvailable = true;
}
catch(Throwable t) {
}
com.ibm.wps.pb.property.PropertyFactory
is available for use by portlets written to IBM's portlet API.
Method Summary | |
---|---|
ActionController | PortletRequest)">createAction(PortletRequest request)
Creates and returns an action associated with a portlet, given the PortletRequest. |
ParameterController | createParameter(Action action,
Property property)
Creates and returns a parameter associated with a portlet's action. |
PropertyController | PortletRequest)">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(PortletRequest request,
Property property,
java.lang.Object value,
PropertyValueChangeType changeType)
Creates and returns a PropertyValue with a change reason code. |
Method Detail |
---|
PropertyValue createPropertyValue(PortletRequest request, Property property, java.lang.Object value) throws CreateFailedException, AccessFailedException
PropertyValue createPropertyValue(PortletRequest request, Property property, java.lang.Object value, PropertyValueChangeType changeType) throws CreateFailedException, AccessFailedException
PropertyController createProperty(PortletRequest request) throws CreateFailedException
ActionController createAction(PortletRequest request) throws CreateFailedException
ParameterController createParameter(Action action, Property property) throws CreateFailedException
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |