org.opencrx.kernel.contract1.jpa3
Class Opportunity

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jpa3.AbstractObject
          extended by org.opencrx.kernel.contract1.jpa3.AbstractContract
              extended by org.opencrx.kernel.contract1.jpa3.Opportunity
All Implemented Interfaces:
Serializable, AlertSender, Assignable, Auditee, Cloneable, Exporter, Importer, Indexed, SecureObject, AbstractContract, AddressContainer, DeliveryRequestContainer, Opportunity, ShippingDetail, DepotReferenceHolder, CrxObject, AspectCapable, BasicObject, ContextCapable, Creatable, ExtentCapable, Modifiable

public class Opportunity
extends AbstractContract
implements Opportunity

Class Opportunity

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.w3c.jpa3.AbstractObject
org.w3c.jpa3.AbstractObject.EmbeddedList<E>, org.w3c.jpa3.AbstractObject.EmbeddedSet<E>, org.w3c.jpa3.AbstractObject.Slice
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.contract1.cci2.Opportunity
Opportunity.Identity
 
Field Summary
static List<String> BASE_CLASS
          Define this class as base class
static List<String> CLASS
          Define the model class org::opencrx::kernel::contract1::Opportunity
 
Fields inherited from class org.opencrx.kernel.contract1.jpa3.AbstractContract
openmdxjdoIdentity
 
Constructor Summary
Opportunity()
          Constructor
 
Method Summary
 ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
           
 Void assignToMe()
           
 CheckPermissionsResult checkPermissions(CheckPermissionsParams in)
           
 CloneResult clone_(CloneParams in)
           
 CreatePositionResult createPosition(CreatePositionParams in)
           
 OpportunityCreateQuoteResult createQuote()
           
 ExportItemResult exportItem(ExportItemParams in)
           
 ExportItemResult exportItemAdvanced(ExportItemAdvancedParams in)
           
 Short getCloseProbability()
          Retrieves the possibly null value for the optional attribute closeProbability.
 Date getEstimatedCloseDate()
          Retrieves the possibly null value for the optional attribute estimatedCloseDate.
 BigDecimal getEstimatedValue()
          Retrieves the possibly null value for the optional attribute estimatedValue.
 String getNextStep()
          Retrieves the possibly null value for the optional attribute nextStep.
 short getOpportunityRating()
          Retrieves the value for the attribute opportunityRating.
 short getOpportunitySource()
          Retrieves the value for the attribute opportunitySource.
<T extends AbstractOpportunityPosition>
OpportunityHasOpportunityPosition.Position<T>
getPosition()
          Retrieves a set containing all the elements for the reference position.
 List<String> getQuote_Id()
           
<T extends Quote>
List<T>
getQuote()
          Retrieves the Collection of objects referenced by quote.
 ImportResult importItem(ImportParams in)
           
 Void markAsClosed(OpportunityMarkAsClosedParams in)
           
protected  org.w3c.jpa3.AbstractObject.Slice newOpportunity$Slice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
 ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams in)
           
 ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams in)
           
 Void removePendingInventoryBookings()
           
 ModifySecureObjectResult replaceOwningGroup(ModifyOwningGroupsParams in)
           
 Void reprice()
           
 Void sendAlert(SendAlertParams in)
           
 ModifySecureObjectResult setAccessLevel(SetAccessLevelParams in)
           
 void setCloseProbability(Short closeProbability)
          Sets a new value for the attribute closeProbability.
 void setEstimatedCloseDate(Date estimatedCloseDate)
          Sets a new value for the attribute estimatedCloseDate.
 void setEstimatedValue(BigDecimal estimatedValue)
          Sets a new value for the attribute estimatedValue.
 void setNextStep(String nextStep)
          Sets a new value for the attribute nextStep.
 void setOpportunityRating(short opportunityRating)
          Sets a new value for the attribute opportunityRating.
 void setOpportunitySource(short opportunitySource)
          Sets a new value for the attribute opportunitySource.
 ModifySecureObjectResult setOwningUser(SetOwningUserParams in)
           
 void setSegment_Id(String segment)
           
 void setSegment(Segment segment)
          Sets a new value for the reference segment.
 UpdateIndexResult updateIndex()
           
 UpdateInventoryResult updateInventory()
           
 
Methods inherited from class org.opencrx.kernel.contract1.jpa3.AbstractContract
getAccessGrantedByParent_Id, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getActiveOn, getActivity_Id, getActivity, getAdditionalExternalLink, getAddress, getAssignedAccount, getAttachedDocument, getAudit, getBroker_Id, getBroker, getCalcRule_Id, getCalcRule, getCancelOn, getCarrier_Id, getCarrier, getCategory, getClosedOn, getCompetitor_Id, getCompetitor, getContact_Id, getContact, getContext, getContractCurrency, getContractLanguage, getContractNumber, getContractState, getCreatedAt, getCreatedBy, getCustomer_Id, getCustomer, getDeliveryRequest, getDepotReference, getDescription, getDisabledReason, getDocumentFolderAssignment, getExpiresOn, getExternalLink, getGiftMessage, getIdentity, getIndexEntry, getInventoryCb_Id, getInventoryCb, getLinkFrom, getLinkTo, getMedia, getModifiedAt, getModifiedBy, getName, getNote, getOrigin_Id, getOrigin, getOwner, getOwningGroup_Id, getOwningGroup, getOwningUser_Id, getOwningUser, getPaymentTerms, getPositionModification, getPricingDate, getPricingRule_Id, getPricingRule, getPricingState, getPriority, getPropertySet, getPropertySetEntry, getRating, getRemovedPosition, getSalesRep_Id, getSalesRep, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, getSupplier_Id, getSupplier, getTotalAmount, getTotalAmountIncludingTax, getTotalBaseAmount, getTotalDiscountAmount, getTotalSalesCommission, getTotalTaxAmount, 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, isGift, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, newAbstractContract$Slice, openmdxjdoGetObjectId, openmdxjdoGetSlices, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setActiveOn, setBroker_Id, setBroker, setCalcRule_Id, setCalcRule, setCancelOn, setCarrier_Id, setCarrier, setCategory, setClosedOn, setContractCurrency, setContractLanguage, setContractNumber, setContractState, setCustomer_Id, setCustomer, setDescription, setDisabled, setDisabledReason, setExpiresOn, setExternalLink, setGift, setGiftMessage, setName, setOrigin_Id, setOrigin, setOwningUser_Id, setOwningUser, setPaymentTerms, setPricingDate, setPricingRule_Id, setPricingRule, setPriority, setSalesRep_Id, setSalesRep, setShippingInstructions, setShippingMethod, setShippingTrackingNumber, setSupplier_Id, setSupplier, 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 class org.w3c.jpa3.AbstractObject
openmdxjdoClassName, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
jdoClass, modelClasses, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AbstractContract
getActiveOn, getActivity, getAssignedAccount, getBroker, getCalcRule, getCancelOn, getClosedOn, getCompetitor, getContact, getContractCurrency, getContractLanguage, getContractNumber, getContractState, getCustomer, getDescription, getExpiresOn, getInventoryCb, getLinkFrom, getLinkTo, getName, getOrigin, getPaymentTerms, getPositionModification, getPricingDate, getPricingRule, getPricingState, getPriority, getRemovedPosition, getSalesRep, getSupplier, getTotalAmount, getTotalAmountIncludingTax, getTotalBaseAmount, getTotalDiscountAmount, getTotalSalesCommission, getTotalTaxAmount, setActiveOn, setBroker, setCalcRule, setCancelOn, setClosedOn, setContractCurrency, setContractLanguage, setContractNumber, setContractState, setCustomer, setDescription, setExpiresOn, setName, setOrigin, setPaymentTerms, setPricingDate, setPricingRule, setPriority, setSalesRep, setSupplier
 
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
getCarrier, getGiftMessage, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, isGift, setCarrier, setGift, setGiftMessage, setShippingInstructions, setShippingMethod, setShippingTrackingNumber
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
getDepotReference
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
getAdditionalExternalLink, getAttachedDocument, getCategory, getDisabledReason, getDocumentFolderAssignment, getExternalLink, getMedia, getNote, getPropertySet, getPropertySetEntry, 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.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
Methods inherited from interface org.openmdx.base.cci2.Creatable
getCreatedAt, getCreatedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.base.cci2.Modifiable
getModifiedAt, getModifiedBy
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::contract1::Opportunity


BASE_CLASS

public static final List<String> BASE_CLASS
Define this class as base class

See Also:
Opportunity.CLASS
Constructor Detail

Opportunity

public Opportunity()
Constructor

Method Detail

updateInventory

public UpdateInventoryResult updateInventory()
Specified by:
updateInventory in interface AbstractContract
Overrides:
updateInventory in class AbstractContract

removeAllOwningGroup

public ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams in)
Specified by:
removeAllOwningGroup in interface SecureObject
Overrides:
removeAllOwningGroup in class AbstractContract

setOwningUser

public ModifySecureObjectResult setOwningUser(SetOwningUserParams in)
Specified by:
setOwningUser in interface SecureObject
Overrides:
setOwningUser in class AbstractContract

clone_

public CloneResult clone_(CloneParams in)
Specified by:
clone_ in interface Cloneable
Overrides:
clone_ in class AbstractContract

addOwningGroup

public ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
Specified by:
addOwningGroup in interface SecureObject
Overrides:
addOwningGroup in class AbstractContract

setAccessLevel

public ModifySecureObjectResult setAccessLevel(SetAccessLevelParams in)
Specified by:
setAccessLevel in interface SecureObject
Overrides:
setAccessLevel in class AbstractContract

replaceOwningGroup

public ModifySecureObjectResult replaceOwningGroup(ModifyOwningGroupsParams in)
Specified by:
replaceOwningGroup in interface SecureObject
Overrides:
replaceOwningGroup in class AbstractContract

getPosition

public <T extends AbstractOpportunityPosition> OpportunityHasOpportunityPosition.Position<T> getPosition()
Retrieves a set containing all the elements for the reference position.

Specified by:
getPosition in interface Opportunity
Returns:
A set containing all the elements for this reference.

assignToMe

public Void assignToMe()
Specified by:
assignToMe in interface Assignable
Overrides:
assignToMe in class AbstractContract

getEstimatedCloseDate

public final Date getEstimatedCloseDate()
Retrieves the possibly null value for the optional attribute estimatedCloseDate.

Specified by:
getEstimatedCloseDate in interface Opportunity
Returns:
The possibly null value for attribute estimatedCloseDate.

setEstimatedCloseDate

public void setEstimatedCloseDate(Date estimatedCloseDate)
Sets a new value for the attribute estimatedCloseDate.

Specified by:
setEstimatedCloseDate in interface Opportunity
Parameters:
estimatedCloseDate - The possibly null new value for attribute estimatedCloseDate.

updateIndex

public UpdateIndexResult updateIndex()
Specified by:
updateIndex in interface Indexed
Overrides:
updateIndex in class AbstractContract

createQuote

public OpportunityCreateQuoteResult createQuote()
Specified by:
createQuote in interface Opportunity

exportItem

public ExportItemResult exportItem(ExportItemParams in)
Specified by:
exportItem in interface Exporter
Overrides:
exportItem in class AbstractContract

removePendingInventoryBookings

public Void removePendingInventoryBookings()
Specified by:
removePendingInventoryBookings in interface AbstractContract
Overrides:
removePendingInventoryBookings in class AbstractContract

getEstimatedValue

public final BigDecimal getEstimatedValue()
Retrieves the possibly null value for the optional attribute estimatedValue.

Specified by:
getEstimatedValue in interface Opportunity
Returns:
The possibly null value for attribute estimatedValue.

setEstimatedValue

public void setEstimatedValue(BigDecimal estimatedValue)
Sets a new value for the attribute estimatedValue.

Specified by:
setEstimatedValue in interface Opportunity
Parameters:
estimatedValue - The possibly null new value for attribute estimatedValue.

importItem

public ImportResult importItem(ImportParams in)
Specified by:
importItem in interface Importer
Overrides:
importItem in class AbstractContract

removeOwningGroup

public ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams in)
Specified by:
removeOwningGroup in interface SecureObject
Overrides:
removeOwningGroup in class AbstractContract

markAsClosed

public Void markAsClosed(OpportunityMarkAsClosedParams in)
Specified by:
markAsClosed in interface Opportunity

getNextStep

public final String getNextStep()
Retrieves the possibly null value for the optional attribute nextStep.

Specified by:
getNextStep in interface Opportunity
Returns:
The possibly null value for attribute nextStep.

setNextStep

public void setNextStep(String nextStep)
Sets a new value for the attribute nextStep.

Specified by:
setNextStep in interface Opportunity
Parameters:
nextStep - The possibly null new value for attribute nextStep.

getQuote

public <T extends Quote> List<T> getQuote()
Retrieves the Collection of objects referenced by quote.

Specified by:
getQuote in interface Opportunity
Returns:
The Collection of referenced objects.

getQuote_Id

public List<String> getQuote_Id()

getOpportunitySource

public short getOpportunitySource()
Retrieves the value for the attribute opportunitySource.

Specified by:
getOpportunitySource in interface Opportunity
Returns:
The non-null value for attribute opportunitySource.

setOpportunitySource

public void setOpportunitySource(short opportunitySource)
Sets a new value for the attribute opportunitySource.

Specified by:
setOpportunitySource in interface Opportunity
Parameters:
opportunitySource - The non-null new value for attribute opportunitySource.

getOpportunityRating

public short getOpportunityRating()
Retrieves the value for the attribute opportunityRating.

Specified by:
getOpportunityRating in interface Opportunity
Returns:
The non-null value for attribute opportunityRating.

setOpportunityRating

public void setOpportunityRating(short opportunityRating)
Sets a new value for the attribute opportunityRating.

Specified by:
setOpportunityRating in interface Opportunity
Parameters:
opportunityRating - The non-null new value for attribute opportunityRating.

exportItemAdvanced

public ExportItemResult exportItemAdvanced(ExportItemAdvancedParams in)
Specified by:
exportItemAdvanced in interface Exporter
Overrides:
exportItemAdvanced in class AbstractContract

checkPermissions

public CheckPermissionsResult checkPermissions(CheckPermissionsParams in)
Specified by:
checkPermissions in interface SecureObject
Overrides:
checkPermissions in class AbstractContract

getCloseProbability

public final Short getCloseProbability()
Retrieves the possibly null value for the optional attribute closeProbability.

Specified by:
getCloseProbability in interface Opportunity
Returns:
The possibly null value for attribute closeProbability.

setCloseProbability

public void setCloseProbability(Short closeProbability)
Sets a new value for the attribute closeProbability.

Specified by:
setCloseProbability in interface Opportunity
Parameters:
closeProbability - The possibly null new value for attribute closeProbability.

createPosition

public CreatePositionResult createPosition(CreatePositionParams in)
Specified by:
createPosition in interface AbstractContract
Overrides:
createPosition in class AbstractContract

reprice

public Void reprice()
Specified by:
reprice in interface AbstractContract
Overrides:
reprice in class AbstractContract

sendAlert

public Void sendAlert(SendAlertParams in)
Specified by:
sendAlert in interface AlertSender
Overrides:
sendAlert in class AbstractContract

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class AbstractContract

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class AbstractContract

newOpportunity$Slice

protected org.w3c.jpa3.AbstractObject.Slice newOpportunity$Slice(int index)

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class AbstractContract
Returns:
the model class
See Also:
Opportunity.CLASS

setSegment

public void setSegment(Segment segment)
Sets a new value for the reference segment.

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

setSegment_Id

public void setSegment_Id(String segment)


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