BEA Systems, Inc.

com.beasys.commerce.axiom.p13n.advisor
Class PersonalizationAdvisorBean

java.lang.Object
  |
  +--com.beasys.commerce.axiom.p13n.advisor.PersonalizationAdvisorBean

Deprecated. As of WLPS 3.1, replaced by AdvisorBean

public class PersonalizationAdvisorBean
extends java.lang.Object
implements javax.ejb.SessionBean

Implementation Class for the Personalization Advisor Bean. The p13n advisor bean makes recommendations for advise requests. To get recommendations, first create a request template for the type of request you want to make by calling the advisor's createRequestTemplate method, then fill out the template with the required information, and then call the advisor's advise() method.

See Also:
Serialized Form

Field Summary
protected static boolean debug
          Deprecated.  
 
Constructor Summary
PersonalizationAdvisorBean()
          Deprecated. Default Constructor
 
Method Summary
 AdviceResults advise(AdviceRequest adviceRequest)
          Deprecated. This method makes recommendations based the AdviceRequest passed in.
 AdviceRequest createRequestTemplate(java.lang.String adviceRequestClassName, java.lang.String pzTechnique)
          Deprecated. This method creates an AdviceRequest template for the adviceRequestClassName passed in.
 void ejbActivate()
          Deprecated. Activates the bean.
 void ejbCreate()
          Deprecated. Creates a bean instance.
 void ejbPassivate()
          Deprecated. Passivates the bean.
 void ejbRemove()
          Deprecated. Removes the bean.
 void setSessionContext(javax.ejb.SessionContext sessionContext)
          Deprecated. Sets the session context for the bean instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static final boolean debug
Deprecated. 
Constructor Detail

PersonalizationAdvisorBean

public PersonalizationAdvisorBean()
Deprecated. 
Default Constructor
Method Detail

advise

public AdviceResults advise(AdviceRequest adviceRequest)
                     throws java.lang.IllegalArgumentException,
                            PersonalizationAdvisorException,
                            AdviceRequestValidationException,
                            java.rmi.RemoteException
Deprecated. 
This method makes recommendations based the AdviceRequest passed in.
Parameters:
adviceRequest - The advice request for which to make a recommendation.
Returns:
AdviceResults The advice results which contain the recommendations based on the type of request made.
Throws:
java.lang.IllegalArgumentException - Thrown if the adviceRequest parameter is null or an unsupported type.
PersonalizationAdvisorException - thrown on an error when processing the request.
AdviceRequestValidationException - thrown on an error when validating the request.
java.rmi.RemoteException - thrown on a communication error.

createRequestTemplate

public AdviceRequest createRequestTemplate(java.lang.String adviceRequestClassName,
                                           java.lang.String pzTechnique)
                                    throws java.lang.IllegalArgumentException,
                                           PersonalizationAdvisorException,
                                           java.rmi.RemoteException
Deprecated. 
This method creates an AdviceRequest template for the adviceRequestClassName passed in. It determines the best fit personalization agent to use for handling the request type and the personalizationTechnique.
Parameters:
adviceRequestClassName - The class name of the AdviceRequest which is used to create the template.
pzTechnique - The personalization technique name to use in the determination of the best fit personalization agent to use for the request type. The only valid personalization technqiues at this time are: pz:bea:rules pz:bea:query
Returns:
AdviceRequest A advice request template. The caller is responsible for setting the template data before calling the PersonalizationAdvisor.advise() method.
Throws:
java.lang.IllegalArgumentException - Thrown if the parameters are null or an unsupported type.
PersonalizationAdvisorException - thrown on an error when creating the template.
java.rmi.RemoteException - thrown on a communication error.

ejbActivate

public void ejbActivate()
Deprecated. 
Activates the bean.
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Deprecated. 
Creates a bean instance.
Throws:
javax.ejb.CreateException - Thrown if unable to create the ejb

ejbPassivate

public void ejbPassivate()
Deprecated. 
Passivates the bean.
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Deprecated. 
Removes the bean.
Specified by:
ejbRemove in interface javax.ejb.SessionBean

setSessionContext

public void setSessionContext(javax.ejb.SessionContext sessionContext)
Deprecated. 
Sets the session context for the bean instance.
Specified by:
setSessionContext in interface javax.ejb.SessionBean
Parameters:
sessionContext - The session context

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved