Interface CustomerGeneratorConfigMBean
- All Known Implementing Classes:
CustomerGeneratorConfig
Customer file generator is a test tool used to create customer XML files, that can be consumed by customer loader to load the customer details into ECE Customer repository.
-
Method Summary
Modifier and TypeMethodDescriptionGetter for number of alias names to be created per product.Getter for alteration offerings to be used for creating purchased alteration offerings.intGetter for balance amount to be used for all the balances created for the customers.intGetter for the balance element id to be used for the balances.Getter for number of balance items to be created per balance.Getter for names of customer rating profiles to be created for the customers through file generator.intGetter for number of customers to be created per customer XML file.Getter for the template file used for the creation of customer xml files.Getter for the directory where customer XML files generated by customer file generator will be written.Getter for distribution offerings to be used for creating purchased alteration offerings.Getter for the extended customer attributesGetter for the extended product attributesSetter for the variable that determines whether customerGenerator is run in a templateDriven mode or configuration driven mode.Getter for number of balances to be created.Getter for number of audit products to be created.Getter for product offerings to be used for creating purchased product offerings.Getter for names of product rating profiles to be created for the customers through file generator.Getter for productTypes to be used for the products created for the customers.Getter for the variable used to find out if the alteration agreements should be shared for the sharing agreementsGetter for the template file used for the creation of transaction customer xml files.Gets the flag which indicates whether to create all the product offerings in every product.Getter for flag indicating whether xml files generated should be validated.voidsetAliasesPerProduct(Integer aliasesPerProduct) Setter for number of alias names to be created per product.voidsetAlterationOfferings(String alterationOfferings) Setter for alteration offerings to be used for creating purchased alteration offerings.voidsetBalanceAmount(int balanceAmount) Setter for balanceAmount to be used for all the balances created for the customers.voidsetBalanceElementId(int balanceElementId) Setter for the balance element id to be used for the balance.voidsetBalanceItemsPerBalance(Integer balanceItemsPerBalance) Setter for number of balance items to be created per balance.voidsetCustomerRatingProfiles(String customerRatingProfiles) Setter for names of customer rating profiles to be created for the customers through file generator.voidsetCustomersPerFile(int customersPerFile) Setter for number of customers to be created per customer XML file.voidsetCustomerTemplateFile(String customerTemplateFile) Sets the customer template file used for the creation of customer xml files.voidsetDestinationDir(String directory) Setter for the directory where customer XML files generated by customer file generator will be written.voidsetDistributionOfferings(String distributionOfferings) Setter for alteration offerings to be used for creating purchased alteration offerings.voidsetExtendedCustomerAttributes(String extendedAttributes) Setter for the extended customer attributesvoidsetExtendedProductAttributes(String extendedAttributes) Setter for the extended product attributesvoidsetIsTemplateDriven(Boolean isTemplateDriven) Setter for the variable that determines whether customerGenerator is run in a templateDriven mode or configuration driven mode.voidsetMultipleBalances(Boolean multipleBalances) Setter for number of balances to be created.voidsetNumAuditRevisions(Integer numAuditProducts) Setter for number of audit products to be created.voidsetProductOfferings(String offerings) Setter for product offerings to be used for creating purchased product offerings.voidsetProductRatingProfiles(String productRatingProfiles) Setter for names of product rating profiles to be created for the customers through file generator.voidsetProductTypes(String productTypes) Setter for productTypes to be used for the products created for the customers.voidsetShareAlterationAgreements(Boolean shareAlterationAgreements) Getter for the variable used to find out if the alteration agreements should be shared for the sharing agreements.voidsetTxCustomerTemplateFile(String txCustomerTemplateFile) Sets the customer template file used for the creation of transaction customer xml files.voidsetUseEveryOfferingInAllProducts(Boolean useEveryOfferingInAllProducts) Sets the flag which indicates whether to create all the product offerings in every product.voidsetValidateXml(Boolean validateXml) Setter for flag indicating whether xml files generated should be validated.
-
Method Details
-
getCustomersPerFile
int getCustomersPerFile()Getter for number of customers to be created per customer XML file.- Returns:
- Number of customers to be created per customer XML file.
-
setCustomersPerFile
void setCustomersPerFile(int customersPerFile) Setter for number of customers to be created per customer XML file.- Parameters:
customersPerFile- Number of customers to be created per customer XML file.
-
getBalanceAmount
int getBalanceAmount()Getter for balance amount to be used for all the balances created for the customers.- Returns:
- BalanceAmount to be used for all the balances.
-
setBalanceAmount
void setBalanceAmount(int balanceAmount) Setter for balanceAmount to be used for all the balances created for the customers.- Parameters:
balanceAmount- BalanceAmount to be used for all the balances.
-
getProductOfferings
String getProductOfferings()Getter for product offerings to be used for creating purchased product offerings.If
useEveryOfferingInAllProductsis set to true, all the product offerings will be used as purchased product offers for all the products created in customer. IfuseEveryOfferingInAllProductsis false, one purchased product offering will be created for each of the products.- Returns:
- Product offerings to be used for creating purchased product offerings.
-
setProductOfferings
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
useEveryOfferingInAllProductsis set to true, all the product offerings will be used as purchased product offers for all the products created in customer. IfuseEveryOfferingInAllProductsis false, one purchased product offering will be created for each of the products.- Parameters:
offerings- Product offerings to be used for creating purchased product offerings.
-
getProductTypes
String getProductTypes()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.
- Returns:
- productTypes ProductTypes to be used for the products created for the customers.
-
setProductTypes
Setter for productTypes to be used for the products created for the customers.- Parameters:
productTypes- ProductTypes to be used for the products created for the customers.
-
getDestinationDir
String getDestinationDir()Getter for the directory where customer XML files generated by customer file generator will be written.- Returns:
- destinationDir Directory where customer XML files are written
-
setDestinationDir
Setter for the directory where customer XML files generated by customer file generator will be written.- Parameters:
directory- directory where customer XML files generated by customer file generator will be written.
-
getAlterationOfferings
String getAlterationOfferings()Getter for alteration offerings to be used for creating purchased alteration offerings.If
useEveryOfferingInAllProductsis set to true, all the alteration offerings will be used as purchased alteration offers for all the products created in customer. IfuseEveryOfferingInAllProductsis false, one purchased alteration offering will be created for each of the products.- Returns:
- Alteration offers to be used
-
setAlterationOfferings
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
useEveryOfferingInAllProductsis set to true, all the alteration offerings will be used as purchased alteration offers for all the products created in customer. IfuseEveryOfferingInAllProductsis false, one purchased alteration offering will be created for each of the products.- Parameters:
alterationOfferings- Alteration offers to be used
-
getDistributionOfferings
String getDistributionOfferings()Getter for distribution offerings to be used for creating purchased alteration offerings.- Returns:
- Distribution offers to be used
-
setDistributionOfferings
Setter for alteration offerings to be used for creating purchased alteration offerings.- Parameters:
distributionOfferings- Distribution offers to be used
-
getProductRatingProfiles
String getProductRatingProfiles()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.- Returns:
- product level rating profiles to be created for the customer
-
setProductRatingProfiles
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.- Parameters:
productRatingProfiles- product rating profile names
-
getCustomerRatingProfiles
String getCustomerRatingProfiles()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.- Returns:
- Customer level rating profiles
-
setCustomerRatingProfiles
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.- Parameters:
customerRatingProfiles- Customer level rating profiles
-
getNumAuditRevisions
Integer getNumAuditRevisions()Getter for number of audit products to be created.- Returns:
- Number of audit products to be created
-
setNumAuditRevisions
Setter for number of audit products to be created.- Parameters:
numAuditProducts- Number of audit products to be created
-
getValidateXml
Boolean getValidateXml()Getter for flag indicating whether xml files generated should be validated.- Returns:
- Flag indicating whether xml files generated should be validated
-
setValidateXml
Setter for flag indicating whether xml files generated should be validated.- Parameters:
validateXml- Flag indicating whether xml files generated should be validated
-
getBalanceItemsPerBalance
Integer getBalanceItemsPerBalance()Getter for number of balance items to be created per balance.- Returns:
- Number of balance items to be created per balance
-
setBalanceItemsPerBalance
Setter for number of balance items to be created per balance.- Parameters:
balanceItemsPerBalance- Number of balance items to be created per balance
-
getAliasesPerProduct
Integer getAliasesPerProduct()Getter for number of alias names to be created per product.- Returns:
- Number of alias names to be created per product
-
setAliasesPerProduct
Setter for number of alias names to be created per product.- Parameters:
aliasesPerProduct- Number of alias names to be created per product
-
getMultipleBalances
Boolean getMultipleBalances()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- Returns:
- Flag indicating whether single balance should be created for every product
-
setMultipleBalances
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- 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
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.- 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
Boolean getIsTemplateDriven()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.- Returns:
- true if customer generator generates customers as per the customer template provided. False otherwise
-
setCustomerTemplateFile
Sets the customer template file used for the creation of customer xml files.- Parameters:
customerTemplateFile- customer template file
-
getCustomerTemplateFile
String getCustomerTemplateFile()Getter for the template file used for the creation of customer xml files.- Returns:
- customer template file
-
setTxCustomerTemplateFile
Sets the customer template file used for the creation of transaction customer xml files.- Parameters:
txCustomerTemplateFile- customer template file
-
getTxCustomerTemplateFile
String getTxCustomerTemplateFile()Getter for the template file used for the creation of transaction customer xml files.- Returns:
- customer template file
-
setUseEveryOfferingInAllProducts
Sets the flag which indicates whether to create all the product offerings in every product.- Parameters:
useEveryOfferingInAllProducts- True if every product should contain every product offering. False otherwise
-
getUseEveryOfferingInAllProducts
Boolean getUseEveryOfferingInAllProducts()Gets the flag which indicates whether to create all the product offerings in every product.- Returns:
- True if every product should contain every product offering. False otherwise
-
getBalanceElementId
int getBalanceElementId()Getter for the balance element id to be used for the balances.- Returns:
- BalanceElement code
-
setBalanceElementId
void setBalanceElementId(int balanceElementId) Setter for the balance element id to be used for the balance.- Parameters:
balanceElementId- BalanceElement code
-
getExtendedCustomerAttributes
String getExtendedCustomerAttributes()Getter for the extended customer attributes- Returns:
- Extended Attributes list as string
-
setExtendedCustomerAttributes
Setter for the extended customer attributes- Parameters:
extendedAttributes- Extended Attributes list as string
-
getExtendedProductAttributes
String getExtendedProductAttributes()Getter for the extended product attributes- Returns:
- Extended Attributes list as string
-
setExtendedProductAttributes
Setter for the extended product attributes- Parameters:
extendedAttributes- Extended Attributes list as string
-