com.ail.insurance.quotation
Class QuotationBean

java.lang.Object
  extended by com.ail.core.Component
      extended by com.ail.core.EJBComponent
          extended by com.ail.insurance.quotation.QuotationBean
All Implemented Interfaces:
ConfigurationOwner, CoreUser, java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class QuotationBean
extends EJBComponent
implements javax.ejb.SessionBean

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Constructor Summary
QuotationBean()
           
 
Method Summary
 AddPolicyNumberArg addPolicyNumber(AddPolicyNumberArg arg)
          Service wrapper method for the AddPolicyNumber service.
 AddQuoteNumberArg addQuoteNumber(AddQuoteNumberArg arg)
          Service wrapper method for the AddQuoteNumber service.
 AssessRiskArg assessRisk(AssessRiskArg arg)
          Service wrapper business method for the AssessRisk service.
 CalculateBrokerageArg calculateBrokerage(CalculateBrokerageArg arg)
          Service wrapper method for the CalculateBrokerage service.
 CalculateCommissionArg calculateCommission(CalculateCommissionArg arg)
          Service wrapper method for the CalculateCommission service.
 CalculateManagementChargeArg calculateManagementCharge(CalculateManagementChargeArg arg)
          Service wrapper method for the CalculateManagementCharge service.
 CalculatePremiumArg calculatePremium(CalculatePremiumArg arg)
          Service wrapper business method for the CalculatePremium service.
 CalculateTaxArg calculateTax(CalculateTaxArg arg)
          Service wrapper method for the CalculateTax service.
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 EnforceComplianceArg enforceCompliance(EnforceComplianceArg arg)
          Service wrapper method for the EnforceCompliance service.
 GenerateDocumentArg generateDocument(GenerateDocumentArg arg)
          Service wrapper method for the GenerateDocument service.
 java.lang.String getConfigurationNamespace()
          Hard code the namespace to "com.ail.insurance.quotation.QuotationBean".
 Core getCore()
          Getter to return the core this component is using.
 javax.ejb.SessionContext getSessionContext()
          Returns the context passed to the EJB's setSessionContext method.
 Version getVersion()
          Return this component's version information
 VersionEffectiveDate getVersionEffectiveDate()
          Return the component's version effective date.
 java.lang.String invokeServiceXML(java.lang.String xml)
          Expose services via XML.
 void setSessionContext(javax.ejb.SessionContext context)
           
 
Methods inherited from class com.ail.core.EJBComponent
getSecurityPrincipal
 
Methods inherited from class com.ail.core.Component
getConfiguration, resetConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotationBean

public QuotationBean()
Method Detail

setSessionContext

public void setSessionContext(javax.ejb.SessionContext context)
Specified by:
setSessionContext in interface javax.ejb.SessionBean

getSessionContext

public javax.ejb.SessionContext getSessionContext()
Description copied from class: EJBComponent
Returns the context passed to the EJB's setSessionContext method.

Specified by:
getSessionContext in class EJBComponent
Returns:
session context.

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

getCore

public Core getCore()
Getter to return the core this component is using.

Specified by:
getCore in class Component
Returns:
Core instance.

getVersionEffectiveDate

public VersionEffectiveDate getVersionEffectiveDate()
Return the component's version effective date. This date will determine the effective date that the component will run as - and hence the version of configuration information it uses.

Specified by:
getVersionEffectiveDate in interface CoreUser
Overrides:
getVersionEffectiveDate in class Component
Returns:
version effective date
Throws:
javax.ejb.EJBException

getVersion

public Version getVersion()
Return this component's version information

Specified by:
getVersion in class Component
Returns:
version details
Throws:
javax.ejb.EJBException

invokeServiceXML

public java.lang.String invokeServiceXML(java.lang.String xml)
Expose services via XML. This method unmarshals the XML argument string into an object, finds a method on the EJB to accept that object type as an argument and invokes it. The result returned from the method is marshalled back into XM and returned.

The methods are invoked on the context's local interface if possible (if one exists). If no local interface is found then the remote interface is used instead. Invoking methods via the local/remote interface means that the deployment settings for security and transacts will be honoured.

Parameters:
xml - XML argument to be passed to the service.
Returns:
XML returned from the service.

assessRisk

public AssessRiskArg assessRisk(AssessRiskArg arg)
Service wrapper business method for the AssessRisk service.

Parameters:
arg - The argument to pass to the service.
Returns:
The objects returned from the service.
Throws:
BaseServerException - In response to any exception thrown by the service.

calculatePremium

public CalculatePremiumArg calculatePremium(CalculatePremiumArg arg)
Service wrapper business method for the CalculatePremium service.

Parameters:
arg - The argument to pass to the service.
Returns:
The objects returned from the service.
Throws:
BaseServerException - In response to any exception thrown by the service.

calculateTax

public CalculateTaxArg calculateTax(CalculateTaxArg arg)
Service wrapper method for the CalculateTax service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

calculateCommission

public CalculateCommissionArg calculateCommission(CalculateCommissionArg arg)
Service wrapper method for the CalculateCommission service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

calculateBrokerage

public CalculateBrokerageArg calculateBrokerage(CalculateBrokerageArg arg)
Service wrapper method for the CalculateBrokerage service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

calculateManagementCharge

public CalculateManagementChargeArg calculateManagementCharge(CalculateManagementChargeArg arg)
Service wrapper method for the CalculateManagementCharge service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

addQuoteNumber

public AddQuoteNumberArg addQuoteNumber(AddQuoteNumberArg arg)
Service wrapper method for the AddQuoteNumber service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

addPolicyNumber

public AddPolicyNumberArg addPolicyNumber(AddPolicyNumberArg arg)
Service wrapper method for the AddPolicyNumber service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

enforceCompliance

public EnforceComplianceArg enforceCompliance(EnforceComplianceArg arg)
Service wrapper method for the EnforceCompliance service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

generateDocument

public GenerateDocumentArg generateDocument(GenerateDocumentArg arg)
Service wrapper method for the GenerateDocument service.

Parameters:
arg - Argument to pass to the service
Returns:
Return value from the service
Throws:
BaseServerException - In response to exceptions thrown by the service.

getConfigurationNamespace

public java.lang.String getConfigurationNamespace()
Hard code the namespace to "com.ail.insurance.quotation.QuotationBean". Generally, the super class will automatically provide a namespace based on the class name, but for EJBs this can be a problem. Some app server generated containers effect the name of the class causing the configuration to fail. Weblogic is one such.

Specified by:
getConfigurationNamespace in interface CoreUser
Overrides:
getConfigurationNamespace in class Component
Returns:
The namespace of the configuration.