|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.p13n.advisor.AbstractAdviceTransform
com.bea.p13n.rules.advislets.ResultsToRulesInputTransform
public class ResultsToRulesInputTransform
An AdviceTransform
that converts the results in one Advice instance into rule inputs in the AdviceRequest.
Field Summary | |
---|---|
static String |
REQUEST_SPECIFIC_KEY A string key for identifying a request-specific key. |
static String |
REQUEST_SPECIFIC_VALUE A string key for identifying a request-specific value. |
Fields inherited from interface com.bea.p13n.advisor.AdviceConstants |
---|
RESULTS |
Constructor Summary | |
---|---|
ResultsToRulesInputTransform(Advisor advisor, Metadata metadata) Construct an instance of this object and bind it to its Advisor and Metadata instances. |
Method Summary | |
---|---|
boolean |
initialize(Map parameters, Object parameterDocument) Initialize this AdviceTransform from its configuration environment in the AdvisletRegistry XML file. |
void |
transform(Advice input, AdviceRequest output) Maps objects in the Advice objects into objects in a subsequent AdviceRequest. |
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 |
Field Detail |
---|
public static final String REQUEST_SPECIFIC_KEY
public static final String REQUEST_SPECIFIC_VALUE
Constructor Detail |
---|
public ResultsToRulesInputTransform(Advisor advisor, Metadata metadata)
advisor
- the Advisor
for this transform.metadata
- the Metadata
for this transform.Method Detail |
---|
public boolean initialize(Map parameters, Object parameterDocument) throws AdvisorException
initialize
in interface AdvisletChainElement
initialize
in class AbstractAdviceTransform
parameters
- the Map
containing the initialization parameters.parameterDocument
- the XML Document Object
containing the configuration environment for this AdviceTransform instance.true
if this operation is successful, otherwise returns false
.AdvisorException
- If an error occurs during initialization process.public void transform(Advice input, AdviceRequest output) throws AdvisorException
If the Advice.getResult() call returns a List, each item in the List is appended to a List in the AdviceRequest keyed to the value RULES_INPUT_OBJECTS.
In addition a single value from the configuration environment is added to to the AdviceRequest, using the key of "request-specific-key" (loaded from the XML configuration) and the value "request-specific-value"" (loaded from the XML configuration).
transform
in interface AdviceTransform
transform
in class AbstractAdviceTransform
input
- the Advice
that was previously executed.output
- the AdviceRequest
to be populated.AdvisorException
- If an error occurs during the transformation process.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.