org.opencrx.kernel.backend
Class Accounts
java.lang.Object
org.opencrx.kernel.backend.AbstractImpl
org.opencrx.kernel.backend.Accounts
public class Accounts
- extends AbstractImpl
|
Constructor Summary |
protected |
Accounts()
|
|
Method Summary |
int |
countFilteredAccount(AbstractFilterAccount accountFilter)
|
int |
countFilteredAddress(AbstractFilterAddress addressFilter)
|
Invoice |
createInvoice(Account account,
String name,
String description,
Invoice basedOn)
|
Lead |
createLead(Account account,
String name,
String description,
String nextStep,
Lead basedOn)
|
Opportunity |
createOpportunity(Account account,
String name,
String description,
String nextStep,
Opportunity basedOn)
|
Quote |
createQuote(Account account,
String name,
String description,
Quote basedOn)
|
SalesOrder |
createSalesOrder(Account account,
String name,
String description,
SalesOrder basedOn)
|
Segment |
getAccountSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName)
|
AccountQuery |
getFilteredAccountQuery(AbstractFilterAccount accountFilter,
boolean forCounting)
|
AccountAddressQuery |
getFilteredAddressQuery(AbstractFilterAddress addressFilter,
boolean forCounting)
|
static Accounts |
getInstance()
|
AccountAddress[] |
getMainAddresses(Account account)
Return main home and business addresses of given account. |
List<AbstractOrganizationalUnit> |
getOuMembership(Contact contact)
|
void |
initContract(AbstractContract contract,
Account account,
String name,
String description)
|
List<EMailAddress> |
lookupEmailAddress(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
String emailAddress,
boolean caseInsensitive,
boolean ignoreDisabled)
Search accounts containing the given email address. |
void |
markAccountAsDirty(Account account)
|
static void |
register()
|
void |
updateAccount(Account account)
|
void |
updateFullName(Account account)
|
void |
updateVcard(Account account)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Accounts
protected Accounts()
register
public static void register()
getInstance
public static Accounts getInstance()
throws ServiceException
- Throws:
ServiceException
markAccountAsDirty
public void markAccountAsDirty(Account account)
throws ServiceException
- Throws:
ServiceException
getOuMembership
public List<AbstractOrganizationalUnit> getOuMembership(Contact contact)
initContract
public void initContract(AbstractContract contract,
Account account,
String name,
String description)
throws ServiceException
- Throws:
ServiceException
createLead
public Lead createLead(Account account,
String name,
String description,
String nextStep,
Lead basedOn)
throws ServiceException
- Throws:
ServiceException
createOpportunity
public Opportunity createOpportunity(Account account,
String name,
String description,
String nextStep,
Opportunity basedOn)
throws ServiceException
- Throws:
ServiceException
createQuote
public Quote createQuote(Account account,
String name,
String description,
Quote basedOn)
throws ServiceException
- Throws:
ServiceException
createSalesOrder
public SalesOrder createSalesOrder(Account account,
String name,
String description,
SalesOrder basedOn)
throws ServiceException
- Throws:
ServiceException
createInvoice
public Invoice createInvoice(Account account,
String name,
String description,
Invoice basedOn)
throws ServiceException
- Throws:
ServiceException
updateFullName
public void updateFullName(Account account)
throws ServiceException
- Throws:
ServiceException
updateAccount
public void updateAccount(Account account)
throws ServiceException
- Throws:
ServiceException
getFilteredAccountQuery
public AccountQuery getFilteredAccountQuery(AbstractFilterAccount accountFilter,
boolean forCounting)
throws ServiceException
- Throws:
ServiceException
countFilteredAccount
public int countFilteredAccount(AbstractFilterAccount accountFilter)
throws ServiceException
- Throws:
ServiceException
getAccountSegment
public Segment getAccountSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName)
- Returns:
- Returns the accountSegment.
lookupEmailAddress
public List<EMailAddress> lookupEmailAddress(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
String emailAddress,
boolean caseInsensitive,
boolean ignoreDisabled)
- Search accounts containing the given email address.
- Parameters:
rootPkg - The root package to be used for this requestproviderName - The name of the current providersegmentName - The name of the current segmentemailAddress - The email address
- Returns:
- A List of accounts containing the email address
getMainAddresses
public 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(Account account)
throws ServiceException
- Throws:
ServiceException
getFilteredAddressQuery
public AccountAddressQuery getFilteredAddressQuery(AbstractFilterAddress addressFilter,
boolean forCounting)
throws ServiceException
- Throws:
ServiceException
countFilteredAddress
public int countFilteredAddress(AbstractFilterAddress addressFilter)
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.