com.ail.insurance.acceptance
Class AcceptanceBean

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

public class AcceptanceBean
extends EJBComponent
implements javax.ejb.SessionBean

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

Constructor Summary
AcceptanceBean()
           
 
Method Summary
 AcceptQuotationArg acceptQuotation(AcceptQuotationArg arg)
          Service wrapper method for the AcceptQuotation service.
 CollectPremiumArg collectPremium(CollectPremiumArg arg)
          Service wrapper method for the CollectPremium service.
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 Configuration getConfiguration()
          Default component implementation of the getConfiguration method.
 java.lang.String getConfigurationNamespace()
          Default component implementation of the getConfigurationNamespace method.
 Core getCore()
          Fetch the entry point's instance of the core.
 javax.ejb.SessionContext getSessionContext()
          Returns the context passed to the EJB's setSessionContext method.
 Version getVersion()
          Return the version details of this component.
 VersionEffectiveDate getVersionEffectiveDate()
          A default component implemention returning the time now.
 java.lang.String invokeServiceXML(java.lang.String xml)
          Expose services of this EJB via XML.
 ProduceDocumentationArg produceDocumentation(ProduceDocumentationArg arg)
          Service wrapper method for the ProduceDocumentation service.
 PutOnRiskArg putOnRisk(PutOnRiskArg arg)
          Service wrapper method for the PutOnRisk service.
 void resetConfiguration()
          Default component implementation of the resetConfiguration method.
 void setConfiguration(Configuration config)
          Default component implementation of the setConfiguration method.
 void setSessionContext(javax.ejb.SessionContext context)
           
 
Methods inherited from class com.ail.core.EJBComponent
getSecurityPrincipal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptanceBean

public AcceptanceBean()
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

invokeServiceXML

public java.lang.String invokeServiceXML(java.lang.String xml)
Expose services of this EJB 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.

getCore

public Core getCore()
Description copied from class: Component
Fetch the entry point's instance of the core.

Specified by:
getCore in class Component
Returns:
The core being used by the entry points.

setConfiguration

public void setConfiguration(Configuration config)
Description copied from class: Component
Default component implementation of the setConfiguration method. This method takes care of saving configrations on the behalf of the entry point.

Specified by:
setConfiguration in interface ConfigurationOwner
Overrides:
setConfiguration in class Component
Parameters:
config - The configuration to save.

getConfiguration

public Configuration getConfiguration()
Description copied from class: Component
Default component implementation of the getConfiguration method. This method takes care of loading configurations on the behalf of the component.

Specified by:
getConfiguration in interface ConfigurationOwner
Overrides:
getConfiguration in class Component
Returns:
The loaded configuration.

getConfigurationNamespace

public java.lang.String getConfigurationNamespace()
Description copied from class: Component
Default component implementation of the getConfigurationNamespace method. The name of the component class is returned.

Specified by:
getConfigurationNamespace in interface CoreUser
Overrides:
getConfigurationNamespace in class Component
Returns:
The classes namespace

getVersionEffectiveDate

public VersionEffectiveDate getVersionEffectiveDate()
Description copied from class: Component
A default component implemention returning the time now. Components with a critical dependency on selecting the version effective date should override this method.

Specified by:
getVersionEffectiveDate in interface CoreUser
Overrides:
getVersionEffectiveDate in class Component
Returns:
VersionEffectiveDate now.

resetConfiguration

public void resetConfiguration()
Description copied from class: Component
Default component implementation of the resetConfiguration method. This implementation loads the default config from the class resource file named "DefaultConfig.xml". For an component named 'Red', the resource 'RedDefaultConfig.xml' is loaded.

Note: If the component's name ends with 'Bean' - as EJB based ones do, the 'Bean' postfix is removed (RedBean -> Red).

Specified by:
resetConfiguration in interface ConfigurationOwner
Overrides:
resetConfiguration in class Component

getVersion

public Version getVersion()
Description copied from class: Component
Return the version details of this component.

Specified by:
getVersion in class Component
Returns:
version details

produceDocumentation

public ProduceDocumentationArg produceDocumentation(ProduceDocumentationArg arg)
Service wrapper method for the ProduceDocumentation 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.

putOnRisk

public PutOnRiskArg putOnRisk(PutOnRiskArg arg)
Service wrapper method for the PutOnRisk 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.

collectPremium

public CollectPremiumArg collectPremium(CollectPremiumArg arg)
Service wrapper method for the CollectPremium 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.

acceptQuotation

public AcceptQuotationArg acceptQuotation(AcceptQuotationArg arg)
Service wrapper method for the AcceptQuotation 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.