com.bea.p13n.advisor
Class OutputListItemToInputTransform
java.lang.Object
com.bea.p13n.advisor.AbstractAdviceTransform
com.bea.p13n.advisor.OutputToInputTransform
com.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.
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_QUERY_VERSIONED_CONTENT, CONTENT_SEARCH_PATHS, CONTEXT_HANDLER, 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 |
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. |
OutputListItemToInputTransform
public OutputListItemToInputTransform(Advisor advisor,
Metadata metadata)
- Construct an instance of this object and bind it to
its
Advisor
and Metadata
instances.
- Parameters
advisor
- the advisor for this object.metadata
- the metadata for this object.
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
- Parameters
input
- An Advice
from which the parameters are extracted and transformed.output
- An AdviceRequest
that is prepared from the given Advice
.
- Throws
AdvisorException
- If an error occurs during the transformation process.
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.