© 2005 BEA Systems, Inc.

com.bea.p13n.advisor
Class OutputListItemToInputTransform

java.lang.Object
  extended bycom.bea.p13n.advisor.AbstractAdviceTransform
      extended bycom.bea.p13n.advisor.OutputToInputTransform
          extended bycom.bea.p13n.advisor.OutputListItemToInputTransform
All Implemented Interfaces:
AdviceConstants, AdviceRequestConstants, AdviceTransform, AdvisletChainElement

public class OutputListItemToInputTransform
extends OutputToInputTransform

This is an AdviceTransform that takes the last RESULT key (getResult return value) from the Advice object and puts it into the key specified in the "output-key" parameter field in the AdviceRequest. Additionally, if the result object is a List only the first item of the List is added to the AdviceRequest.

If the Advice is null or incomplete no transformation is performed.


Field Summary
 
Fields inherited from interface com.bea.p13n.advisor.AdviceConstants
RESULTS
 
Fields inherited from interface com.bea.p13n.advisor.AdviceRequestConstants
CATALOG_QUERY_WRAPPER, CONTENT_APPEND_QUERY_STRING, CONTENT_MANAGER, CONTENT_MANAGER_HOME, CONTENT_QUERY_CONTEXT_PARAMS, CONTENT_QUERY_MAX_ITEMS, CONTENT_QUERY_NODE, CONTENT_QUERY_SORT_BY, CONTENT_QUERY_STRING, CONTENT_SEARCH_PATHS, DATE, HTTP_REQUEST, HTTP_SESSION, NOW, RULES_FILTER_CLASS, RULES_FILTER_CLASS_NAME, RULES_INPUT_OBJECTS, RULES_RULENAME_TO_FIRE, RULES_RULESET_NAME, SHOPPING_CART, TIME, TIME_INSTANT, USER
 
Constructor Summary
OutputListItemToInputTransform(Advisor advisor, Metadata metadata)
          Construct an instance of this object and bind it to its Advisor and Metadata instances.
 
Method Summary
 void transform(Advice input, AdviceRequest output)
          Transforms the given Advice into AdviceRequest to pass it to another Advisor in the advislet chain defined in the advislet registry.
 
Methods inherited from class com.bea.p13n.advisor.OutputToInputTransform
getRequestKey, getSpecificKey, getSpecificValue, initialize
 
Methods inherited from class com.bea.p13n.advisor.AbstractAdviceTransform
getMetadata, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputListItemToInputTransform

public OutputListItemToInputTransform(Advisor advisor,
                                      Metadata metadata)
Construct an instance of this object and bind it to its Advisor and Metadata instances.

Method Detail

transform

public void transform(Advice input,
                      AdviceRequest output)
               throws AdvisorException
Description copied from class: AbstractAdviceTransform
Transforms the given Advice into AdviceRequest to pass it to another Advisor in the advislet chain defined in the advislet registry.

Specified by:
transform in interface AdviceTransform
Overrides:
transform in class OutputToInputTransform
Throws:
AdvisorException

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved