com.liferay.portal.service.impl
Class ContactLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portal.service.base.ContactLocalServiceBaseImpl
com.liferay.portal.service.impl.ContactLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableOSGiService, BaseLocalService, ContactLocalService, PersistedModelLocalService
public class ContactLocalServiceImpl
- extends ContactLocalServiceBaseImpl
| Fields inherited from class com.liferay.portal.service.base.ContactLocalServiceBaseImpl |
addressLocalService, addressPersistence, contactLocalService, contactPersistence, counterLocalService, emailAddressLocalService, emailAddressPersistence, organizationFinder, organizationLocalService, organizationPersistence, persistedModelLocalServiceRegistry, phoneLocalService, phonePersistence, userFinder, userLocalService, userPersistence, websiteLocalService, websitePersistence |
|
Method Summary |
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)
|
Contact |
deleteContact(Contact contact)
Deletes the contact from the database. |
Contact |
deleteContact(long contactId)
Deletes the contact with the primary key from the database. |
List<Contact> |
getContacts(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<Contact> orderByComparator)
|
int |
getContactsCount(long classNameId,
long classPK)
|
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)
|
| Methods inherited from class com.liferay.portal.service.base.ContactLocalServiceBaseImpl |
addContact, afterPropertiesSet, createContact, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchContact, getActionableDynamicQuery, getAddressLocalService, getAddressPersistence, getContact, getContactLocalService, getContactPersistence, getContacts, getContactsCount, getCounterLocalService, getEmailAddressLocalService, getEmailAddressPersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOSGiServiceIdentifier, getPersistedModel, getPhoneLocalService, getPhonePersistence, getUserFinder, getUserLocalService, getUserPersistence, getWebsiteLocalService, getWebsitePersistence, initActionableDynamicQuery, runSQL, setAddressLocalService, setAddressPersistence, setContactLocalService, setContactPersistence, setCounterLocalService, setEmailAddressLocalService, setEmailAddressPersistence, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setPhoneLocalService, setPhonePersistence, setUserFinder, setUserLocalService, setUserPersistence, setWebsiteLocalService, setWebsitePersistence, updateContact |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContactLocalServiceImpl
public ContactLocalServiceImpl()
addContact
@Indexable(type=REINDEX)
public 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 PortalException
- Throws:
PortalException
deleteContact
@Indexable(type=DELETE)
public Contact deleteContact(Contact contact)
- Description copied from class:
ContactLocalServiceBaseImpl
- Deletes the contact from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteContact in interface ContactLocalService- Overrides:
deleteContact in class ContactLocalServiceBaseImpl
- Parameters:
contact - the contact
- Returns:
- the contact that was removed
deleteContact
@Indexable(type=DELETE)
public Contact deleteContact(long contactId)
- Description copied from class:
ContactLocalServiceBaseImpl
- Deletes the contact with the primary key from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteContact in interface ContactLocalService- Overrides:
deleteContact in class ContactLocalServiceBaseImpl
- Parameters:
contactId - the primary key of the contact
- Returns:
- the contact that was removed
getContacts
public List<Contact> getContacts(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<Contact> orderByComparator)
getContactsCount
public int getContactsCount(long classNameId,
long classPK)
updateContact
@Indexable(type=REINDEX)
public 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 PortalException
- Throws:
PortalException
validate
protected void validate(String className,
long classPK)
throws PortalException
- Throws:
PortalException