com.ibm.commerce.tools.epromotion
Class RLPromotionComponentConfiguration

java.lang.Object
  |
  +--com.ibm.commerce.tools.epromotion.RLPromotionComponentConfiguration
All Implemented Interfaces:
ComponentConfiguration

public class RLPromotionComponentConfiguration
extends java.lang.Object
implements ComponentConfiguration

This class represents the rule based discount component configuration


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Constructor Summary
RLPromotionComponentConfiguration()
          The constructor for RLPromotionComponentConfiguration.
 
Method Summary
protected  Socket createSocket(org.w3c.dom.Node childNode)
          Create socket
 void destroy()
          This destroy method will be called when the request servlet is stopped or destroyed.
 void enable(boolean newEnable)
          This method is used to dynamically enable or disable a component.
protected  java.util.Properties getClassMappingProperties()
          Get the classMapping
 java.lang.String getProjectName()
          Get the project name
 java.lang.String getProjectPath()
          Get the project path
 java.lang.String getRepositoryName()
          Get the repository name
 java.lang.String getRepositoryPath()
          Get the repository path
  RLPromotionFactory getRLPromotionFactory()
          Get the RLPromotionFactory
 java.lang.String getVersion()
          Get the version of rule-based discounts component
 void init(org.w3c.dom.Element node)
          The initilization method for the component.
protected  void parseConfigFile(java.lang.String fileName, java.lang.String mappingFileDir)
          This method is using to parse the configuration file.
protected  void parseDeploymentConfigFile(java.lang.String fileName)
          This method is using to parse the deployment configuration file.
 void registerPromotionType(org.w3c.dom.Node childNode, java.lang.String mappingFileDir)
          This method is using to register promotion type
static  RLPromotionComponentConfiguration retrieveFromWcs()
          This static method will retrieve RLPromotionComponentConfiguration object from the WebSphere Commerce Server instance.xml
 void setProjectName(java.lang.String proN)
          Set the project name
 void setProjectPath(java.lang.String proP)
          Set the project path
 void setRepositoryName(java.lang.String newRepositoryName)
          Set the repository name
 void setRepositoryPath(java.lang.String newRepositoryPath)
          Set the repository path
 void setRLPromotionFactory( RLPromotionFactory newFRLPromotionFactory)
          sets the RLPromotionFactory
 void setVersion(java.lang.String newVersion)
          Set the version of rule-based discounts component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

RLPromotionComponentConfiguration

public RLPromotionComponentConfiguration()
The constructor for RLPromotionComponentConfiguration.
Method Detail

createSocket

protected Socket createSocket(org.w3c.dom.Node childNode)
Create socket
Parameters:
childNode - org.w3c.dom.Node
Returns:
socket

destroy

public void destroy()
This destroy method will be called when the request servlet is stopped or destroyed.
Specified by:
destroy in interface ComponentConfiguration

enable

public void enable(boolean newEnable)
            throws java.lang.Exception
This method is used to dynamically enable or disable a component.
Specified by:
enable in interface ComponentConfiguration
Parameters:
newEnable - true if enables component; false if disables component
Throws:
java.lang.Exception

getClassMappingProperties

protected java.util.Properties getClassMappingProperties()
Get the classMapping
Returns:
java.util.Properties

getProjectName

public java.lang.String getProjectName()
Get the project name
Returns:
java.lang.String

getProjectPath

public java.lang.String getProjectPath()
Get the project path
Returns:
java.lang.String

getRepositoryName

public java.lang.String getRepositoryName()
Get the repository name
Returns:
java.lang.String

getRepositoryPath

public java.lang.String getRepositoryPath()
Get the repository path
Returns:
java.lang.String

getVersion

public java.lang.String getVersion()
Get the version of rule-based discounts component
Returns:
java.lang.String

getRLPromotionFactory

public RLPromotionFactory getRLPromotionFactory()
Get the RLPromotionFactory
Returns:
com.ibm.commerce.tools.epromotion.RLPromotionFactory

init

public void init(org.w3c.dom.Element node)
          throws java.lang.Exception
The initilization method for the component. This method will be called during initializtion of the Request Servlet.
Specified by:
init in interface ComponentConfiguration
Parameters:
node - - a dom element node with the parameters for the component, null if no property is present
Throws:
java.lang.Exception

parseConfigFile

protected void parseConfigFile(java.lang.String fileName,
                               java.lang.String mappingFileDir)
                        throws java.lang.Exception
This method is using to parse the configuration file.
Parameters:
fileName - java.lang.String
mappingFileDir - java.lang.String
Throws:
java.lang.Exception - The exception description.

parseDeploymentConfigFile

protected void parseDeploymentConfigFile(java.lang.String fileName)
                                  throws java.lang.Exception
This method is using to parse the deployment configuration file.
Parameters:
fileName - java.lang.String
Throws:
java.lang.Exception

registerPromotionType

public void registerPromotionType(org.w3c.dom.Node childNode,
                                  java.lang.String mappingFileDir)
This method is using to register promotion type
Parameters:
childNode - org.w3c.dom.Node
mappingFileDir - java.lang.String

retrieveFromWcs

public static RLPromotionComponentConfiguration retrieveFromWcs()
This static method will retrieve RLPromotionComponentConfiguration object from the WebSphere Commerce Server instance.xml
Returns:
RLPromotionComponentConfiguration

setProjectName

public void setProjectName(java.lang.String proN)
Set the project name
Parameters:
proN - java.lang.String

setProjectPath

public void setProjectPath(java.lang.String proP)
Set the project path
Parameters:
proP - java.lang.String

setRepositoryName

public void setRepositoryName(java.lang.String newRepositoryName)
Set the repository name

setRLPromotionFactory

public void setRLPromotionFactory(RLPromotionFactory newFRLPromotionFactory)
sets the RLPromotionFactory

setRepositoryPath

public void setRepositoryPath(java.lang.String newRepositoryPath)
Set the repository path

setVersion

public void setVersion(java.lang.String newVersion)
Set the version of rule-based discounts component