org.opencrx.kernel.account1.cci
Interface Account

All Superinterfaces:
AbstractAccount, AlertSender, Auditee, BasicObject, Cloneable, ContextCapable, CrxObject, ExtentCapable, GenericAccount, Importer, Indexed, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, SubscriptionTarget, ViewCapable, XmlExporter
All Known Subinterfaces:
AbstractGroup, Contact, Group, LegalEntity, UnspecifiedAccount
All Known Implementing Classes:
AbstractGroupImpl, AccountImpl, ContactImpl, GroupImpl, LegalEntityImpl, UnspecifiedAccountImpl

public interface Account
extends AbstractAccount, CrxObject, GenericAccount


Method Summary
 void addAddress(AccountAddress newValue)
           
 void addAddress(String id, AccountAddress newValue)
           
 void addContact(Contact newValue)
           
 void addContact(int index, Contact newValue)
           
 void addPartner(Account newValue)
           
 void addPartner(int index, Account newValue)
           
 CreateInvoiceResult createInvoice(CreateInvoiceParams params)
           
 CreateInvoiceResult createInvoice(Invoice basedOn, String description, String name)
           
 CreateLeadResult createLead(CreateLeadParams params)
           
 CreateLeadResult createLead(Lead basedOn, String description, String name, String nextStep)
           
 CreateOpportunityResult createOpportunity(CreateOpportunityParams params)
           
 CreateOpportunityResult createOpportunity(Opportunity basedOn, String description, String name)
           
 CreateQuoteResult createQuote(CreateQuoteParams params)
           
 CreateQuoteResult createQuote(Quote basedOn, String description, String name)
           
 CreateSalesOrderResult createSalesOrder(CreateSalesOrderParams params)
           
 CreateSalesOrderResult createSalesOrder(SalesOrder basedOn, String description, String name)
           
 Collection getAddress()
          Retrieves a collection containing all the elements for the reference address.
 List getAddress(AccountAddressFilter filter)
          Retrieves the value for the reference address for the specified filter.
 List getAddress(AccountAddressQuery query)
          Retrieves the value for the reference address for the specified query.
 AccountAddress getAddress(String id)
          Retrieves the value for the reference address for the specified qualifier attribute value.
 Collection getAssignedActivity()
          Retrieves a collection containing all the elements for the reference assignedActivity.
 List getAssignedActivity(ActivityFilter filter)
          Retrieves the value for the reference assignedActivity for the specified filter.
 List getAssignedActivity(ActivityQuery query)
          Retrieves the value for the reference assignedActivity for the specified query.
 Activity getAssignedActivity(String id)
          Retrieves the value for the reference assignedActivity for the specified qualifier attribute value.
 Collection getAssignedContract()
          Retrieves a collection containing all the elements for the reference assignedContract.
 List getAssignedContract(AbstractContractFilter filter)
          Retrieves the value for the reference assignedContract for the specified filter.
 List getAssignedContract(AbstractContractQuery query)
          Retrieves the value for the reference assignedContract for the specified query.
 AbstractContract getAssignedContract(String id)
          Retrieves the value for the reference assignedContract for the specified qualifier attribute value.
 Collection getContact()
          Retrieves the objects referenced by contact.
 Contact getContact(int index)
          Retrieves the value for the reference contact for the specified qualifier attribute value.
 Collection getGroupMembership()
          Retrieves a collection containing all the elements for the reference groupMembership.
 List getGroupMembership(GroupMembershipFilter filter)
          Retrieves the value for the reference groupMembership for the specified filter.
 List getGroupMembership(GroupMembershipQuery query)
          Retrieves the value for the reference groupMembership for the specified query.
 GroupMembership getGroupMembership(String id)
          Retrieves the value for the reference groupMembership for the specified qualifier attribute value.
 Account getMaster()
          Retrieves the value for the optional reference master.
 Collection getPartner()
          Retrieves the objects referenced by partner.
 Account getPartner(int index)
          Retrieves the value for the reference partner for the specified qualifier attribute value.
 Collection getProduct()
          Retrieves a collection containing all the elements for the reference product.
 List getProduct(ProductFilter filter)
          Retrieves the value for the reference product for the specified filter.
 List getProduct(ProductQuery query)
          Retrieves the value for the reference product for the specified query.
 Product getProduct(String id)
          Retrieves the value for the reference product for the specified qualifier attribute value.
 void removeAddress(String id)
           
 void removeContact(int index)
           
 void removeMaster()
          Removes the value for the optional reference master.
 void removePartner(int index)
           
 void setMaster(Account newValue)
          Sets a new value for the reference master.
 
Methods inherited from interface org.opencrx.kernel.account1.cci.AbstractAccount
getAccountCategory, getAccountCategory, getAccountRating, getAccountState, getAccountType, getAccountType, getAliasName, getBusinessType, getBusinessType, getDescription, getFullName, setAccountCategory, setAccountCategory, setAccountRating, setAccountState, setAccountType, setAccountType, setAliasName, setBusinessType, setBusinessType, setDescription
 
Methods inherited from interface org.opencrx.kernel.generic.cci.CrxObject
addAdditionalExternalLink, addAdditionalExternalLink, addAttachedDocument, addAttachedDocument, addMedia, addMedia, addNote, addNote, addPropertySet, addPropertySet, addRating, addRating, getAdditionalExternalLink, getAdditionalExternalLink, getAdditionalExternalLink, getAdditionalExternalLink, getAttachedDocument, getAttachedDocument, getAttachedDocument, getAttachedDocument, getCategory, getCategory, getDisabledReason, getExternalLink, getExternalLink, getMedia, getMedia, getMedia, getMedia, getNote, getNote, getNote, getNote, getPropertySet, getPropertySet, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getRating, getRating, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, getUserString4, isDisabled, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, isUserBoolean4, isUserBoolean4, removeAdditionalExternalLink, removeAttachedDocument, removeMedia, removeNote, removePropertySet, removeRating, setCategory, setCategory, setDisabled, setDisabledReason, setExternalLink, setExternalLink, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4, setUserString4
 
Methods inherited from interface org.opencrx.kernel.base.cci.AlertSender
sendAlert, sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.cci.Auditee
getAudit, getAudit, getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci.Cloneable
clone_, clone_
 
Methods inherited from interface org.opencrx.kernel.base.cci.Importer
importItem, importItem
 
Methods inherited from interface org.opencrx.kernel.base.cci.Indexed
getIndexEntry, getIndexEntry, getIndexEntry, getIndexEntry, updateIndex, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci.SecureObject
addOwningGroup, addOwningGroup, addOwningGroup, addOwningGroup, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwner, getOwningGroup, getOwningGroup, getOwningUser, removeAllOwningGroup, removeAllOwningGroup, removeOwningGroup, removeOwningGroup, removeOwningGroup, removeOwningUser, setAccessLevel, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci.SubscriptionTarget
addSubscription, addSubscription, addSubscriptionForParent, addSubscriptionForParent, removeSubscription, removeSubscription, removeSubscriptionForParent, removeSubscriptionForParent
 
Methods inherited from interface org.opencrx.kernel.base.cci.XmlExporter
exportXml, exportXml
 
Methods inherited from interface org.openmdx.base.cci.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci.ContextCapable
getContext, getContext
 
Methods inherited from interface org.openmdx.base.cci.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci.ViewCapable
getView, getView, getView, getView
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
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

getAddress

AccountAddress getAddress(String id)
Retrieves the value for the reference address for the specified qualifier attribute value.

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAddress

Collection getAddress()
Retrieves a collection containing all the elements for the reference address.

Returns:
A collection containing all the elements for this reference.
Throws:
JmiException - If the values cannot be retrieved for some reason.

getAddress

List getAddress(AccountAddressFilter filter)
Retrieves the value for the reference address for the specified filter.

Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAddress

List getAddress(AccountAddressQuery query)
Retrieves the value for the reference address for the specified query.

Parameters:
predicate - predicate which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

addAddress

void addAddress(String id,
                AccountAddress newValue)
Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.
Throws:
JmiException - If the value cannot be appended for some reason.

addAddress

void addAddress(AccountAddress newValue)
Parameters:
newValue - The element to be appended.
Throws:
JmiException - If the value cannot be appended for some reason.

removeAddress

void removeAddress(String id)
Throws:
JmiException - If the value cannot be removed for some reason.

getAssignedActivity

Activity getAssignedActivity(String id)
Retrieves the value for the reference assignedActivity for the specified qualifier attribute value.

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAssignedActivity

Collection getAssignedActivity()
Retrieves a collection containing all the elements for the reference assignedActivity.

Returns:
A collection containing all the elements for this reference.
Throws:
JmiException - If the values cannot be retrieved for some reason.

getAssignedActivity

List getAssignedActivity(ActivityFilter filter)
Retrieves the value for the reference assignedActivity for the specified filter.

Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAssignedActivity

List getAssignedActivity(ActivityQuery query)
Retrieves the value for the reference assignedActivity for the specified query.

Parameters:
predicate - predicate which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAssignedContract

AbstractContract getAssignedContract(String id)
Retrieves the value for the reference assignedContract for the specified qualifier attribute value.

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAssignedContract

Collection getAssignedContract()
Retrieves a collection containing all the elements for the reference assignedContract.

Returns:
A collection containing all the elements for this reference.
Throws:
JmiException - If the values cannot be retrieved for some reason.

getAssignedContract

List getAssignedContract(AbstractContractFilter filter)
Retrieves the value for the reference assignedContract for the specified filter.

Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getAssignedContract

List getAssignedContract(AbstractContractQuery query)
Retrieves the value for the reference assignedContract for the specified query.

Parameters:
predicate - predicate which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getContact

Contact getContact(int index)
Retrieves the value for the reference contact for the specified qualifier attribute value.

Parameters:
index - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getContact

Collection getContact()
Retrieves the objects referenced by contact.

Returns:
The collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

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.
Throws:
JmiException - If the value cannot be appended for some reason.

addContact

void addContact(Contact newValue)
Parameters:
newValue - The element to be appended.
Throws:
JmiException - If the value cannot be appended for some reason.

removeContact

void removeContact(int index)
Throws:
JmiException - If the value cannot be removed for some reason.

createInvoice

CreateInvoiceResult createInvoice(CreateInvoiceParams params)
                                  throws RefException
Throws:
RefException

createInvoice

CreateInvoiceResult createInvoice(Invoice basedOn,
                                  String description,
                                  String name)
                                  throws RefException
Throws:
RefException

createLead

CreateLeadResult createLead(CreateLeadParams params)
                            throws RefException
Throws:
RefException

createLead

CreateLeadResult createLead(Lead basedOn,
                            String description,
                            String name,
                            String nextStep)
                            throws RefException
Throws:
RefException

createOpportunity

CreateOpportunityResult createOpportunity(CreateOpportunityParams params)
                                          throws RefException
Throws:
RefException

createOpportunity

CreateOpportunityResult createOpportunity(Opportunity basedOn,
                                          String description,
                                          String name)
                                          throws RefException
Throws:
RefException

createQuote

CreateQuoteResult createQuote(CreateQuoteParams params)
                              throws RefException
Throws:
RefException

createQuote

CreateQuoteResult createQuote(Quote basedOn,
                              String description,
                              String name)
                              throws RefException
Throws:
RefException

createSalesOrder

CreateSalesOrderResult createSalesOrder(CreateSalesOrderParams params)
                                        throws RefException
Throws:
RefException

createSalesOrder

CreateSalesOrderResult createSalesOrder(SalesOrder basedOn,
                                        String description,
                                        String name)
                                        throws RefException
Throws:
RefException

getGroupMembership

GroupMembership getGroupMembership(String id)
Retrieves the value for the reference groupMembership for the specified qualifier attribute value.

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getGroupMembership

Collection getGroupMembership()
Retrieves a collection containing all the elements for the reference groupMembership.

Returns:
A collection containing all the elements for this reference.
Throws:
JmiException - If the values cannot be retrieved for some reason.

getGroupMembership

List getGroupMembership(GroupMembershipFilter filter)
Retrieves the value for the reference groupMembership for the specified filter.

Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getGroupMembership

List getGroupMembership(GroupMembershipQuery query)
Retrieves the value for the reference groupMembership for the specified query.

Parameters:
predicate - predicate which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getMaster

Account getMaster()
Retrieves the value for the optional reference master.

Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

setMaster

void setMaster(Account newValue)
Sets a new value for the reference master.

Parameters:
newValue - The non-null new value for this reference.
Throws:
JmiException - If the value cannot be set for some reason.

removeMaster

void removeMaster()
Removes the value for the optional reference master.

Throws:
JmiException - If the value cannot be removed for some reason.

getPartner

Account getPartner(int index)
Retrieves the value for the reference partner for the specified qualifier attribute value.

Parameters:
index - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getPartner

Collection getPartner()
Retrieves the objects referenced by partner.

Returns:
The collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

addPartner

void addPartner(int index,
                Account newValue)
Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.
Throws:
JmiException - If the value cannot be appended for some reason.

addPartner

void addPartner(Account newValue)
Parameters:
newValue - The element to be appended.
Throws:
JmiException - If the value cannot be appended for some reason.

removePartner

void removePartner(int index)
Throws:
JmiException - If the value cannot be removed for some reason.

getProduct

Product getProduct(String id)
Retrieves the value for the reference product for the specified qualifier attribute value.

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getProduct

Collection getProduct()
Retrieves a collection containing all the elements for the reference product.

Returns:
A collection containing all the elements for this reference.
Throws:
JmiException - If the values cannot be retrieved for some reason.

getProduct

List getProduct(ProductFilter filter)
Retrieves the value for the reference product for the specified filter.

Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getProduct

List getProduct(ProductQuery query)
Retrieves the value for the reference product for the specified query.

Parameters:
predicate - predicate which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.
Throws:
JmiException - If the value cannot be retrieved for some reason.


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