{ } }
Tree PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.policy.manager.portal
Class PortletRequestRuleContextjava.lang.Objectcom.ibm.policy.manager.portal.PortletRequestRuleContext
- All Implemented Interfaces:
- RuleContext
public class PortletRequestRuleContext- extends java.lang.Object
- implements RuleContext
Public implementation of RuleContext representing a request. Accepted request types are PortletRequest. Only one request is maintained and retrieved per instance
- Since:
- 6.0
Constructor Summary PortletRequestRuleContext(PortletRequest request)
Add a rule context based on a PortletRequest.
Method Summary java.util.Collection getContext()
Retrieve the collection of rules engine objects in this RuleContext.java.lang.String getId()
Retrieve a unique identifier for the session if one is available.
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail PortletRequestRuleContext
public PortletRequestRuleContext(PortletRequest request)
- Add a rule context based on a PortletRequest.
- Parameters:
- request - PortletRequest to be used
Method Detail getContext
public java.util.Collection getContext()
- Description copied from interface: RuleContext
- Retrieve the collection of rules engine objects in this RuleContext. The rules engine must be aware of the contents of the returned collection.
An example implementation class named FooRuleContext, contains a single attribute named foo with a value of either:
. The rules engine is configured to return a classification based on the value of the foo attribute.
- bar
- choo
- Specified by:
- getContext in interface RuleContext
- Returns:
- Collection of rule objects to be used in the execution of a rule. Objects of the collection are of type PortletRequest.
getId
public java.lang.String getId()
- Retrieve a unique identifier for the session if one is available. Return null if not available.
- Specified by:
- getId in interface RuleContext
Tree PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD