org.opencrx.kernel.contract1.jmi1
Interface AbstractContract

All Superinterfaces:
AbstractContract, AddressContainer, Assignable, DeliveryRequestContainer, DepotReferenceHolder, RefBaseObject, RefFeatured, RefObject, SecureObject, ShippingDetail, TemplateEnabled
All Known Subinterfaces:
Invoice, Lead, Opportunity, Quote, SalesOrder

public interface AbstractContract
extends AbstractContract, Assignable, SecureObject, TemplateEnabled, AddressContainer, DeliveryRequestContainer, ShippingDetail, DepotReferenceHolder

Abstract class AbstractContract


Method Summary
 void addActivity(Activity newValue)
          
 void addActivity(int index, Activity newValue)
          
 void addAddress(ContractAddress newValue)
          
 void addAddress(String id, ContractAddress newValue)
          
 void addCompetitor(Competitor newValue)
          
 void addCompetitor(int index, Competitor newValue)
          
 void addContact(Contact newValue)
          
 void addContact(int index, Contact newValue)
          
 void addDeliveryRequest(DeliveryRequest newValue)
          
 void addDeliveryRequest(String id, DeliveryRequest newValue)
          
 void addDepotReference(DepotReference newValue)
          
 void addDepotReference(String id, DepotReference newValue)
          
 void addOwningGroup(int index, PrincipalGroup newValue)
          
 void addOwningGroup(PrincipalGroup newValue)
          
 void addReplacement(String id, TemplateReplacement newValue)
          
 void addReplacement(TemplateReplacement newValue)
          
<T extends CreatePositionResult>
T
createPosition(CreatePositionParams params)
           
<T extends CreateProductOfferingPositionResult>
T
createProductOfferingPosition(CreateProductOfferingPositionParams params)
           
 org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
          Retrieves the value for the reference accessGrantedByParent.
<T extends ContractAddress>
List<T>
getAddress(ContractAddressQuery query)
          Retrieves the value for the reference address for the specified query.
 Account getBroker()
          Retrieves the value for the reference broker.
 CalculationRule getCalcRule()
          Retrieves the value for the reference calcRule.
 Account getCarrier()
          Retrieves the value for the reference carrier.
 Account getCustomer()
          Retrieves the value for the reference customer.
<T extends DeliveryRequest>
List<T>
getDeliveryRequest(DeliveryRequestQuery query)
          Retrieves the value for the reference deliveryRequest for the specified query.
<T extends DepotReference>
List<T>
getDepotReference(DepotReferenceQuery query)
          Retrieves the value for the reference depotReference for the specified query.
 AbstractContract getOrigin()
          Retrieves the value for the reference origin.
 User getOwningUser()
          Retrieves the value for the reference owningUser.
<T extends PositionModification>
List<T>
getPositionModification(PositionModificationQuery query)
          Retrieves the value for the reference positionModification for the specified query.
 PricingRule getPricingRule()
          Retrieves the value for the reference pricingRule.
<T extends AbstractRemovedPosition>
List<T>
getRemovedPosition(AbstractRemovedPositionQuery query)
          Retrieves the value for the reference removedPosition for the specified query.
<T extends TemplateReplacement>
List<T>
getReplacement(TemplateReplacementQuery query)
          Retrieves the value for the reference replacement for the specified query.
 Account getSalesRep()
          Retrieves the value for the reference salesRep.
 Account getSupplier()
          Retrieves the value for the reference supplier.
 void removeActivity(int index)
          
 void removeAddress(String id)
          
 void removeBroker()
          Removes the value for the optional reference broker.
 void removeCalcRule()
          Removes the value for the optional reference calcRule.
 void removeCompetitor(int index)
          
 void removeContact(int index)
          
 void removeCustomer()
          Removes the value for the optional reference customer.
 void removeDeliveryRequest(String id)
          
 void removeDepotReference(String id)
          
 void removeOrigin()
          Removes the value for the optional reference origin.
 void removeOwningGroup(int index)
          
 void removeOwningUser()
          Removes the value for the optional reference owningUser.
<T extends org.openmdx.base.cci2.Void>
T
removePendingInventoryBookings(org.openmdx.base.cci2.Void params)
           
 void removePricingRule()
          Removes the value for the optional reference pricingRule.
 void removeReplacement(String id)
          
 void removeSalesRep()
          Removes the value for the optional reference salesRep.
 void removeSupplier()
          Removes the value for the optional reference supplier.
<T extends org.openmdx.base.cci2.Void>
T
reprice(org.openmdx.base.cci2.Void params)
           
 void setBroker(Account broker)
          Sets a new value for the reference broker.
 void setCalcRule(CalculationRule calcRule)
          Sets a new value for the reference calcRule.
 void setCarrier(Account carrier)
          Sets a new value for the reference carrier.
 void setCustomer(Account customer)
          Sets a new value for the reference customer.
 void setOrigin(AbstractContract origin)
          Sets a new value for the reference origin.
 void setOwningUser(User owningUser)
          Sets a new value for the reference owningUser.
 void setPricingRule(PricingRule pricingRule)
          Sets a new value for the reference pricingRule.
 void setSalesRep(Account salesRep)
          Sets a new value for the reference salesRep.
 void setSupplier(Account supplier)
          Sets a new value for the reference supplier.
<T extends UpdateInventoryResult>
T
updateInventory(org.openmdx.base.cci2.Void params)
           
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AbstractContract
createPosition, createProductOfferingPosition, getActiveOn, getActivity, getCancelOn, getClosedOn, getCompetitor, getContact, getContractCurrency, getContractLanguage, getContractNumber, getContractState, getDescription, getExpiresOn, getInventoryCb, getName, getPaymentTerms, getPositionModification, getPricingDate, getPricingState, getPriority, getRemovedPosition, getTotalAmount, getTotalAmountIncludingTax, getTotalBaseAmount, getTotalDiscountAmount, getTotalSalesCommission, getTotalTaxAmount, removePendingInventoryBookings, reprice, setActiveOn, setCancelOn, setClosedOn, setContractCurrency, setContractLanguage, setContractNumber, setContractState, setDescription, setExpiresOn, setName, setPaymentTerms, setPricingDate, setPriority, updateInventory
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Assignable
assignToMe
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Assignable
assignToMe
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.SecureObject
addOwningGroup, getOwner, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.TemplateEnabled
applyReplacements, createObject, deleteObject
 
Methods inherited from interface org.opencrx.kernel.base.cci2.TemplateEnabled
applyReplacements, createObject, deleteObject, getReplacement, getTemplateReferenceFilter, isTemplate, setTemplate, setTemplateReferenceFilter
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AddressContainer
getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.DeliveryRequestContainer
getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.ShippingDetail
getGiftMessage, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, isGift, setGift, setGiftMessage, setShippingInstructions, setShippingMethod, setShippingTrackingNumber
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
getDepotReference
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getAccessGrantedByParent

org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
Retrieves the value for the reference accessGrantedByParent.

Specified by:
getAccessGrantedByParent in interface SecureObject
Returns:
The – possibly null – value for this reference.

addOwningGroup

void addOwningGroup(int index,
                    PrincipalGroup newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addOwningGroup

void addOwningGroup(PrincipalGroup newValue)

Parameters:
newValue - The element to be appended.

removeOwningGroup

void removeOwningGroup(int index)


getOwningUser

User getOwningUser()
Retrieves the value for the reference owningUser.

Specified by:
getOwningUser in interface SecureObject
Returns:
The – possibly null – value for this reference.

setOwningUser

void setOwningUser(User owningUser)
Sets a new value for the reference owningUser.

Specified by:
setOwningUser in interface SecureObject
Parameters:
owningUser - The non-null new value for this reference.

removeOwningUser

void removeOwningUser()
Removes the value for the optional reference owningUser.


getReplacement

<T extends TemplateReplacement> List<T> getReplacement(TemplateReplacementQuery query)
Retrieves the value for the reference replacement for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

addReplacement

void addReplacement(String id,
                    TemplateReplacement newValue)

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addReplacement

void addReplacement(TemplateReplacement newValue)

Parameters:
newValue - The element to be appended.

removeReplacement

void removeReplacement(String id)


addActivity

void addActivity(int index,
                 Activity newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addActivity

void addActivity(Activity newValue)

Parameters:
newValue - The element to be appended.

removeActivity

void removeActivity(int index)


getBroker

Account getBroker()
Retrieves the value for the reference broker.

Specified by:
getBroker in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setBroker

void setBroker(Account broker)
Sets a new value for the reference broker.

Specified by:
setBroker in interface AbstractContract
Parameters:
broker - The non-null new value for this reference.

removeBroker

void removeBroker()
Removes the value for the optional reference broker.


getCalcRule

CalculationRule getCalcRule()
Retrieves the value for the reference calcRule.

Specified by:
getCalcRule in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setCalcRule

void setCalcRule(CalculationRule calcRule)
Sets a new value for the reference calcRule.

Specified by:
setCalcRule in interface AbstractContract
Parameters:
calcRule - The non-null new value for this reference.

removeCalcRule

void removeCalcRule()
Removes the value for the optional reference calcRule.


addCompetitor

void addCompetitor(int index,
                   Competitor newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addCompetitor

void addCompetitor(Competitor newValue)

Parameters:
newValue - The element to be appended.

removeCompetitor

void removeCompetitor(int index)


addContact

void addContact(int index,
                Contact newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addContact

void addContact(Contact newValue)

Parameters:
newValue - The element to be appended.

removeContact

void removeContact(int index)


createPosition

<T extends CreatePositionResult> T createPosition(CreatePositionParams params)
                                              throws RefException
Throws:
RefException

createProductOfferingPosition

<T extends CreateProductOfferingPositionResult> T createProductOfferingPosition(CreateProductOfferingPositionParams params)
                                                                            throws RefException
Throws:
RefException

getCustomer

Account getCustomer()
Retrieves the value for the reference customer.

Specified by:
getCustomer in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setCustomer

void setCustomer(Account customer)
Sets a new value for the reference customer.

Specified by:
setCustomer in interface AbstractContract
Parameters:
customer - The non-null new value for this reference.

removeCustomer

void removeCustomer()
Removes the value for the optional reference customer.


getOrigin

AbstractContract getOrigin()
Retrieves the value for the reference origin.

Specified by:
getOrigin in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setOrigin

void setOrigin(AbstractContract origin)
Sets a new value for the reference origin.

Specified by:
setOrigin in interface AbstractContract
Parameters:
origin - The non-null new value for this reference.

removeOrigin

void removeOrigin()
Removes the value for the optional reference origin.


getPositionModification

<T extends PositionModification> List<T> getPositionModification(PositionModificationQuery query)
Retrieves the value for the reference positionModification for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getPricingRule

PricingRule getPricingRule()
Retrieves the value for the reference pricingRule.

Specified by:
getPricingRule in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setPricingRule

void setPricingRule(PricingRule pricingRule)
Sets a new value for the reference pricingRule.

Specified by:
setPricingRule in interface AbstractContract
Parameters:
pricingRule - The non-null new value for this reference.

removePricingRule

void removePricingRule()
Removes the value for the optional reference pricingRule.


removePendingInventoryBookings

<T extends org.openmdx.base.cci2.Void> T removePendingInventoryBookings(org.openmdx.base.cci2.Void params)
                                                                    throws RefException
Throws:
RefException

getRemovedPosition

<T extends AbstractRemovedPosition> List<T> getRemovedPosition(AbstractRemovedPositionQuery query)
Retrieves the value for the reference removedPosition for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

reprice

<T extends org.openmdx.base.cci2.Void> T reprice(org.openmdx.base.cci2.Void params)
                                             throws RefException
Throws:
RefException

getSalesRep

Account getSalesRep()
Retrieves the value for the reference salesRep.

Specified by:
getSalesRep in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setSalesRep

void setSalesRep(Account salesRep)
Sets a new value for the reference salesRep.

Specified by:
setSalesRep in interface AbstractContract
Parameters:
salesRep - The non-null new value for this reference.

removeSalesRep

void removeSalesRep()
Removes the value for the optional reference salesRep.


getSupplier

Account getSupplier()
Retrieves the value for the reference supplier.

Specified by:
getSupplier in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setSupplier

void setSupplier(Account supplier)
Sets a new value for the reference supplier.

Specified by:
setSupplier in interface AbstractContract
Parameters:
supplier - The non-null new value for this reference.

removeSupplier

void removeSupplier()
Removes the value for the optional reference supplier.


updateInventory

<T extends UpdateInventoryResult> T updateInventory(org.openmdx.base.cci2.Void params)
                                                throws RefException
Throws:
RefException

getAddress

<T extends ContractAddress> List<T> getAddress(ContractAddressQuery query)
Retrieves the value for the reference address for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

addAddress

void addAddress(String id,
                ContractAddress newValue)

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addAddress

void addAddress(ContractAddress newValue)

Parameters:
newValue - The element to be appended.

removeAddress

void removeAddress(String id)


getDeliveryRequest

<T extends DeliveryRequest> List<T> getDeliveryRequest(DeliveryRequestQuery query)
Retrieves the value for the reference deliveryRequest for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

addDeliveryRequest

void addDeliveryRequest(String id,
                        DeliveryRequest newValue)

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addDeliveryRequest

void addDeliveryRequest(DeliveryRequest newValue)

Parameters:
newValue - The element to be appended.

removeDeliveryRequest

void removeDeliveryRequest(String id)


getCarrier

Account getCarrier()
Retrieves the value for the reference carrier.

Specified by:
getCarrier in interface ShippingDetail
Returns:
The non-null value for this reference.

setCarrier

void setCarrier(Account carrier)
Sets a new value for the reference carrier.

Specified by:
setCarrier in interface ShippingDetail
Parameters:
carrier - The non-null new value for this reference.

getDepotReference

<T extends DepotReference> List<T> getDepotReference(DepotReferenceQuery query)
Retrieves the value for the reference depotReference for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

addDepotReference

void addDepotReference(String id,
                       DepotReference newValue)

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addDepotReference

void addDepotReference(DepotReference newValue)

Parameters:
newValue - The element to be appended.

removeDepotReference

void removeDepotReference(String id)



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