com.ibm.websphere.personalization
Interface RuleExit


public interface RuleExit

The item is designed to provide the ability to alter the default flow of processing of content spots.

One instance of this interface will function as the rule exit for all content spots.

Prior to rule execution, you have:

After rule execution:


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 void aboutToExecuteRule(RuleTrigger contentSpot, RequestContext requestContext)
          Called prior to rule execution.
 java.lang.Object[] getFilteredResults(RuleTrigger contentSpot, RequestContext requestContext, java.lang.Object[] originalResults)
          Called after rule execution.
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

aboutToExecuteRule

void aboutToExecuteRule(RuleTrigger contentSpot,
                        RequestContext requestContext)
Called prior to rule execution.

Parameters:
contentSpot - - The content spot that is being processed.
requestContext - - The personalization request context that is in place for this rule execution.

getFilteredResults

java.lang.Object[] getFilteredResults(RuleTrigger contentSpot,
                                      RequestContext requestContext,
                                      java.lang.Object[] originalResults)
Called after rule execution. Exit to allow for changing the results of the rule execution. For instance, this method might be used to apply access control from an external access control provider.

Parameters:
contentSpot - - The content spot that is being processed.
requestContext - - The personalization request context that is in place for this rule execution.
Returns:
filteredResults - The content returned from rule execution. The exit should return the original array if no changes are needed.