org.opencrx.kernel.product1.cci2
Interface AbstractPriceLevel

All Superinterfaces:
AbstractFilter, AbstractFilterAccount, AbstractFilterProduct, AlertSender, Auditee, org.openmdx.base.cci2.BasicObject, Cloneable, org.openmdx.base.cci2.ContextCapable, CrxObject, org.openmdx.base.cci2.ExtentCapable, Importer, Indexed, SecureObject, org.openmdx.compatibility.view1.cci2.ViewCapable, XmlExporter
All Known Subinterfaces:
AbstractPriceLevel, PriceLevel, PriceLevel, ProductPhasePriceLevel, ProductPhasePriceLevel
All Known Implementing Classes:
AbstractPriceLevel, PriceLevel, ProductPhasePriceLevel

public interface AbstractPriceLevel
extends AbstractFilterAccount, CrxObject, AbstractFilterProduct

Abstract class AbstractPriceLevel


Nested Class Summary
static interface AbstractPriceLevel.Identity
          Object Identity
 
Method Summary
 void addAssignedAccount(boolean idIsPersistent, String id, AccountAssignment assignedAccount)
          Adds the specified element to the set of the values for the reference assignedAccount.
 void addPriceModifier(boolean idIsPersistent, String id, PriceModifier priceModifier)
          Adds the specified element to the set of the values for the reference priceModifier.
 ProcessPricesResult calculatePrices(Date includeProductsModifiedSince, Short processingMode)
           
 ProcessPricesResult createInitialPrices(Date includeProductsModifiedSince, Uom priceUom, short processingMode)
           
<T extends AccountAssignment>
Collection<T>
getAssignedAccount()
          Retrieves a set containing all the elements for the reference assignedAccount.
 AccountAssignment getAssignedAccount(boolean idIsPersistent, String id)
          Retrieves the value for the reference assignedAccount for the specified qualifier attribute value.
 AbstractPriceLevel getBasedOn()
          Retrieves the value for the reference basedOn.
 String getDescription()
          Retrieves the possibly null value for the optional attribute description.
 String getName()
          Retrieves the value for the attribute name.
 List<Short> getPaymentMethod()
          Retrieves a list containing all the elements for the attribute paymentMethod.
 short getPriceCurrency()
          Retrieves the value for the attribute priceCurrency.
<T extends PriceListEntry>
Collection<T>
getPriceListEntry()
          Retrieves a set containing all the elements for the reference priceListEntry.
 PriceListEntry getPriceListEntry(boolean idIsPersistent, String id)
          Retrieves the value for the reference priceListEntry for the specified qualifier attribute value.
<T extends PriceModifier>
Collection<T>
getPriceModifier()
          Retrieves a set containing all the elements for the reference priceModifier.
 PriceModifier getPriceModifier(boolean idIsPersistent, String id)
          Retrieves the value for the reference priceModifier for the specified qualifier attribute value.
 List<Short> getPriceUsage()
          Retrieves a list containing all the elements for the attribute priceUsage.
 List<Short> getShippingMethod()
          Retrieves a list containing all the elements for the attribute shippingMethod.
 Date getValidFrom()
          Retrieves the possibly null value for the optional attribute validFrom.
 Date getValidTo()
          Retrieves the possibly null value for the optional attribute validTo.
 Boolean isFinal()
          Retrieves the possibly null value for the optional attribute isFinal.
 ProcessPricesResult removePriceLevels(short processingMode)
           
 ProcessPricesResult removePrices(Short processingMode)
           
 void setBasedOn(AbstractPriceLevel basedOn)
          Sets a new value for the reference basedOn.
 void setDescription(String description)
          Sets a new value for the attribute description.
 void setFinal(Boolean isFinal)
          Sets a new value for the attribute isFinal.
 void setName(String name)
          Sets a new value for the attribute name.
 void setPaymentMethod(short... paymentMethod)
          Clears paymentMethod and adds the given value(s).
 void setPriceCurrency(short priceCurrency)
          Sets a new value for the attribute priceCurrency.
 void setPriceUsage(short... priceUsage)
          Clears priceUsage and adds the given value(s).
 void setShippingMethod(short... shippingMethod)
          Clears shippingMethod and adds the given value(s).
 void setValidFrom(Date validFrom)
          Sets a new value for the attribute validFrom.
 void setValidTo(Date validTo)
          Sets a new value for the attribute validTo.
 
Methods inherited from interface org.opencrx.kernel.account1.cci2.AbstractFilterAccount
addAccountFilterProperty, countFilteredAccount, getAccountFilterProperty, getAccountFilterProperty, getFilteredAccount, getFilteredAccount
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
addAdditionalExternalLink, addAttachedDocument, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAdditionalExternalLink, getAttachedDocument, getAttachedDocument, getCategory, getDisabledReason, getExternalLink, getMedia, getMedia, getNote, getNote, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, isDisabled, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, setCategory, setDisabled, setDisabledReason, setExternalLink, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4
 
Methods inherited from interface org.opencrx.kernel.base.cci2.AlertSender
sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Cloneable
clone_
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Importer
importItem
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry, getIndexEntry, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.XmlExporter
exportXml
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AbstractFilterProduct
addProductFilterProperty, countFilteredProduct, getFilteredProduct, getFilteredProduct, getProductFilterProperty, getProductFilterProperty
 

Method Detail

getAssignedAccount

<T extends AccountAssignment> Collection<T> getAssignedAccount()
Retrieves a set containing all the elements for the reference assignedAccount.

Returns:
A set containing all the elements for this reference.

getAssignedAccount

AccountAssignment getAssignedAccount(boolean idIsPersistent,
                                     String id)
Retrieves the value for the reference assignedAccount for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addAssignedAccount

void addAssignedAccount(boolean idIsPersistent,
                        String id,
                        AccountAssignment assignedAccount)
Adds the specified element to the set of the values for the reference assignedAccount.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
assignedAccount - The element to be appended.

getBasedOn

AbstractPriceLevel getBasedOn()
Retrieves the value for the reference basedOn.

Returns:
The – possibly null – value for this reference.

setBasedOn

void setBasedOn(AbstractPriceLevel basedOn)
Sets a new value for the reference basedOn.

Parameters:
basedOn - The non-null new value for this reference.

calculatePrices

ProcessPricesResult calculatePrices(Date includeProductsModifiedSince,
                                    Short processingMode)

createInitialPrices

ProcessPricesResult createInitialPrices(Date includeProductsModifiedSince,
                                        Uom priceUom,
                                        short processingMode)

getDescription

String getDescription()
Retrieves the possibly null value for the optional attribute description.

Returns:
The possibly null value for attribute description.

setDescription

void setDescription(String description)
Sets a new value for the attribute description.

Parameters:
description - The possibly null new value for attribute description.

isFinal

Boolean isFinal()
Retrieves the possibly null value for the optional attribute isFinal.

Returns:
The possibly null value for attribute isFinal.

setFinal

void setFinal(Boolean isFinal)
Sets a new value for the attribute isFinal.

Parameters:
isFinal - The possibly null new value for attribute isFinal.

getName

String getName()
Retrieves the value for the attribute name.

Returns:
The non-null value for attribute name.

setName

void setName(String name)
Sets a new value for the attribute name.

Parameters:
name - The non-null new value for attribute name.

getPaymentMethod

List<Short> getPaymentMethod()
Retrieves a list containing all the elements for the attribute paymentMethod.

Returns:
A list containing all elements for this attribute.

setPaymentMethod

void setPaymentMethod(short... paymentMethod)
Clears paymentMethod and adds the given value(s).

This method is equivalent to

   list.clear();
   for(short e : attributeName){
     list.add(e);
   }
 

Parameters:
paymentMethod - value(s) to be added to paymentMethod

getPriceCurrency

short getPriceCurrency()
Retrieves the value for the attribute priceCurrency.

Returns:
The non-null value for attribute priceCurrency.

setPriceCurrency

void setPriceCurrency(short priceCurrency)
Sets a new value for the attribute priceCurrency.

Parameters:
priceCurrency - The non-null new value for attribute priceCurrency.

getPriceListEntry

<T extends PriceListEntry> Collection<T> getPriceListEntry()
Retrieves a set containing all the elements for the reference priceListEntry.

Returns:
A set containing all the elements for this reference.

getPriceListEntry

PriceListEntry getPriceListEntry(boolean idIsPersistent,
                                 String id)
Retrieves the value for the reference priceListEntry for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getPriceModifier

<T extends PriceModifier> Collection<T> getPriceModifier()
Retrieves a set containing all the elements for the reference priceModifier.

Returns:
A set containing all the elements for this reference.

getPriceModifier

PriceModifier getPriceModifier(boolean idIsPersistent,
                               String id)
Retrieves the value for the reference priceModifier for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addPriceModifier

void addPriceModifier(boolean idIsPersistent,
                      String id,
                      PriceModifier priceModifier)
Adds the specified element to the set of the values for the reference priceModifier.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
priceModifier - The element to be appended.

getPriceUsage

List<Short> getPriceUsage()
Retrieves a list containing all the elements for the attribute priceUsage.

Returns:
A list containing all elements for this attribute.

setPriceUsage

void setPriceUsage(short... priceUsage)
Clears priceUsage and adds the given value(s).

This method is equivalent to

   list.clear();
   for(short e : attributeName){
     list.add(e);
   }
 

Parameters:
priceUsage - value(s) to be added to priceUsage

removePriceLevels

ProcessPricesResult removePriceLevels(short processingMode)

removePrices

ProcessPricesResult removePrices(Short processingMode)

getShippingMethod

List<Short> getShippingMethod()
Retrieves a list containing all the elements for the attribute shippingMethod.

Returns:
A list containing all elements for this attribute.

setShippingMethod

void setShippingMethod(short... shippingMethod)
Clears shippingMethod and adds the given value(s).

This method is equivalent to

   list.clear();
   for(short e : attributeName){
     list.add(e);
   }
 

Parameters:
shippingMethod - value(s) to be added to shippingMethod

getValidFrom

Date getValidFrom()
Retrieves the possibly null value for the optional attribute validFrom.

Returns:
The possibly null value for attribute validFrom.

setValidFrom

void setValidFrom(Date validFrom)
Sets a new value for the attribute validFrom.

Parameters:
validFrom - The possibly null new value for attribute validFrom.

getValidTo

Date getValidTo()
Retrieves the possibly null value for the optional attribute validTo.

Returns:
The possibly null value for attribute validTo.

setValidTo

void setValidTo(Date validTo)
Sets a new value for the attribute validTo.

Parameters:
validTo - The possibly null new value for attribute validTo.


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.