org.opencrx.kernel.account1.jmi1
Interface Contact

All Superinterfaces:
Account, AlertSender, Auditee, org.openmdx.base.cci2.BasicObject, Cloneable, Contact, org.openmdx.base.cci2.ContextCapable, CrxObject, org.openmdx.base.cci2.ExtentCapable, GenericAccount, Importer, Indexed, Pictured, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, org.openmdx.compatibility.view1.cci2.ViewCapable, XmlExporter

public interface Contact
extends Contact, Account, Pictured

Class Contact


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.account1.cci2.Account
Account.Identity
 
Method Summary
 void addContactRelationship(boolean idIsPersistent, String id, ContactRelationship contactRelationship)
          Adds the specified element to the set of the values for the reference contactRelationship.
 ExportResult exportVcard(ExportVcardParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 ExportResult exportVcard(short locale)
           
 Account getAssistant()
          Retrieves the value for the reference assistant.
 List<String> getChildrenNames()
          Retrieves a list containing all the elements for the attribute childrenNames.
 List<Short> getCitizenship()
          Retrieves a list containing all the elements for the attribute citizenship.
 ContactRelationship getContactRelationship(boolean idIsPersistent, String id)
          Retrieves the value for the reference contactRelationship for the specified qualifier attribute value.
<T extends ContactRelationship>
List<T>
getContactRelationship(ContactRelationshipQuery query)
          Retrieves the value for the reference contactRelationship for the specified query.
 ContactRelationship getContactRelationship(String id)
          Retrieves the value for the reference contactRelationship for the specified qualifier attribute value.
 Account getDeputy()
          Retrieves the value for the reference deputy.
 List<Short> getReligion()
          Retrieves a list containing all the elements for the attribute religion.
 Contact getReportsTo()
          Retrieves the value for the reference reportsTo.
 void setAssistant(Account assistant)
          Sets a new value for the reference assistant.
 void setChildrenNames(List<String> childrenNames)
          Clears childrenNames and adds the members of the given List.
 void setCitizenship(List<Short> citizenship)
          Clears citizenship and adds the members of the given List.
 void setDeputy(Account deputy)
          Sets a new value for the reference deputy.
 void setReligion(List<Short> religion)
          Clears religion and adds the members of the given List.
 void setReportsTo(Contact reportsTo)
          Sets a new value for the reference reportsTo.
 
Methods inherited from interface org.opencrx.kernel.account1.cci2.Contact
addContactRelationship, getAnniversary, getAnnualIncomeAmount, getAnnualIncomeCurrency, getBirthdate, getContactRelationship, getDepartment, getEducation, getFamilyStatus, getFirstName, getGender, getGovernmentId, getJobRole, getJobTitle, getLastName, getMiddleName, getNickName, getNumberOfChildren, getOrganization, getOuMembership, getPreferredContactMethod, getPreferredSpokenLanguage, getPreferredWrittenLanguage, getSalutation, getSalutationCode, getSuffix, isDoNotBulkPostalMail, isDoNotEmail, isDoNotFax, isDoNotPhone, isDoNotPostalMail, setAnniversary, setAnnualIncomeAmount, setAnnualIncomeCurrency, setBirthdate, setChildrenNames, setCitizenship, setDepartment, setDoNotBulkPostalMail, setDoNotEmail, setDoNotFax, setDoNotPhone, setDoNotPostalMail, setEducation, setFamilyStatus, setFirstName, setGender, setGovernmentId, setJobRole, setJobTitle, setLastName, setMiddleName, setNickName, setNumberOfChildren, setOrganization, setPreferredContactMethod, setPreferredSpokenLanguage, setPreferredWrittenLanguage, setReligion, setSalutation, setSalutationCode, setSuffix
 
Methods inherited from interface org.opencrx.kernel.account1.jmi1.Account
addAddress, addMember, createInvoice, createInvoice, createLead, createLead, createOpportunity, createOpportunity, createQuote, createQuote, createSalesOrder, createSalesOrder, getAccountCategory, getAccountMembership, getAccountMembership, getAccountMembership, getAccountType, getAddress, getAddress, getAddress, getAssignedActivity, getAssignedActivity, getAssignedActivity, getAssignedContract, getAssignedContract, getAssignedContract, getBusinessType, getMaster, getMember, getMember, getMember, getProduct, getProduct, getProduct, setAccountCategory, setAccountType, setBusinessType, setMaster
 
Methods inherited from interface org.opencrx.kernel.account1.cci2.Account
addAddress, addMember, getAccountMembership, getAccountRating, getAccountState, getAddress, getAliasName, getAssignedActivity, getAssignedContract, getContact, getDescription, getExtCode0, getExtCode1, getExtCode10, getExtCode11, getExtCode12, getExtCode13, getExtCode14, getExtCode15, getExtCode16, getExtCode17, getExtCode18, getExtCode19, getExtCode2, getExtCode3, getExtCode4, getExtCode5, getExtCode6, getExtCode7, getExtCode8, getExtCode9, getExtDate0, getExtDate1, getExtDate2, getExtDate3, getExtDate4, getExtDate5, getExtDate6, getExtDate7, getExtDate8, getExtDate9, getExtDateTime0, getExtDateTime1, getExtDateTime2, getExtDateTime3, getExtDateTime4, getExtDateTime5, getExtDateTime6, getExtDateTime7, getExtDateTime8, getExtDateTime9, getExtNumber0, getExtNumber1, getExtNumber2, getExtNumber3, getExtNumber4, getExtNumber5, getExtNumber6, getExtNumber7, getExtNumber8, getExtNumber9, getExtString0, getExtString1, getExtString2, getExtString3, getExtString4, getExtString5, getExtString6, getExtString7, getExtString8, getExtString9, getFullName, getMember, getPartner, getProduct, isExtBoolean0, isExtBoolean1, isExtBoolean2, isExtBoolean3, isExtBoolean4, isExtBoolean5, isExtBoolean6, isExtBoolean7, isExtBoolean8, isExtBoolean9, setAccountCategory, setAccountRating, setAccountState, setAccountType, setAliasName, setBusinessType, setDescription, setExtBoolean0, setExtBoolean1, setExtBoolean2, setExtBoolean3, setExtBoolean4, setExtBoolean5, setExtBoolean6, setExtBoolean7, setExtBoolean8, setExtBoolean9, setExtCode0, setExtCode1, setExtCode10, setExtCode11, setExtCode12, setExtCode13, setExtCode14, setExtCode15, setExtCode16, setExtCode17, setExtCode18, setExtCode19, setExtCode2, setExtCode3, setExtCode4, setExtCode5, setExtCode6, setExtCode7, setExtCode8, setExtCode9, setExtDate0, setExtDate1, setExtDate2, setExtDate3, setExtDate4, setExtDate5, setExtDate6, setExtDate7, setExtDate8, setExtDate9, setExtDateTime0, setExtDateTime1, setExtDateTime2, setExtDateTime3, setExtDateTime4, setExtDateTime5, setExtDateTime6, setExtDateTime7, setExtDateTime8, setExtDateTime9, setExtNumber0, setExtNumber1, setExtNumber2, setExtNumber3, setExtNumber4, setExtNumber5, setExtNumber6, setExtNumber7, setExtNumber8, setExtNumber9, setExtString0, setExtString1, setExtString2, setExtString3, setExtString4, setExtString5, setExtString6, setExtString7, setExtString8, setExtString9
 
Methods inherited from interface org.opencrx.kernel.generic.jmi1.CrxObject
addAdditionalExternalLink, addAttachedDocument, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAdditionalExternalLink, getAdditionalExternalLink, getAttachedDocument, getAttachedDocument, getAttachedDocument, getCategory, getExternalLink, getMedia, getMedia, getMedia, getNote, getNote, getNote, getPropertySet, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getRating, getUserBoolean4, getUserCode4, getUserDate4, getUserDateTime4, getUserNumber4, getUserString4, setCategory, setExternalLink, setUserBoolean4, setUserCode4, setUserDate4, setUserDateTime4, setUserNumber4, setUserString4
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
addAdditionalExternalLink, addAttachedDocument, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAttachedDocument, getDisabledReason, getMedia, getNote, getPropertySet, getPropertySetEntry, getRating, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserString0, getUserString1, getUserString2, getUserString3, 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.jmi1.AlertSender
sendAlert, sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Auditee
getAudit, getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Cloneable
clone_, clone_
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Importer
importItem, importItem
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Indexed
getIndexEntry, getIndexEntry, getIndexEntry, updateIndex, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.SecureObject
addOwningGroup, addOwningGroup, checkPermissions, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeAllOwningGroup, removeOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevel, setOwningUser, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwningGroup, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.XmlExporter
exportXml, exportXml
 
Methods inherited from interface org.openmdx.base.jmi1.BasicObject
getCreatedBy, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getModifiedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.jmi1.ViewCapable
getView, getView, getView
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
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
 
Methods inherited from interface org.opencrx.kernel.generic.jmi1.Pictured
getPicture, setPicture
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.Pictured
getPictureContent, getPictureContentMimeType, getPictureContentName
 

Method Detail

getAssistant

Account getAssistant()
Retrieves the value for the reference assistant.

Specified by:
getAssistant in interface Contact
Returns:
The – possibly null – value for this reference.

setAssistant

void setAssistant(Account assistant)
Sets a new value for the reference assistant.

Specified by:
setAssistant in interface Contact
Parameters:
assistant - The non-null new value for this reference.

getChildrenNames

List<String> getChildrenNames()
Retrieves a list containing all the elements for the attribute childrenNames.

Specified by:
getChildrenNames in interface Contact
Returns:
A list containing all elements for this attribute.

setChildrenNames

void setChildrenNames(List<String> childrenNames)
Clears childrenNames and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(childrenNames);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
childrenNames - collection to be copied.

getCitizenship

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

Specified by:
getCitizenship in interface Contact
Returns:
A list containing all elements for this attribute.

setCitizenship

void setCitizenship(List<Short> citizenship)
Clears citizenship and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(citizenship);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
citizenship - collection to be copied.

getContactRelationship

<T extends ContactRelationship> List<T> getContactRelationship(ContactRelationshipQuery query)
Retrieves the value for the reference contactRelationship for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

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

getContactRelationship

ContactRelationship getContactRelationship(boolean idIsPersistent,
                                           String id)
Retrieves the value for the reference contactRelationship for the specified qualifier attribute value.

Specified by:
getContactRelationship in interface Contact
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

getContactRelationship

ContactRelationship getContactRelationship(String id)
Retrieves the value for the reference contactRelationship for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getContactRelationship(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addContactRelationship

void addContactRelationship(boolean idIsPersistent,
                            String id,
                            ContactRelationship contactRelationship)
Adds the specified element to the set of the values for the reference contactRelationship.

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.
contactRelationship - The element to be appended.

getDeputy

Account getDeputy()
Retrieves the value for the reference deputy.

Specified by:
getDeputy in interface Contact
Returns:
The – possibly null – value for this reference.

setDeputy

void setDeputy(Account deputy)
Sets a new value for the reference deputy.

Specified by:
setDeputy in interface Contact
Parameters:
deputy - The non-null new value for this reference.

exportVcard

ExportResult exportVcard(ExportVcardParams params)
                         throws RefException
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.

Throws:
RefException

exportVcard

ExportResult exportVcard(short locale)
Specified by:
exportVcard in interface Contact

getReligion

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

Specified by:
getReligion in interface Contact
Returns:
A list containing all elements for this attribute.

setReligion

void setReligion(List<Short> religion)
Clears religion and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(religion);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
religion - collection to be copied.

getReportsTo

Contact getReportsTo()
Retrieves the value for the reference reportsTo.

Specified by:
getReportsTo in interface Contact
Returns:
The – possibly null – value for this reference.

setReportsTo

void setReportsTo(Contact reportsTo)
Sets a new value for the reference reportsTo.

Specified by:
setReportsTo in interface Contact
Parameters:
reportsTo - The non-null new value for this reference.


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