© 2001 BEA Systems, Inc.

com.bea.commerce.campaign
Class CampaignDeployer

java.lang.Object
  |
  +--com.bea.commerce.campaign.CampaignDeployer
All Implemented Interfaces:
CampaignConstants

public class CampaignDeployer
extends java.lang.Object
implements CampaignConstants

Command line util to deploy an XML file to the CampaignRepository, or retrieve a Campaign defintion as XML.

Arguments are:


Fields inherited from interface com.bea.commerce.campaign.CampaignConstants
ACTION_SERVICE_HOME, AD_BUCKET_SERVICE_HOME, AD_CONFLICT_RESOLVER_HOME, AD_SERVICE_HOME, CAMPAIGN_REPOSITORY_HOME, CAMPAIGN_SERVICE_HOME, PLACEHOLDER_SERVICE_HOME, SCENARIO_REPOSITORY_HOME, SCENARIO_SERVICE_HOME
 
Constructor Summary
CampaignDeployer()
           
 
Method Summary
 java.lang.String deleteCampaign(java.lang.String id, javax.naming.Context context)
          Delete the specified campaign.
 java.lang.String deployCampaign(java.lang.String xmlFileName, javax.naming.Context context, boolean echo)
          Deploy the specified campaign XML.
 java.lang.String fetchCampaign(java.lang.String xmlFileName, java.lang.String campaignName, javax.naming.Context context, boolean echo)
          Fetch a campaign XML definition.
 CampaignRepository getCampaignRepository(javax.naming.Context context)
          Get a reference to the campaign repository.
 void handle(java.lang.String[] args)
          Handle the command-line arguments.
static void main(java.lang.String[] args)
          The application entry point.
 java.lang.String runit(java.lang.String xmlFileName, java.lang.String fetchId, java.lang.String deleteId, java.lang.String initialContextFactory, java.lang.String hostName, int port, java.lang.String username, java.lang.String password, boolean echo)
          Execute the deployer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CampaignDeployer

public CampaignDeployer()
Method Detail

runit

public java.lang.String runit(java.lang.String xmlFileName,
                              java.lang.String fetchId,
                              java.lang.String deleteId,
                              java.lang.String initialContextFactory,
                              java.lang.String hostName,
                              int port,
                              java.lang.String username,
                              java.lang.String password,
                              boolean echo)
                       throws java.lang.Exception
Execute the deployer.
Throws:
java.lang.Exception - thrown on an error.

fetchCampaign

public java.lang.String fetchCampaign(java.lang.String xmlFileName,
                                      java.lang.String campaignName,
                                      javax.naming.Context context,
                                      boolean echo)
                               throws java.lang.Exception
Fetch a campaign XML definition.
Throws:
java.lang.Exception - thrown on an error.

deployCampaign

public java.lang.String deployCampaign(java.lang.String xmlFileName,
                                       javax.naming.Context context,
                                       boolean echo)
                                throws java.lang.Exception
Deploy the specified campaign XML.
Throws:
java.lang.Exception - thrown on an error.

deleteCampaign

public java.lang.String deleteCampaign(java.lang.String id,
                                       javax.naming.Context context)
                                throws java.lang.Exception
Delete the specified campaign.
Throws:
java.lang.Exception - thrown on an error.

handle

public void handle(java.lang.String[] args)
Handle the command-line arguments.
Parameters:
args - the command-line arguments.

getCampaignRepository

public CampaignRepository getCampaignRepository(javax.naming.Context context)
                                         throws java.lang.Exception
Get a reference to the campaign repository.
Parameters:
context - the JNDI context to use.
Returns:
the campaign repository.
Throws:
java.lang.Exception - thrown on an error.

main

public static void main(java.lang.String[] args)
The application entry point.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved