Class | Description |
---|---|
AddressTransformer |
Convert an
Address Object to String |
AmountTransformer |
Converts a null to an Empty Amount Object if
AmountTransformer.nullToAmount is true; also converts any Number/Amount.total value to Amount
and sets it in the Amount.setTotal(Double) (default else if AmountTransformer.amountPropertyField is specified then that is set) |
AreaPersistTransformer<A extends Area> |
Persist Area and return the Persisted Entity
|
BastardProductFilter<P extends Product> |
During ETL it is possible that a USER may apply an UPDATE instead on an INSERT on some records
This can technically lead to a product not updating or deriving parent info if parent info is not updated during Updates and gives rise to Bastard Products (ones without any parents) The default implementation of this Filter simply rejects any such records to ensure they don't get into the system. |
DeriveContactFromOrderTransformer |
Transformer wrapper over Utils.deriveUserContacts(com.neurosys.ecom.orders.domain.Order, String, java.util.Map) .It acccepts an Order as input and returns a String. |
ExcelRowToAreaTransformer<A extends AreaType> | |
ExcelRowToEcomProductTransformer<P extends Product> | |
ExistingAreaLookup<T extends Area> |
Check to see if a
Area already exists, and if so load it based on various other settings provided by this class. |
ExistingProductLookup<T extends Product> |
Check to see if a
Product already exists, and if so load it based on various other settings provided by this class. |
FileToProductLookup<P extends Product> | |
FileToProductsTransformer<P extends Product> |
Allow to update an existing Entitie(s) i.e.
|
ModeAwareProductPersistTransformer<P extends Product> |
Persist a Product/Product(s) and return the Persisted Entity
|
OrderToMapTransformer | |
OrderURLGeneratorTransformer<O extends Order> |
A
Transformer that accepts Order and produces a Payment Link for it.This class does not validate if the link will result in a success if the user clicks it, that depends on App logic like the State of the Order etc thats usually present in an OrderChangeListener or ChangeListener hooked to ChangeGenerator.setListeners(java.util.List)
Note: A more secure version using a SALT can override this Class. |
ProductCategoryLookup<P extends Product> | |
ProductNameTransformer<T extends Product> |
Product Name has some restrictions like being unique etc, it cannot be always what is supplied raw; so it is combines with the
Product.getProductCode()
to ensure it is unique. |
ProductPersistTransformer<P extends Product> |
Persist a Product/Product(s) and return the Persisted Entity
|
SequenceSubOrderTransformer<S extends SubOrder> |
For a
SubOrder that has a root, we need to determine its previous position and persist that. |
UserFormTransformer<U extends IGenericEcomUser,UA extends UserAttribute> |
A
Transformer that takes in a Map |
UserToJson<U extends IGenericEcomUser> |
Marshal
IGenericEcomUser to JSON
TODO: Add unit test case |
Copyright © 2018. All rights reserved.