org.opencrx.kernel.backend
Class Accounts

java.lang.Object
  extended by org.opencrx.kernel.backend.Accounts

public class Accounts
extends Object


Field Summary
protected  Backend backend
           
static String DEFAULT_REFERENCE_FILTER
           
static int FAX_BUSINESS
           
static int FAX_HOME
           
static int MAIL_BUSINESS
           
static int MAIL_HOME
           
static int MOBILE
           
static int PHONE_BUSINESS
           
static int PHONE_HOME
           
static int PHONE_OTHER
           
static int POSTAL_BUSINESS
           
static int POSTAL_HOME
           
protected  VCard vcards
           
static int WEB_BUSINESS
           
static int WEB_HOME
           
 
Constructor Summary
Accounts(Backend backend)
           
 
Method Summary
 void completeOuMembership(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 contact)
           
 int countFilteredAccount(org.openmdx.base.naming.Path accountFilterIdentity)
           
 AbstractContract createContract(org.openmdx.base.naming.Path accountIdentity, org.openmdx.application.dataprovider.cci.DataproviderObject newContract, String name, String description, String nextStep, org.openmdx.base.naming.Path basedOnIdentity)
           
 Invoice createInvoice(org.openmdx.base.naming.Path accountIdentity, String name, String description, String nextStep, org.openmdx.base.naming.Path basedOnIdentity)
           
 Lead createLead(org.openmdx.base.naming.Path accountIdentity, String name, String description, String nextStep, org.openmdx.base.naming.Path basedOnIdentity)
           
 Opportunity createOpportunity(org.openmdx.base.naming.Path accountIdentity, String name, String description, String nextStep, org.openmdx.base.naming.Path basedOnIdentity)
           
 Quote createQuote(org.openmdx.base.naming.Path accountIdentity, String name, String description, String nextStep, org.openmdx.base.naming.Path basedOnIdentity)
           
 SalesOrder createSalesOrder(org.openmdx.base.naming.Path accountIdentity, String name, String description, String nextStep, org.openmdx.base.naming.Path basedOnIdentity)
           
 FilterProperty[] getAccountFilterProperties(org.openmdx.base.naming.Path accountFilterIdentity, boolean forCounting)
           
static Segment getAccountSegment(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
           
static AccountAddress[] getMainAddresses(Account account)
          Return main home and business addresses of given account.
static List<EMailAddress> lookupEmailAddress(javax.jdo.PersistenceManager pm, String providerName, String segmentName, String emailAddress, boolean caseInsensitiveAddressLookup)
          Search accounts containing the given email address.
 void markAccountAsDirty(org.openmdx.base.naming.Path accountIdentity)
           
 void updateAccount(org.openmdx.application.dataprovider.cci.DataproviderObject object, org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 oldValues)
           
 void updateFullName(org.openmdx.application.dataprovider.cci.DataproviderObject object, org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 oldValues)
           
 void updateVcard(org.openmdx.base.naming.Path accountIdentity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REFERENCE_FILTER

public static final String DEFAULT_REFERENCE_FILTER
See Also:
Constant Field Values

MAIL_BUSINESS

public static final int MAIL_BUSINESS
See Also:
Constant Field Values

MAIL_HOME

public static final int MAIL_HOME
See Also:
Constant Field Values

PHONE_BUSINESS

public static final int PHONE_BUSINESS
See Also:
Constant Field Values

PHONE_HOME

public static final int PHONE_HOME
See Also:
Constant Field Values

FAX_BUSINESS

public static final int FAX_BUSINESS
See Also:
Constant Field Values

FAX_HOME

public static final int FAX_HOME
See Also:
Constant Field Values

POSTAL_BUSINESS

public static final int POSTAL_BUSINESS
See Also:
Constant Field Values

WEB_BUSINESS

public static final int WEB_BUSINESS
See Also:
Constant Field Values

POSTAL_HOME

public static final int POSTAL_HOME
See Also:
Constant Field Values

WEB_HOME

public static final int WEB_HOME
See Also:
Constant Field Values

MOBILE

public static final int MOBILE
See Also:
Constant Field Values

PHONE_OTHER

public static final int PHONE_OTHER
See Also:
Constant Field Values

backend

protected final Backend backend

vcards

protected final VCard vcards
Constructor Detail

Accounts

public Accounts(Backend backend)
Method Detail

completeOuMembership

public void completeOuMembership(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 contact)

createContract

public AbstractContract createContract(org.openmdx.base.naming.Path accountIdentity,
                                       org.openmdx.application.dataprovider.cci.DataproviderObject newContract,
                                       String name,
                                       String description,
                                       String nextStep,
                                       org.openmdx.base.naming.Path basedOnIdentity)

createLead

public Lead createLead(org.openmdx.base.naming.Path accountIdentity,
                       String name,
                       String description,
                       String nextStep,
                       org.openmdx.base.naming.Path basedOnIdentity)

createOpportunity

public Opportunity createOpportunity(org.openmdx.base.naming.Path accountIdentity,
                                     String name,
                                     String description,
                                     String nextStep,
                                     org.openmdx.base.naming.Path basedOnIdentity)

createQuote

public Quote createQuote(org.openmdx.base.naming.Path accountIdentity,
                         String name,
                         String description,
                         String nextStep,
                         org.openmdx.base.naming.Path basedOnIdentity)

createSalesOrder

public SalesOrder createSalesOrder(org.openmdx.base.naming.Path accountIdentity,
                                   String name,
                                   String description,
                                   String nextStep,
                                   org.openmdx.base.naming.Path basedOnIdentity)

createInvoice

public Invoice createInvoice(org.openmdx.base.naming.Path accountIdentity,
                             String name,
                             String description,
                             String nextStep,
                             org.openmdx.base.naming.Path basedOnIdentity)

updateFullName

public void updateFullName(org.openmdx.application.dataprovider.cci.DataproviderObject object,
                           org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 oldValues)
                    throws ServiceException
Throws:
ServiceException

updateAccount

public void updateAccount(org.openmdx.application.dataprovider.cci.DataproviderObject object,
                          org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 oldValues)
                   throws ServiceException
Throws:
ServiceException

getAccountFilterProperties

public FilterProperty[] getAccountFilterProperties(org.openmdx.base.naming.Path accountFilterIdentity,
                                                   boolean forCounting)
                                            throws ServiceException
Throws:
ServiceException

countFilteredAccount

public int countFilteredAccount(org.openmdx.base.naming.Path accountFilterIdentity)
                         throws ServiceException
Throws:
ServiceException

getAccountSegment

public static Segment getAccountSegment(javax.jdo.PersistenceManager pm,
                                        String providerName,
                                        String segmentName)
Returns:
Returns the accountSegment.

lookupEmailAddress

public static List<EMailAddress> lookupEmailAddress(javax.jdo.PersistenceManager pm,
                                                    String providerName,
                                                    String segmentName,
                                                    String emailAddress,
                                                    boolean caseInsensitiveAddressLookup)
Search accounts containing the given email address.

Parameters:
rootPkg - The root package to be used for this request
providerName - The name of the current provider
segmentName - The name of the current segment
emailAddress - The email address
Returns:
A List of accounts containing the email address

getMainAddresses

public static AccountAddress[] getMainAddresses(Account account)
Return main home and business addresses of given account.

Returns:
array with elements {web home, web business, phone home, phone business, fax home, fax, business, postal home, postal business, mail home, mail business, mobile, phone other}

updateVcard

public void updateVcard(org.openmdx.base.naming.Path accountIdentity)
                 throws ServiceException
Throws:
ServiceException

markAccountAsDirty

public void markAccountAsDirty(org.openmdx.base.naming.Path accountIdentity)
                        throws ServiceException
Throws:
ServiceException


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