public class PhoneLocalServiceImpl extends PhoneLocalServiceBaseImpl
counterLocalService, persistedModelLocalServiceRegistry, phoneLocalService, phonePersistence
Constructor and Description |
---|
PhoneLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.model.Phone |
addPhone(long userId,
String className,
long classPK,
String number,
String extension,
long listTypeId,
boolean primary,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.model.Phone |
deletePhone(long phoneId)
Deletes the phone with the primary key from the database.
|
com.liferay.portal.kernel.model.Phone |
deletePhone(com.liferay.portal.kernel.model.Phone phone)
Deletes the phone from the database.
|
void |
deletePhones(long companyId,
String className,
long classPK) |
List<com.liferay.portal.kernel.model.Phone> |
getPhones() |
List<com.liferay.portal.kernel.model.Phone> |
getPhones(long companyId,
String className,
long classPK) |
com.liferay.portal.kernel.model.Phone |
updatePhone(long phoneId,
String number,
String extension,
long listTypeId,
boolean primary) |
protected void |
validate(long phoneId,
long companyId,
long classNameId,
long classPK,
boolean primary) |
protected void |
validate(long phoneId,
long companyId,
long classNameId,
long classPK,
String number,
String extension,
long listTypeId,
boolean primary) |
addPhone, afterPropertiesSet, createPersistedModel, createPhone, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchPhone, fetchPhoneByUuidAndCompanyId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPhone, getPhoneByUuidAndCompanyId, getPhoneLocalService, getPhonePersistence, getPhones, getPhonesCount, initActionableDynamicQuery, runSQL, setCounterLocalService, setPhoneLocalService, setPhonePersistence, updatePhone, updateWithUnsafeFunction
public com.liferay.portal.kernel.model.Phone addPhone(long userId, String className, long classPK, String number, String extension, long listTypeId, boolean primary, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Phone deletePhone(long phoneId) throws com.liferay.portal.kernel.exception.PortalException
PhoneLocalServiceBaseImpl
Important: Inspect PhoneLocalServiceImpl 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.
deletePhone
in interface com.liferay.portal.kernel.service.PhoneLocalService
deletePhone
in class PhoneLocalServiceBaseImpl
phoneId
- the primary key of the phonecom.liferay.portal.kernel.exception.PortalException
- if a phone with the primary key could not be found@SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.Phone deletePhone(com.liferay.portal.kernel.model.Phone phone)
PhoneLocalServiceBaseImpl
Important: Inspect PhoneLocalServiceImpl 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.
deletePhone
in interface com.liferay.portal.kernel.service.PhoneLocalService
deletePhone
in class PhoneLocalServiceBaseImpl
phone
- the phonepublic void deletePhones(long companyId, String className, long classPK)
public List<com.liferay.portal.kernel.model.Phone> getPhones()
public List<com.liferay.portal.kernel.model.Phone> getPhones(long companyId, String className, long classPK)
public com.liferay.portal.kernel.model.Phone updatePhone(long phoneId, String number, String extension, long listTypeId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validate(long phoneId, long companyId, long classNameId, long classPK, boolean primary)
protected void validate(long phoneId, long companyId, long classNameId, long classPK, String number, String extension, long listTypeId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException