com.beasys.commerce.axiom.advisor.advislets
Class ContentSelectorAdvisletImpl
java.lang.Object
|
+--com.beasys.commerce.axiom.advisor.advislets.ContentSelectorAdvisletImpl
- public final class ContentSelectorAdvisletImpl
- extends java.lang.Object
- implements Advislet, java.io.Serializable
This class is the implementation class for a ContentSelector Advislet
that handles getting advise for a ContentSelector Request.
A ContentSelector Request is request to the rules service to determine if
a user is classified according to the classifier rule in the content
selector rule. If the classifier rule evaluated to true, then a search for
content based on the content selector's attribute query expression is
performed and the matching content documents are returned.
A ContentSelectorAdvisletImpl expects a ContentSelectorAdviceRequest as input and
returns ContentQueryAdviceResults.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ContentSelectorAdvisletImpl
public ContentSelectorAdvisletImpl()
advise
public AdviceResults advise(AdviceRequest adviceRequest)
throws java.lang.IllegalArgumentException,
AdvisorException,
AdviceRequestValidationException
- This method makes recommendations based the AdviceRequest passed in.
For the ContentSelectorAdvislet, the request class is:
ContentQueryAdviceRequest
For the ContentSelectorAdvislet, the results class is:
ContentQueryAdviceResults
- Specified by:
- advise in interface Advislet
- Parameters:
adviceRequest
- The ContentSelectorAdviceRequest for which to make a
recommendation.- Returns:
- AdviceResults The ContentQueryAdviceResults results which
contain the content recommendations for the request.
- Throws:
- java.lang.IllegalArgumentException - Thrown if the adviceRequest parameter
is null or an unsupported type.
- AdvisorException - thrown on an error when
processing the request.
- AdviceRequestValidationException - thrown on an error when
validating the request.
getName
public java.lang.String getName()
- Gets the name of the advislet.
- Returns:
- String The name of the advislet.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved