© 2001 BEA Systems, Inc.

com.bea.commerce.campaign
Class ScenarioDeployer

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

public class ScenarioDeployer
extends java.lang.Object
implements CampaignConstants

Command line util to deploy an XML file to the ScenarioRepository, or retrieve a Scenario 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
ScenarioDeployer()
           
 
Method Summary
 java.lang.String deleteScenario(java.lang.String id, javax.naming.Context context)
          Delete the specified scenario.
 java.lang.String deployScenario(java.lang.String xmlFileName, javax.naming.Context context, boolean echo)
          Deploy the specified scenario XML definition.
 java.lang.String fetchScenario(java.lang.String xmlFileName, java.lang.String scenarioName, javax.naming.Context context, boolean echo)
          Fetch the scenario XML definition.
 ScenarioRepository getScenarioRepository(javax.naming.Context context)
          Get the scenario repository to use.
 void handle(java.lang.String[] args)
          Handle the command-line args.
static void main(java.lang.String[] args)
          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

ScenarioDeployer

public ScenarioDeployer()
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.

fetchScenario

public java.lang.String fetchScenario(java.lang.String xmlFileName,
                                      java.lang.String scenarioName,
                                      javax.naming.Context context,
                                      boolean echo)
                               throws java.lang.Exception
Fetch the scenario XML definition.
Throws:
java.lang.Exception - thrown on an error.

deployScenario

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

deleteScenario

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

handle

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

getScenarioRepository

public ScenarioRepository getScenarioRepository(javax.naming.Context context)
                                         throws java.lang.Exception
Get the scenario repository to use.
Parameters:
context - the JNDI context to use.
Throws:
java.lang.Exception - thrown on an error.

main

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

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved