|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CampaignService
EJB object interface for the CampaignService session EJB.
In general, users will interact with campaigns via the portal admin tools -- see documentation for Campaigns. However, in the case that one needs to deal directly with the CampaignService itself (eg, get a list of all active campaigns), use the CampaignService.
The CampaignService may be accessed like this:
String appName= ApplicationHelper.getVersionedAppName();
InitialContext iCtx= new InitialContext();
String jndiName= appName + '.BEA_campaign.CampaignService';
CampaignServiceHome csh= (CampaignServiceHome)iCtx.lookup( jndiName );
CampaignService cSvc= csh.create();
Collection c= cSvc.getDeployedCampaigns();
for ( Object o : c )
{
Campaign camp= (Campaign)o;
String campName= camp.getName();
}
Method Summary | |
---|---|
void |
clearEndStates(String campaignId)
Clear all of the user end states associated to a campaign. |
Collection |
getActiveCampaigns()
Get back a list of the active Campaign objects. |
AdBucketService |
getAdBucketService()
Get a reference to the AdBucketService being used. |
AdService |
getAdService()
Get a reference to the AdService being used |
Campaign |
getCampaign(String id)
Retrieve a deployed campaign. |
Collection |
getDeployedCampaigns()
Get back a list of the deployed Campaign objects. |
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(String campaignId)
Tell if the specified campaign is currently active. |
void |
resetCampaign(String campaignId)
Reset any cached state on the specified campaign. |
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
---|
void handleEvent(Event event) throws RemoteException, javax.ejb.EJBException
event
- the event.
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.boolean isActive(String campaignId) throws RemoteException, javax.ejb.EJBException
isActive
in interface AdStatus
campaignId
- the campaign's unique id.
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.Collection getDeployedCampaigns() throws RemoteException, javax.ejb.EJBException
RemoteException
javax.ejb.EJBException
Collection getActiveCampaigns() throws RemoteException, javax.ejb.EJBException
RemoteException
javax.ejb.EJBException
Campaign getCampaign(String id) throws RemoteException, javax.ejb.EJBException
RemoteException
javax.ejb.EJBException
void clearEndStates(String campaignId) throws RemoteException, javax.ejb.EJBException
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.ScenarioService.clearEndStates(com.bea.campaign.ScenarioContainer)
void resetCampaign(String campaignId) throws RemoteException, javax.ejb.EJBException
This will cause the Campaign to redetermine it's state the next time it's accessed.
This includes: reseting the goal achieved state.
RemoteException
javax.ejb.EJBException
ScenarioService getScenarioService() throws RemoteException, javax.ejb.EJBException
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.AdService getAdService() throws RemoteException, javax.ejb.EJBException
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.AdBucketService getAdBucketService() throws RemoteException, javax.ejb.EJBException
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.MailService getMailService() throws RemoteException, javax.ejb.EJBException
javax.ejb.EJBException
- thrown on an error.
RemoteException
- thrown on a communications error.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |