|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EJB object interface for the CampaignService session EJB.
Method Summary | |
AdBucketService |
getAdBucketService()
Get a reference to the AdBucketService being used. |
AdService |
getAdService()
Get a reference to the AdService being used |
CampaignRepository |
getCampaignRepository()
Get a reference to the campaign repository. |
MailService |
getMailService()
Get a reference to the mail service being used. |
ScenarioService |
getScenarioService()
Get a reference to the scenario service this uses. |
void |
handleEvent(Event event)
Handle an event from the event service. |
boolean |
isActive(java.lang.String campaignId)
Tell if the specified campaign is currently active. |
void |
loadAllCampaigns()
Tell the campaign service to load all the campaigns from the data store. |
Method Detail |
public void handleEvent(Event event) throws java.rmi.RemoteException, javax.ejb.EJBException
event
- the event.EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public boolean isActive(java.lang.String campaignId) throws java.rmi.RemoteException, javax.ejb.EJBException
isActive
in interface AdStatus
campaignId
- the campaign's unique id.EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public CampaignRepository getCampaignRepository() throws java.rmi.RemoteException, javax.ejb.EJBException
EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public ScenarioService getScenarioService() throws java.rmi.RemoteException, javax.ejb.EJBException
EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public AdService getAdService() throws java.rmi.RemoteException, javax.ejb.EJBException
EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public AdBucketService getAdBucketService() throws java.rmi.RemoteException, javax.ejb.EJBException
EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public MailService getMailService() throws java.rmi.RemoteException, javax.ejb.EJBException
EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.public void loadAllCampaigns() throws java.rmi.RemoteException, javax.ejb.EJBException
This could be a time-intensive operation and should only happen at server startup. Incremental changes and additions via the CampaignRepository will automatically update the CampaignService.
This will invoke loadAllCampaigns on the CampaignRepository.
EJBException
- thrown on an error.java.rmi.RemoteException
- thrown on a communications error.
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |