BEA Systems, Inc.

com.beasys.commerce.axiom.advisor.advislets
Class ClassificationAdviceRequestImpl

java.lang.Object
  |
  +--com.beasys.commerce.axiom.advisor.AbstractAdviceRequestImpl
        |
        +--com.beasys.commerce.axiom.advisor.advislets.ClassificationAdviceRequestImpl

public class ClassificationAdviceRequestImpl
extends AbstractAdviceRequestImpl
implements ClassificationAdviceRequest, 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

Field Summary
protected  java.sql.Timestamp now
           
protected  Request request
           
protected  java.lang.String rule
           
protected  java.lang.String ruleSet
           
protected  Session session
           
protected  ConfigurableEntity successor
           
protected  ConfigurableEntity user
           
 
Fields inherited from class com.beasys.commerce.axiom.advisor.AbstractAdviceRequestImpl
advislet
 
Constructor Summary
ClassificationAdviceRequestImpl(Advislet advislet)
          Creates a new instance of a ClassificationAdviceRequest object.
 
Method Summary
 Request getHttpRequest()
          Returns the com.beasys.commerce.axiom.p13n.http.Request object for this request.
 Session getHttpSession()
          Returns the com.beasys.commerce.axiom.p13n.http.Session object for this request.
 java.sql.Timestamp getNow()
          Returns the Now object for this request.
 java.lang.String getRule()
          Returns the name of the rule associated with the requset.
 java.lang.String getRuleSet()
          Returns the name of the rule set associated with the request.
 ConfigurableEntity getSuccessor()
          Returns the Successor object for this user for this request.
 ConfigurableEntity getUser()
          Returns the user ConfigurableEntity object.
 void setHttpRequest(Request request)
          Sets the com.beasys.commerce.axiom.p13n.http.Request object for this request.
 void setHttpSession(Session session)
          Sets the com.beasys.commerce.axiom.p13n.http.Session object for this request.
 void setNow(java.sql.Timestamp now)
          Sets the Now object for this request.
 void setRule(java.lang.String rule)
          Sets the name of the rule associated with the request.
 void setRuleSet(java.lang.String ruleSet)
          Sets the name of the rule set associated with the request.
 void setSuccessor(ConfigurableEntity successor)
          Sets the Successor object for this user for this request.
 void setUser(ConfigurableEntity user)
          Sets the user ConfigurableEntity object for this request.
 void validate()
          Validates the request.
 
Methods inherited from class com.beasys.commerce.axiom.advisor.AbstractAdviceRequestImpl
getAdvislet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ruleSet

protected java.lang.String ruleSet

rule

protected java.lang.String rule

user

protected ConfigurableEntity user

successor

protected ConfigurableEntity successor

now

protected java.sql.Timestamp now

request

protected Request request

session

protected Session session
Constructor Detail

ClassificationAdviceRequestImpl

public ClassificationAdviceRequestImpl(Advislet advislet)
Creates a new instance of a ClassificationAdviceRequest object. This method is meant to be called by the Advisor which acts as a factory for all AdviceRequest objects.
Parameters:
advislet - The default advislet to use for making recommendations.
Method Detail

getRuleSet

public java.lang.String getRuleSet()
Returns the name of the rule set associated with the request.
Returns:
String The rule set associated with this request.

setRuleSet

public void setRuleSet(java.lang.String ruleSet)
Sets the name of the rule set associated with the request.
Parameters:
String - The rule set associated with this request.

getRule

public java.lang.String getRule()
Returns the name of the rule associated with the requset.
Returns:
String The rule associated with this request.

setRule

public void setRule(java.lang.String rule)
Sets the name of the rule associated with the request.
Parameters:
String - The rule associated with this request.

getUser

public ConfigurableEntity getUser()
Returns the user ConfigurableEntity object.
Specified by:
getUser in interface ClassificationAdviceRequest
Returns:
User The ConfigurablEntity object.

setUser

public void setUser(ConfigurableEntity user)
Sets the user ConfigurableEntity object for this request.
Specified by:
setUser in interface ClassificationAdviceRequest
Parameters:
user - The ConfigurablEntity object for this request.

getSuccessor

public ConfigurableEntity getSuccessor()
Returns the Successor object for this user for this request.
Specified by:
getSuccessor in interface ClassificationAdviceRequest
Returns:
ConfigurableEntity The successor object.

setSuccessor

public void setSuccessor(ConfigurableEntity successor)
Sets the Successor object for this user for this request.
Specified by:
setSuccessor in interface ClassificationAdviceRequest
Parameters:
successor - The successor object for this user for this request.

getNow

public java.sql.Timestamp getNow()
Returns the Now object for this request.
Specified by:
getNow in interface ClassificationAdviceRequest
Returns:
java.sql.Timestamp The Now object.

setNow

public void setNow(java.sql.Timestamp now)
Sets the Now object for this request.
Specified by:
setNow in interface ClassificationAdviceRequest
Parameters:
now - The java.sql.Timestamp object for this request.

getHttpRequest

public Request getHttpRequest()
Returns the com.beasys.commerce.axiom.p13n.http.Request object for this request.
Specified by:
getHttpRequest in interface ClassificationAdviceRequest
Returns:
com.beasys.commerce.axiom.p13n.http.Request The request object.

setHttpRequest

public void setHttpRequest(Request request)
Sets the com.beasys.commerce.axiom.p13n.http.Request object for this request.
Specified by:
setHttpRequest in interface ClassificationAdviceRequest
Parameters:
now - The com.beasys.commerce.axiom.p13n.http.Request object for this request.

getHttpSession

public Session getHttpSession()
Returns the com.beasys.commerce.axiom.p13n.http.Session object for this request.
Specified by:
getHttpSession in interface ClassificationAdviceRequest
Returns:
com.beasys.commerce.axiom.p13n.http.Session The request object.

setHttpSession

public void setHttpSession(Session session)
Sets the com.beasys.commerce.axiom.p13n.http.Session object for this request.
Specified by:
setHttpSession in interface ClassificationAdviceRequest
Parameters:
now - The com.beasys.commerce.axiom.p13n.http.Session object for this request.

validate

public void validate()
              throws AdviceRequestValidationException
Validates the request. A ClassificationAdviceRequest must have the following data in the request: ruleSet - the URI string name of the ruleset rule name - a string name of a rule input objects which include: - java.sql.Timestamp object for NOW - com.beasys.commerce.axiom.contact.User - com.beasys.commerce.axiom.advislets.Successor (optional) - com.beasys.commerce.axiom.p13n.http.Request - com.beasys.commerce.axiom.p13n.http.Session
Overrides:
validate in class AbstractAdviceRequestImpl
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