© 2001 BEA Systems, Inc.

com.bea.commerce.platform.placeholder
Class PlaceholderDeployer

java.lang.Object
  |
  +--com.bea.commerce.platform.placeholder.PlaceholderDeployer
All Implemented Interfaces:
PlaceholderConstants

public class PlaceholderDeployer
extends java.lang.Object
implements PlaceholderConstants

this class is a basic command line deployer for placholders. It supports add (update), fetch and delete of placeholders.


Fields inherited from interface com.bea.commerce.platform.placeholder.PlaceholderConstants
ADBUCKET_ENV_NAME, PLACEHOLDER_DB_NAME, PLACEHOLDER_NAME, PLACEHOLDER_PREVIEW_DB_NAME
 
Constructor Summary
PlaceholderDeployer()
           
 
Method Summary
 java.lang.String deletePlaceholder(java.lang.String placeholderName, javax.naming.Context context)
          delete a placeholder
 java.lang.String deployPlaceholder(java.lang.String xmlFilename, javax.naming.Context context, boolean echo)
          deploy a new placeholder or update an existing placeholder
 java.lang.String fetchPlaceholder(java.lang.String placeholderName, javax.naming.Context context, boolean echo)
          return the XML definition of a placeholder
 void handle(java.lang.String[] args)
          This method will process the args and then call the runit method.
static void main(java.lang.String[] args)
          The main for the command line version
 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)
          run the command against the PlaceholderService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceholderDeployer

public PlaceholderDeployer()
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
run the command against the PlaceholderService
Parameters:
xmlFileName - the file name for the xml file
fetchId - the placeholder name to fetch
deleteId - the placeholder name to delete
initialContextFactory - the name of the ContextFactory
hostName - the host of the server
port - the port the server is running on
username - a username for authentication
passowrd - the password
echo - echo the input?

fetchPlaceholder

public java.lang.String fetchPlaceholder(java.lang.String placeholderName,
                                         javax.naming.Context context,
                                         boolean echo)
                                  throws java.lang.Exception
return the XML definition of a placeholder
Parameters:
placeholderName - the name of the placeholder
context - the request context
echo - the echo flag

deployPlaceholder

public java.lang.String deployPlaceholder(java.lang.String xmlFilename,
                                          javax.naming.Context context,
                                          boolean echo)
                                   throws java.lang.Exception
deploy a new placeholder or update an existing placeholder
Parameters:
xmlFilename - the XML file contain the placeholder definition.
context - the request context
echo - the echo flag

deletePlaceholder

public java.lang.String deletePlaceholder(java.lang.String placeholderName,
                                          javax.naming.Context context)
                                   throws java.lang.Exception
delete a placeholder
Parameters:
placeholderName - the name of the placeholder to delete
context - the context

handle

public void handle(java.lang.String[] args)
This method will process the args and then call the runit method.

main

public static void main(java.lang.String[] args)
The main for the command line version

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved