java.lang.Object
java.util.Observable
oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
oracle.communication.brm.charging.appconfiguration.beans.customerGenerator.CustomerGeneratorConfig
All Implemented Interfaces:
Cloneable, CustomerGeneratorConfigMBean, oracle.communication.brm.charging.appconfiguration.ConfigurationBean, oracle.communication.brm.charging.util.directevolution.DEvolvable

public class CustomerGeneratorConfig extends oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean implements CustomerGeneratorConfigMBean
This class represents the configuration bean for the customer generator. All available configuration values are present in this bean. The bean is populated with values that are present in an xml configuration file. The bean will default to certain value below if values are not present in the supplied xml file.
  • Field Details

  • Constructor Details

    • CustomerGeneratorConfig

      public CustomerGeneratorConfig()
      Default Constructor for DEvolution
  • Method Details

    • createInstance

      public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()
      Specified by:
      createInstance in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
    • giveInitializerTo

      public void giveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper DEvolvableHelper)
      Specified by:
      giveInitializerTo in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
      Overrides:
      giveInitializerTo in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • getCustomersPerFile

      public int getCustomersPerFile()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for number of customers to be created per customer XML file.
      Specified by:
      getCustomersPerFile in interface CustomerGeneratorConfigMBean
      Returns:
      Number of customers to be created per customer XML file.
    • setCustomersPerFile

      public void setCustomersPerFile(int customersPerFile)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for number of customers to be created per customer XML file.
      Specified by:
      setCustomersPerFile in interface CustomerGeneratorConfigMBean
      Parameters:
      customersPerFile - Number of customers to be created per customer XML file.
    • getBalanceAmount

      public int getBalanceAmount()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for balance amount to be used for all the balances created for the customers.
      Specified by:
      getBalanceAmount in interface CustomerGeneratorConfigMBean
      Returns:
      BalanceAmount to be used for all the balances.
    • setBalanceAmount

      public void setBalanceAmount(int balanceAmount)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for balanceAmount to be used for all the balances created for the customers.
      Specified by:
      setBalanceAmount in interface CustomerGeneratorConfigMBean
      Parameters:
      balanceAmount - BalanceAmount to be used for all the balances.
    • getProductOfferings

      public String getProductOfferings()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for product offerings to be used for creating purchased product offerings.

      If useEveryOfferingInAllProducts is set to true, all the product offerings will be used as purchased product offers for all the products created in customer. If useEveryOfferingInAllProducts is false, one purchased product offering will be created for each of the products.

      Specified by:
      getProductOfferings in interface CustomerGeneratorConfigMBean
      Returns:
      Product offerings to be used for creating purchased product offerings.
    • setProductOfferings

      public void setProductOfferings(String productOfferings)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for product offerings to be used for creating purchased product offerings.

      Specify each of the offerings separated by a semicolon. Eg:"Offer1;Offer2;Offer3". If useEveryOfferingInAllProducts is set to true, all the product offerings will be used as purchased product offers for all the products created in customer. If useEveryOfferingInAllProducts is false, one purchased product offering will be created for each of the products.

      Specified by:
      setProductOfferings in interface CustomerGeneratorConfigMBean
      Parameters:
      productOfferings - Product offerings to be used for creating purchased product offerings.
    • getProductTypes

      public String getProductTypes()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for productTypes to be used for the products created for the customers.

      Ensure that these product types are also mapped from the request specification to ensure that products for the customer loaded are valid.

      Specified by:
      getProductTypes in interface CustomerGeneratorConfigMBean
      Returns:
      productTypes ProductTypes to be used for the products created for the customers.
    • setProductTypes

      public void setProductTypes(String productTypes)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for productTypes to be used for the products created for the customers.
      Specified by:
      setProductTypes in interface CustomerGeneratorConfigMBean
      Parameters:
      productTypes - ProductTypes to be used for the products created for the customers.
    • getDestinationDir

      public String getDestinationDir()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the directory where customer XML files generated by customer file generator will be written.
      Specified by:
      getDestinationDir in interface CustomerGeneratorConfigMBean
      Returns:
      destinationDir Directory where customer XML files are written
    • setDestinationDir

      public void setDestinationDir(String destinationDir)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for the directory where customer XML files generated by customer file generator will be written.
      Specified by:
      setDestinationDir in interface CustomerGeneratorConfigMBean
      Parameters:
      destinationDir - directory where customer XML files generated by customer file generator will be written.
    • getAlterationOfferings

      public String getAlterationOfferings()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for alteration offerings to be used for creating purchased alteration offerings.

      If useEveryOfferingInAllProducts is set to true, all the alteration offerings will be used as purchased alteration offers for all the products created in customer. If useEveryOfferingInAllProducts is false, one purchased alteration offering will be created for each of the products.

      Specified by:
      getAlterationOfferings in interface CustomerGeneratorConfigMBean
      Returns:
      Alteration offers to be used
    • setAlterationOfferings

      public void setAlterationOfferings(String alterationOfferings)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for alteration offerings to be used for creating purchased alteration offerings.

      Specify each of the offerings separated by a semicolon. Eg:"Offer1;Offer2;Offer3". If useEveryOfferingInAllProducts is set to true, all the alteration offerings will be used as purchased alteration offers for all the products created in customer. If useEveryOfferingInAllProducts is false, one purchased alteration offering will be created for each of the products.

      Specified by:
      setAlterationOfferings in interface CustomerGeneratorConfigMBean
      Parameters:
      alterationOfferings - Alteration offers to be used
    • getDistributionOfferings

      public String getDistributionOfferings()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for distribution offerings to be used for creating purchased alteration offerings.
      Specified by:
      getDistributionOfferings in interface CustomerGeneratorConfigMBean
      Returns:
      Distribution offers to be used
    • setDistributionOfferings

      public void setDistributionOfferings(String distributionOfferings)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for alteration offerings to be used for creating purchased alteration offerings.
      Specified by:
      setDistributionOfferings in interface CustomerGeneratorConfigMBean
      Parameters:
      distributionOfferings - Distribution offers to be used
    • getProductRatingProfiles

      public String getProductRatingProfiles()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for names of product rating profiles to be created for the customers through file generator. Multiple values can be represented as a semicolon separated string.
      Specified by:
      getProductRatingProfiles in interface CustomerGeneratorConfigMBean
      Returns:
      product level rating profiles to be created for the customer
    • setProductRatingProfiles

      public void setProductRatingProfiles(String productRatingProfiles)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for names of product rating profiles to be created for the customers through file generator. Multiple values can be represented as a semicolon separated string.
      Specified by:
      setProductRatingProfiles in interface CustomerGeneratorConfigMBean
      Parameters:
      productRatingProfiles - product rating profile names
    • getCustomerRatingProfiles

      public String getCustomerRatingProfiles()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for names of customer rating profiles to be created for the customers through file generator. Multiple values can be represented as a semicolon separated string.
      Specified by:
      getCustomerRatingProfiles in interface CustomerGeneratorConfigMBean
      Returns:
      Customer level rating profiles
    • setCustomerRatingProfiles

      public void setCustomerRatingProfiles(String customerRatingProfiles)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for names of customer rating profiles to be created for the customers through file generator. Multiple values can be represented as a semicolon separated string.
      Specified by:
      setCustomerRatingProfiles in interface CustomerGeneratorConfigMBean
      Parameters:
      customerRatingProfiles - Customer level rating profiles
    • getNumAuditRevisions

      public Integer getNumAuditRevisions()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for number of audit products to be created.
      Specified by:
      getNumAuditRevisions in interface CustomerGeneratorConfigMBean
      Returns:
      Number of audit products to be created
    • setNumAuditRevisions

      public void setNumAuditRevisions(Integer numAuditRevisions)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for number of audit products to be created.
      Specified by:
      setNumAuditRevisions in interface CustomerGeneratorConfigMBean
      Parameters:
      numAuditRevisions - Number of audit products to be created
    • getValidateXml

      public Boolean getValidateXml()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for flag indicating whether xml files generated should be validated.
      Specified by:
      getValidateXml in interface CustomerGeneratorConfigMBean
      Returns:
      Flag indicating whether xml files generated should be validated
    • setValidateXml

      public void setValidateXml(Boolean validateXml)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for flag indicating whether xml files generated should be validated.
      Specified by:
      setValidateXml in interface CustomerGeneratorConfigMBean
      Parameters:
      validateXml - Flag indicating whether xml files generated should be validated
    • getBalanceItemsPerBalance

      public Integer getBalanceItemsPerBalance()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for number of balance items to be created per balance.
      Specified by:
      getBalanceItemsPerBalance in interface CustomerGeneratorConfigMBean
      Returns:
      Number of balance items to be created per balance
    • setBalanceItemsPerBalance

      public void setBalanceItemsPerBalance(Integer balanceItemsPerBalance)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for number of balance items to be created per balance.
      Specified by:
      setBalanceItemsPerBalance in interface CustomerGeneratorConfigMBean
      Parameters:
      balanceItemsPerBalance - Number of balance items to be created per balance
    • getAliasesPerProduct

      public Integer getAliasesPerProduct()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for number of alias names to be created per product.
      Specified by:
      getAliasesPerProduct in interface CustomerGeneratorConfigMBean
      Returns:
      Number of alias names to be created per product
    • setAliasesPerProduct

      public void setAliasesPerProduct(Integer aliasesPerProduct)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for number of alias names to be created per product.
      Specified by:
      setAliasesPerProduct in interface CustomerGeneratorConfigMBean
      Parameters:
      aliasesPerProduct - Number of alias names to be created per product
    • getMultipleBalances

      public Boolean getMultipleBalances()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for number of balances to be created. Returns false if one single balance needs to be created for every product. True if each product will have a separate balance
      Specified by:
      getMultipleBalances in interface CustomerGeneratorConfigMBean
      Returns:
      Flag indicating whether single balance should be created for every product
    • setMultipleBalances

      public void setMultipleBalances(Boolean multipleBalances)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for number of balances to be created. False if one single balance needs to be created for every product. True if each product will have a separate balance
      Specified by:
      setMultipleBalances in interface CustomerGeneratorConfigMBean
      Parameters:
      multipleBalances - Flag indicating whether single balance should be created for every product. False if one single balance needs to be created for every product. True if each product will have a separate balance
    • setIsTemplateDriven

      public void setIsTemplateDriven(Boolean isTemplateDriven)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for the variable that determines whether customerGenerator is run in a templateDriven mode or configuration driven mode. If this field is set to true, a corresponding customer template file should be supplied which will be used by customer generator to generate customer cml files.
      Specified by:
      setIsTemplateDriven in interface CustomerGeneratorConfigMBean
      Parameters:
      isTemplateDriven - true if customer generator should generate customers as per the customer template provided. False if customer generator should generate customers according to the configurations.
    • getIsTemplateDriven

      public Boolean getIsTemplateDriven()
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for the variable that determines whether customerGenerator is run in a templateDriven mode or configuration driven mode. If this field is set to true, a corresponding customer template file should be supplied which will be used by customer generator to generate customer cml files.
      Specified by:
      getIsTemplateDriven in interface CustomerGeneratorConfigMBean
      Returns:
      true if customer generator generates customers as per the customer template provided. False otherwise
    • setCustomerTemplateFile

      public void setCustomerTemplateFile(String customerTemplateFile)
      Description copied from interface: CustomerGeneratorConfigMBean
      Sets the customer template file used for the creation of customer xml files.
      Specified by:
      setCustomerTemplateFile in interface CustomerGeneratorConfigMBean
      Parameters:
      customerTemplateFile - customer template file
    • getCustomerTemplateFile

      public String getCustomerTemplateFile()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the template file used for the creation of customer xml files.
      Specified by:
      getCustomerTemplateFile in interface CustomerGeneratorConfigMBean
      Returns:
      customer template file
    • setTxCustomerTemplateFile

      public void setTxCustomerTemplateFile(String txCustomerTemplateFile)
      Description copied from interface: CustomerGeneratorConfigMBean
      Sets the customer template file used for the creation of transaction customer xml files.
      Specified by:
      setTxCustomerTemplateFile in interface CustomerGeneratorConfigMBean
      Parameters:
      txCustomerTemplateFile - customer template file
    • getTxCustomerTemplateFile

      public String getTxCustomerTemplateFile()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the template file used for the creation of transaction customer xml files.
      Specified by:
      getTxCustomerTemplateFile in interface CustomerGeneratorConfigMBean
      Returns:
      customer template file
    • getShareAlterationAgreements

      public Boolean getShareAlterationAgreements()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the variable used to find out if the alteration agreements should be shared for the sharing agreements
      Specified by:
      getShareAlterationAgreements in interface CustomerGeneratorConfigMBean
      Returns:
      True if the alteration agreements should be shared for the sharing agreements. False otherwise
    • setShareAlterationAgreements

      public void setShareAlterationAgreements(Boolean shareAlterationAgreements)
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the variable used to find out if the alteration agreements should be shared for the sharing agreements.
      Specified by:
      setShareAlterationAgreements in interface CustomerGeneratorConfigMBean
      Parameters:
      shareAlterationAgreements - True if the alteration agreements should be shared for the sharing agreements. False otherwise
    • setUseEveryOfferingInAllProducts

      public void setUseEveryOfferingInAllProducts(Boolean useEveryOfferingInAllProducts)
      Description copied from interface: CustomerGeneratorConfigMBean
      Sets the flag which indicates whether to create all the product offerings in every product.
      Specified by:
      setUseEveryOfferingInAllProducts in interface CustomerGeneratorConfigMBean
      Parameters:
      useEveryOfferingInAllProducts - True if every product should contain every product offering. False otherwise
    • getUseEveryOfferingInAllProducts

      public Boolean getUseEveryOfferingInAllProducts()
      Description copied from interface: CustomerGeneratorConfigMBean
      Gets the flag which indicates whether to create all the product offerings in every product.
      Specified by:
      getUseEveryOfferingInAllProducts in interface CustomerGeneratorConfigMBean
      Returns:
      True if every product should contain every product offering. False otherwise
    • getBalanceElementId

      public int getBalanceElementId()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the balance element id to be used for the balances.
      Specified by:
      getBalanceElementId in interface CustomerGeneratorConfigMBean
      Returns:
      BalanceElement code
    • setBalanceElementId

      public void setBalanceElementId(int balanceElementId)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for the balance element id to be used for the balance.
      Specified by:
      setBalanceElementId in interface CustomerGeneratorConfigMBean
      Parameters:
      balanceElementId - BalanceElement code
    • getExtendedCustomerAttributes

      public String getExtendedCustomerAttributes()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the extended customer attributes
      Specified by:
      getExtendedCustomerAttributes in interface CustomerGeneratorConfigMBean
      Returns:
      Extended Attributes list as string
    • setExtendedCustomerAttributes

      public void setExtendedCustomerAttributes(String extendedAttributes)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for the extended customer attributes
      Specified by:
      setExtendedCustomerAttributes in interface CustomerGeneratorConfigMBean
      Parameters:
      extendedAttributes - Extended Attributes list as string
    • getExtendedProductAttributes

      public String getExtendedProductAttributes()
      Description copied from interface: CustomerGeneratorConfigMBean
      Getter for the extended product attributes
      Specified by:
      getExtendedProductAttributes in interface CustomerGeneratorConfigMBean
      Returns:
      Extended Attributes list as string
    • setExtendedProductAttributes

      public void setExtendedProductAttributes(String extendedAttributes)
      Description copied from interface: CustomerGeneratorConfigMBean
      Setter for the extended product attributes
      Specified by:
      setExtendedProductAttributes in interface CustomerGeneratorConfigMBean
      Parameters:
      extendedAttributes - Extended Attributes list as string
    • republishAll

      public void republishAll()
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ConfigurationBean
      Method used to persist and synchronize all app configuration beans to charging-settings.xml.
      Specified by:
      republishAll in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
    • handlePrintConfiguration

      public void handlePrintConfiguration(org.apache.logging.log4j.Logger logger)
      Description copied from class: oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Method used by subclasses to dump their configuration settings to a log file.
      Specified by:
      handlePrintConfiguration in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Parameters:
      logger - the logger is provided to subclassers for writing their config values.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean