|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencrx.kernel.backend.AbstractImpl
org.opencrx.kernel.backend.Accounts
public class Accounts
| Field Summary | |
|---|---|
static int |
FAX_BUSINESS
|
static int |
FAX_HOME
|
static int |
MAIL_BUSINESS
|
static int |
MAIL_HOME
|
static short |
MEMBER_QUALITY_NORMAL
|
static short |
MEMBER_ROLE_ASSISTANT
|
static short |
MEMBER_ROLE_EMPLOYEE
|
static int |
MOBILE
|
static int |
PHONE_BUSINESS
|
static int |
PHONE_HOME
|
static int |
PHONE_OTHER
|
static int |
POSTAL_BUSINESS
|
static int |
POSTAL_HOME
|
static int |
WEB_BUSINESS
|
static int |
WEB_HOME
|
| Constructor Summary | |
|---|---|
protected |
Accounts()
|
| Method Summary | |
|---|---|
int |
countFilteredAccount(AbstractFilterAccount accountFilter)
|
int |
countFilteredAddress(AbstractFilterAddress addressFilter)
|
Invoice |
createInvoice(Account account,
String name,
String description,
Invoice basedOn)
Deprecated. use contract creators instead |
Lead |
createLead(Account account,
String name,
String description,
String nextStep,
Lead basedOn)
Deprecated. use contract creators instead |
Opportunity |
createOpportunity(Account account,
String name,
String description,
String nextStep,
Opportunity basedOn)
Deprecated. use contract creators instead |
Quote |
createQuote(Account account,
String name,
String description,
Quote basedOn)
Deprecated. use contract creators instead |
SalesOrder |
createSalesOrder(Account account,
String name,
String description,
SalesOrder basedOn)
Deprecated. use contract creators instead |
Segment |
getAccountSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName)
|
AccountAddressQuery |
getFilteredAddressQuery(AbstractFilterAddress addressFilter,
boolean forCounting)
|
static Accounts |
getInstance()
|
AccountAddress[] |
getMainAddresses(Account account)
Return main home and business addresses of given account. |
String |
getPrimaryBusinessEMail(Account account,
String hint)
|
String |
getPrimaryBusinessPhone(Account account)
|
void |
initContract(SalesContract contract,
Account account,
String name,
String description)
Deprecated. use contract creators instead. |
List<EMailAddress> |
lookupEmailAddress(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
String emailAddress)
Search accounts containing the given email address. |
List<EMailAddress> |
lookupEmailAddress(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
String email,
boolean forceCreate)
|
void |
markAccountAsDirty(Account account)
|
int |
moveAddress(AccountAddress source,
AccountAddress target,
Date updateRelationshipsSince,
Date updateRelationshipsBefore)
|
int |
moveAddressToAccount(AccountAddress source,
Account targetAccount,
Date updateRelationshipsSince,
Date updateRelationshipsBefore)
|
static void |
register()
|
void |
removeAccount(Account account,
boolean preDelete)
|
void |
removeAddress(AccountAddress address,
boolean preDelete)
|
void |
updateAccount(Account account)
|
void |
updateAddress(AccountAddress address)
|
void |
updateFullName(Account account)
|
void |
updateMember(Member member)
|
void |
updateVcard(Account account)
|
| Methods inherited from class org.opencrx.kernel.backend.AbstractImpl |
|---|
getInstance, getUidAsString, registerImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAIL_BUSINESS
public static final int MAIL_HOME
public static final int PHONE_BUSINESS
public static final int PHONE_HOME
public static final int FAX_BUSINESS
public static final int FAX_HOME
public static final int POSTAL_BUSINESS
public static final int WEB_BUSINESS
public static final int POSTAL_HOME
public static final int WEB_HOME
public static final int MOBILE
public static final int PHONE_OTHER
public static final short MEMBER_ROLE_EMPLOYEE
public static final short MEMBER_ROLE_ASSISTANT
public static final short MEMBER_QUALITY_NORMAL
| Constructor Detail |
|---|
protected Accounts()
| Method Detail |
|---|
public static void register()
public static Accounts getInstance()
throws ServiceException
ServiceException
public void markAccountAsDirty(Account account)
throws ServiceException
ServiceException
public void initContract(SalesContract contract,
Account account,
String name,
String description)
throws ServiceException
ServiceException
public Lead createLead(Account account,
String name,
String description,
String nextStep,
Lead basedOn)
throws ServiceException
ServiceException
public Opportunity createOpportunity(Account account,
String name,
String description,
String nextStep,
Opportunity basedOn)
throws ServiceException
ServiceException
public Quote createQuote(Account account,
String name,
String description,
Quote basedOn)
throws ServiceException
ServiceException
public SalesOrder createSalesOrder(Account account,
String name,
String description,
SalesOrder basedOn)
throws ServiceException
ServiceException
public Invoice createInvoice(Account account,
String name,
String description,
Invoice basedOn)
throws ServiceException
ServiceException
public void updateFullName(Account account)
throws ServiceException
ServiceException
public void updateAccount(Account account)
throws ServiceException
ServiceException
public void updateAddress(AccountAddress address)
throws ServiceException
ServiceException
public void removeAddress(AccountAddress address,
boolean preDelete)
throws ServiceException
ServiceException
public int countFilteredAccount(AbstractFilterAccount accountFilter)
throws ServiceException
ServiceException
public Segment getAccountSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName)
public List<EMailAddress> lookupEmailAddress(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
String emailAddress)
public List<EMailAddress> lookupEmailAddress(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
String email,
boolean forceCreate)
throws ServiceException
ServiceException
public String getPrimaryBusinessEMail(Account account,
String hint)
throws ServiceException
ServiceException
public String getPrimaryBusinessPhone(Account account)
throws ServiceException
ServiceExceptionpublic AccountAddress[] getMainAddresses(Account account)
public void updateVcard(Account account)
throws ServiceException
ServiceException
public void updateMember(Member member)
throws ServiceException
ServiceException
public AccountAddressQuery getFilteredAddressQuery(AbstractFilterAddress addressFilter,
boolean forCounting)
throws ServiceException
ServiceException
public int countFilteredAddress(AbstractFilterAddress addressFilter)
throws ServiceException
ServiceException
public int moveAddressToAccount(AccountAddress source,
Account targetAccount,
Date updateRelationshipsSince,
Date updateRelationshipsBefore)
throws ServiceException
ServiceException
public int moveAddress(AccountAddress source,
AccountAddress target,
Date updateRelationshipsSince,
Date updateRelationshipsBefore)
throws ServiceException
ServiceException
public void removeAccount(Account account,
boolean preDelete)
throws ServiceException
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||