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, registerImplpublic 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.ServiceExceptionpublic 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.ServiceExceptionpublic 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.ServiceExceptionpublic void setConfigurationType(Product product, ProductConfigurationTypeSet configurationTypeSet) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic void unsetConfigurationType(ProductConfigurationSet productConfigurationSet) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic void unsetConfigurationType(ProductConfiguration productConfiguration) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic ProductQuery getFilteredProductQuery(AbstractFilterProduct productFilter, ProductQuery query, boolean forCounting) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic List<PriceListEntry> getPriceListEntries(AbstractPriceLevel priceLevel, boolean applyPriceFilter) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic List<ProductBasePrice> findPrices(Product product, AbstractPriceLevel priceLevel, Uom uom, boolean useBasedOnPriceLevel) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int clonePriceLevel(AbstractPriceLevel priceLevel, Short processingMode, Map<String,org.openmdx.base.marshalling.Marshaller> priceLevelMarshallers) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int clonePriceLevel(PriceLevel priceLevel, Short processingMode, String nameReplacementRegex, String nameReplacementValue, Date validFrom, Date validTo) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int cloneProductPhasePriceLevel(ProductPhasePriceLevel priceLevel, Short processingMode, String nameReplacementRegex, String nameReplacementValue, String productPhaseKey) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic List<AbstractPriceLevel> getDependentPriceLevels(AbstractPriceLevel priceLevel, boolean recursive) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int calculatePrices(AbstractPriceLevel priceLevel, Short processingMode, Date includeProductsModifiedSince) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int calculatePrices(AbstractPriceLevel priceLevel, boolean testOnly, Date includeProductsModifiedSince) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int removePrices(AbstractPriceLevel priceLevel) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int removePrices(AbstractPriceLevel priceLevel, Short processingMode) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int removePriceLevels(AbstractPriceLevel priceLevel, Short processingMode, boolean preDelete) throws org.openmdx.base.exception.ServiceException
priceLevel - processingMode - preDelete - org.openmdx.base.exception.ServiceExceptionpublic int createInitialPrices(AbstractPriceLevel priceLevel, Short processingMode, Uom uom, Date includeProductsCreatedSince) throws org.openmdx.base.exception.ServiceException
priceLevel - processingMode - uom - includeProductsCreatedSince - org.openmdx.base.exception.ServiceExceptionpublic 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.ServiceExceptionpublic boolean hasDependentPriceLevels(AbstractPriceLevel priceLevel) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic void removePriceLevel(AbstractPriceLevel priceLevel, boolean preDelete) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic int countFilteredProduct(AbstractFilterProduct productFilter) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic 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.ServiceExceptionprotected void removeProduct(Product product, boolean preDelete) throws org.openmdx.base.exception.ServiceException
product - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void updateProductBasePrice(ProductBasePrice price) throws org.openmdx.base.exception.ServiceException
price - org.openmdx.base.exception.ServiceExceptionprotected void removeProductBasePrice(ProductBasePrice price, boolean preDelete) throws org.openmdx.base.exception.ServiceException
price - preDelete - org.openmdx.base.exception.ServiceExceptionprotected void updateRelatedProduct(RelatedProduct relatedProduct) throws org.openmdx.base.exception.ServiceException
relatedProduct - org.openmdx.base.exception.ServiceExceptionprotected void removeRelatedProduct(RelatedProduct relatedProduct, boolean preDelete) throws org.openmdx.base.exception.ServiceException
relatedProduct - preDelete - org.openmdx.base.exception.ServiceExceptionpublic void preDelete(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object,
boolean preDelete)
throws org.openmdx.base.exception.ServiceException
AbstractImplpreDelete in class AbstractImplorg.openmdx.base.exception.ServiceExceptionpublic void preStore(org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object)
throws org.openmdx.base.exception.ServiceException
AbstractImplpreStore in class AbstractImplorg.openmdx.base.exception.ServiceExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.