public class ContactLocalServiceImpl extends ContactLocalServiceBaseImpl
contactLocalService, contactPersistence, counterLocalService, persistedModelLocalServiceRegistry| Constructor and Description |
|---|
ContactLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.model.Contact |
addContact(com.liferay.portal.kernel.model.Contact contact)
Adds the contact to the database.
|
com.liferay.portal.kernel.model.Contact |
addContact(long userId,
String className,
long classPK,
String emailAddress,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle) |
com.liferay.portal.kernel.model.Contact |
deleteContact(com.liferay.portal.kernel.model.Contact contact)
Deletes the contact from the database.
|
com.liferay.portal.kernel.model.Contact |
deleteContact(long contactId)
Deletes the contact with the primary key from the database.
|
List<com.liferay.portal.kernel.model.Contact> |
getCompanyContacts(long companyId,
int start,
int end) |
int |
getCompanyContactsCount(long companyId) |
List<com.liferay.portal.kernel.model.Contact> |
getContacts(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Contact> orderByComparator) |
int |
getContactsCount(long classNameId,
long classPK) |
com.liferay.portal.kernel.model.Contact |
updateContact(com.liferay.portal.kernel.model.Contact contact)
Updates the contact in the database or adds it if it does not yet exist.
|
com.liferay.portal.kernel.model.Contact |
updateContact(long contactId,
String emailAddress,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle) |
protected void |
validate(String className,
long classPK) |
protected void |
validateBirthday(Date birthday) |
afterPropertiesSet, createContact, createPersistedModel, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchContact, getActionableDynamicQuery, getBasePersistence, getContact, getContactLocalService, getContactPersistence, getContacts, getContactsCount, getCounterLocalService, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setContactLocalService, setContactPersistence, setCounterLocalService@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Contact addContact(com.liferay.portal.kernel.model.Contact contact)
ContactLocalServiceBaseImplImportant: Inspect ContactLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addContact in interface com.liferay.portal.kernel.service.ContactLocalServiceaddContact in class ContactLocalServiceBaseImplcontact - the contact@Indexable(type=REINDEX)
public com.liferay.portal.kernel.model.Contact addContact(long userId,
String className,
long classPK,
String emailAddress,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Indexable(type=DELETE) @SystemEvent(type=1) public com.liferay.portal.kernel.model.Contact deleteContact(com.liferay.portal.kernel.model.Contact contact)
ContactLocalServiceBaseImplImportant: Inspect ContactLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteContact in interface com.liferay.portal.kernel.service.ContactLocalServicedeleteContact in class ContactLocalServiceBaseImplcontact - the contact@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Contact deleteContact(long contactId)
ContactLocalServiceBaseImplImportant: Inspect ContactLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteContact in interface com.liferay.portal.kernel.service.ContactLocalServicedeleteContact in class ContactLocalServiceBaseImplcontactId - the primary key of the contactpublic List<com.liferay.portal.kernel.model.Contact> getCompanyContacts(long companyId,
int start,
int end)
public int getCompanyContactsCount(long companyId)
public List<com.liferay.portal.kernel.model.Contact> getContacts(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Contact> orderByComparator)
public int getContactsCount(long classNameId,
long classPK)
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Contact updateContact(com.liferay.portal.kernel.model.Contact contact)
ContactLocalServiceBaseImplImportant: Inspect ContactLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateContact in interface com.liferay.portal.kernel.service.ContactLocalServiceupdateContact in class ContactLocalServiceBaseImplcontact - the contact@Indexable(type=REINDEX)
public com.liferay.portal.kernel.model.Contact updateContact(long contactId,
String emailAddress,
String firstName,
String middleName,
String lastName,
long prefixId,
long suffixId,
boolean male,
int birthdayMonth,
int birthdayDay,
int birthdayYear,
String smsSn,
String facebookSn,
String jabberSn,
String skypeSn,
String twitterSn,
String jobTitle)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validate(String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validateBirthday(Date birthday)
throws com.liferay.portal.kernel.exception.ContactBirthdayException
com.liferay.portal.kernel.exception.ContactBirthdayException