public class Products extends AbstractImpl
Modifier and Type | Class and Description |
---|---|
class |
Products.PriceLevelMarshaller |
class |
Products.ProductPhasePriceLevelMarshaller |
Modifier and Type | Field and Description |
---|---|
static int |
BATCHING_MODE_SIZE |
static String |
PRICING_RULE_DESCRIPTION_LOWEST_PRICE |
static String |
PRICING_RULE_GET_PRICE_LEVEL_SCRIPT_LOWEST_PRICE |
static String |
PRICING_RULE_NAME_LOWEST_PRICE |
static short |
PROCESSING_MODE_CLONE_PRICELEVEL_INCLUDE_PRICES |
static short |
PROCESSING_MODE_CLONE_PRICELEVEL_NO_PRICES |
static short |
PROCESSING_MODE_NA |
static short |
PROCESSING_MODE_PROCESS |
static short |
PROCESSING_MODE_PROCESS_INCLUDE_DEPENDENT |
static short |
PROCESSING_MODE_TEST |
static short |
STATUS_CODE_ERROR |
static short |
STATUS_CODE_OK |
Modifier | Constructor and Description |
---|---|
protected |
Products() |
Modifier and Type | Method and Description |
---|---|
int |
calculatePrices(AbstractPriceLevel priceLevel,
boolean testOnly,
Date includeProductsModifiedSince) |
int |
calculatePrices(AbstractPriceLevel priceLevel,
Short processingMode,
Date includeProductsModifiedSince) |
int |
clonePriceLevel(AbstractPriceLevel priceLevel,
Short processingMode,
Map<String,org.openmdx.base.marshalling.Marshaller> priceLevelMarshallers) |
int |
clonePriceLevel(PriceLevel priceLevel,
Short processingMode,
String nameReplacementRegex,
String nameReplacementValue,
Date validFrom,
Date validTo) |
int |
cloneProductConfigurationSet(ProductConfigurationSet from,
SalesContractPosition to,
boolean cloneDefaultOnly,
boolean updateCurrentConfig,
User owningUser,
List<PrincipalGroup> owningGroup)
Clone ProductConfigurations stored under fromIdentity to toIdentity.
|
int |
cloneProductPhasePriceLevel(ProductPhasePriceLevel priceLevel,
Short processingMode,
String nameReplacementRegex,
String nameReplacementValue,
String productPhaseKey) |
int |
countFilteredProduct(AbstractFilterProduct productFilter) |
int |
createInitialPrices(AbstractPriceLevel priceLevel,
Short processingMode,
Uom uom,
Date includeProductsCreatedSince)
Create initial prices for price level.
|
List<ProductBasePrice> |
findPrices(Product product,
AbstractPriceLevel priceLevel,
Uom uom,
boolean useBasedOnPriceLevel) |
PricingRule |
findPricingRule(String name,
Segment segment)
Find pricing rule.
|
PricingRule |
findPricingRule(String name,
Segment segment,
javax.jdo.PersistenceManager pm)
Deprecated.
|
protected PricingRule |
getDefaultPricingRule(Segment productSegment) |
List<AbstractPriceLevel> |
getDependentPriceLevels(AbstractPriceLevel priceLevel,
boolean recursive) |
ProductQuery |
getFilteredProductQuery(AbstractFilterProduct productFilter,
ProductQuery query,
boolean forCounting) |
static Products |
getInstance() |
static GetPriceLevelResult |
getLowestPricePriceLevel(org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 rootPkg,
PricingRule pricingRule,
AbstractContract contract,
AbstractProduct product,
Uom priceUom,
BigDecimal quantity,
Date pricingDate) |
GetPriceLevelResult |
getPriceLevel(PricingRule pricingRule,
AbstractContract contract,
AbstractProduct product,
Uom priceUom,
BigDecimal quantity,
Date pricingDate)
Get price level for given product and context.
|
List<PriceListEntry> |
getPriceListEntries(AbstractPriceLevel priceLevel,
boolean applyPriceFilter) |
Segment |
getProductSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName) |
boolean |
hasDependentPriceLevels(AbstractPriceLevel priceLevel) |
PricingRule |
initPricingRule(String pricingRuleName,
String description,
String getPriceLevelScript,
javax.jdo.PersistenceManager pm,
String providerName,
String segmentName) |
void |
preDelete(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object,
boolean preDelete)
Pre-delete callback.
|
void |
preStore(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object)
Pre-store callback.
|
static void |
register() |
void |
removePriceLevel(AbstractPriceLevel priceLevel,
boolean preDelete) |
int |
removePriceLevels(AbstractPriceLevel priceLevel,
Short processingMode,
boolean preDelete)
Remove price levels.
|
int |
removePrices(AbstractPriceLevel priceLevel) |
int |
removePrices(AbstractPriceLevel priceLevel,
Short processingMode) |
protected void |
removeProduct(Product product,
boolean preDelete)
Remove product callback.
|
protected void |
removeProductBasePrice(ProductBasePrice price,
boolean preDelete)
Remove product base price callback.
|
protected void |
removeRelatedProduct(RelatedProduct relatedProduct,
boolean preDelete)
Remove related product callback.
|
void |
setConfigurationType(Product product,
ProductConfigurationTypeSet configurationTypeSet) |
void |
unsetConfigurationType(ProductConfiguration productConfiguration) |
void |
unsetConfigurationType(ProductConfigurationSet productConfigurationSet) |
protected void |
updateProduct(Product product)
Update product callback.
|
protected void |
updateProductBasePrice(ProductBasePrice price)
Update product base price callback.
|
protected void |
updateRelatedProduct(RelatedProduct relatedProduct)
Update related product callback.
|
getInstance, getUidAsString, registerImpl
public static final int BATCHING_MODE_SIZE
public static final short PROCESSING_MODE_NA
public static final short PROCESSING_MODE_TEST
public static final short PROCESSING_MODE_PROCESS
public static final short PROCESSING_MODE_PROCESS_INCLUDE_DEPENDENT
public static final short PROCESSING_MODE_CLONE_PRICELEVEL_INCLUDE_PRICES
public static final short PROCESSING_MODE_CLONE_PRICELEVEL_NO_PRICES
public static final short STATUS_CODE_OK
public static final short STATUS_CODE_ERROR
public static final String PRICING_RULE_NAME_LOWEST_PRICE
public static final String PRICING_RULE_DESCRIPTION_LOWEST_PRICE
public static final String PRICING_RULE_GET_PRICE_LEVEL_SCRIPT_LOWEST_PRICE
public static void register()
public static Products getInstance() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public PricingRule findPricingRule(String name, Segment segment, javax.jdo.PersistenceManager pm)
name
- segment
- pm
- public PricingRule findPricingRule(String name, Segment segment)
name
- segment
- protected PricingRule getDefaultPricingRule(Segment productSegment) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public Segment getProductSegment(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
public PricingRule initPricingRule(String pricingRuleName, String description, String getPriceLevelScript, javax.jdo.PersistenceManager pm, String providerName, String segmentName)
public int cloneProductConfigurationSet(ProductConfigurationSet from, SalesContractPosition to, boolean cloneDefaultOnly, boolean updateCurrentConfig, User owningUser, List<PrincipalGroup> owningGroup) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void setConfigurationType(Product product, ProductConfigurationTypeSet configurationTypeSet) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void unsetConfigurationType(ProductConfigurationSet productConfigurationSet) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void unsetConfigurationType(ProductConfiguration productConfiguration) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public ProductQuery getFilteredProductQuery(AbstractFilterProduct productFilter, ProductQuery query, boolean forCounting) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public List<PriceListEntry> getPriceListEntries(AbstractPriceLevel priceLevel, boolean applyPriceFilter) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public List<ProductBasePrice> findPrices(Product product, AbstractPriceLevel priceLevel, Uom uom, boolean useBasedOnPriceLevel) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int clonePriceLevel(AbstractPriceLevel priceLevel, Short processingMode, Map<String,org.openmdx.base.marshalling.Marshaller> priceLevelMarshallers) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int clonePriceLevel(PriceLevel priceLevel, Short processingMode, String nameReplacementRegex, String nameReplacementValue, Date validFrom, Date validTo) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int cloneProductPhasePriceLevel(ProductPhasePriceLevel priceLevel, Short processingMode, String nameReplacementRegex, String nameReplacementValue, String productPhaseKey) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public List<AbstractPriceLevel> getDependentPriceLevels(AbstractPriceLevel priceLevel, boolean recursive) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int calculatePrices(AbstractPriceLevel priceLevel, Short processingMode, Date includeProductsModifiedSince) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int calculatePrices(AbstractPriceLevel priceLevel, boolean testOnly, Date includeProductsModifiedSince) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int removePrices(AbstractPriceLevel priceLevel) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int removePrices(AbstractPriceLevel priceLevel, Short processingMode) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int removePriceLevels(AbstractPriceLevel priceLevel, Short processingMode, boolean preDelete) throws org.openmdx.base.exception.ServiceException
priceLevel
- processingMode
- preDelete
- org.openmdx.base.exception.ServiceException
public int createInitialPrices(AbstractPriceLevel priceLevel, Short processingMode, Uom uom, Date includeProductsCreatedSince) throws org.openmdx.base.exception.ServiceException
priceLevel
- processingMode
- uom
- includeProductsCreatedSince
- org.openmdx.base.exception.ServiceException
public GetPriceLevelResult getPriceLevel(PricingRule pricingRule, AbstractContract contract, AbstractProduct product, Uom priceUom, BigDecimal quantity, Date pricingDate) throws org.openmdx.base.exception.ServiceException
pricingRule
- contract
- product
- priceUom
- quantity
- pricingDate
- org.openmdx.base.exception.ServiceException
public boolean hasDependentPriceLevels(AbstractPriceLevel priceLevel) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void removePriceLevel(AbstractPriceLevel priceLevel, boolean preDelete) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int countFilteredProduct(AbstractFilterProduct productFilter) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public static GetPriceLevelResult getLowestPricePriceLevel(org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 rootPkg, PricingRule pricingRule, AbstractContract contract, AbstractProduct product, Uom priceUom, BigDecimal quantity, Date pricingDate)
protected void updateProduct(Product product) throws org.openmdx.base.exception.ServiceException
product
- org.openmdx.base.exception.ServiceException
protected void removeProduct(Product product, boolean preDelete) throws org.openmdx.base.exception.ServiceException
product
- preDelete
- org.openmdx.base.exception.ServiceException
protected void updateProductBasePrice(ProductBasePrice price) throws org.openmdx.base.exception.ServiceException
price
- org.openmdx.base.exception.ServiceException
protected void removeProductBasePrice(ProductBasePrice price, boolean preDelete) throws org.openmdx.base.exception.ServiceException
price
- preDelete
- org.openmdx.base.exception.ServiceException
protected void updateRelatedProduct(RelatedProduct relatedProduct) throws org.openmdx.base.exception.ServiceException
relatedProduct
- org.openmdx.base.exception.ServiceException
protected void removeRelatedProduct(RelatedProduct relatedProduct, boolean preDelete) throws org.openmdx.base.exception.ServiceException
relatedProduct
- preDelete
- org.openmdx.base.exception.ServiceException
public void preDelete(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object, boolean preDelete) throws org.openmdx.base.exception.ServiceException
AbstractImpl
preDelete
in class AbstractImpl
org.openmdx.base.exception.ServiceException
public void preStore(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object) throws org.openmdx.base.exception.ServiceException
AbstractImpl
preStore
in class AbstractImpl
org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.