BEA Systems, Inc.

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

java.lang.Object
  |
  +--com.beasys.commerce.axiom.p13n.advisor.AbstractAdviceRequestImpl
Direct Known Subclasses:
ClassificationAdviceRequestImpl, ContentQueryAdviceRequestImpl, ContentSelectorAdviceRequestImpl

public abstract class AbstractAdviceRequestImpl
extends java.lang.Object
implements AdviceRequest, java.io.Serializable

This is a concrete class implementation for a Classification advice request. Note, all Advice Request classes must be Serializable. Make sure that all data in this object are Serializable.

See Also:
Serialized Form

Constructor Summary
AbstractAdviceRequestImpl(Agent agent)
          Creates a new instance of an AdviceRequest object.
 
Method Summary
 Agent getAgent()
          Returns the personalization agent for this type of request.
abstract  void validate()
          Validates the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAdviceRequestImpl

public AbstractAdviceRequestImpl(Agent agent)
Creates a new instance of an AdviceRequest object. This method is meant to be called by the Personalization Advisor which acts as a factory for all AdviceRequest objects.
Parameters:
agent - The default personalization agent to use for making recommendations.
Method Detail

getAgent

public Agent getAgent()
Returns the personalization agent for this type of request.
Specified by:
getAgent in interface AdviceRequest
Returns:
Agent The personalization agent that gives advise for this kind of AdviceRequest.

validate

public abstract void validate()
                       throws AdviceRequestValidationException
Validates the request.
Specified by:
validate in interface AdviceRequest
Throws:
AdviceRequestValidationException - thrown when not valid. The message in the exception indicates the validation error.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved