Package com.liferay.portal.service.impl
Class PhoneLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
com.liferay.portal.service.impl.PhoneLocalServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Phone>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.PhoneLocalService
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
counterLocalService, phoneLocalService, phonePersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.PhoneaddPhone(String externalReferenceCode, 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.PhonedeletePhone(long phoneId) Deletes the phone with the primary key from the database.com.liferay.portal.kernel.model.PhonedeletePhone(com.liferay.portal.kernel.model.Phone phone) Deletes the phone from the database.voiddeletePhones(long companyId, String className, long classPK) List<com.liferay.portal.kernel.model.Phone>List<com.liferay.portal.kernel.model.Phone>com.liferay.portal.kernel.model.PhoneupdatePhone(String externalReferenceCode, long phoneId, String number, String extension, long listTypeId, boolean primary) protected voidvalidate(long phoneId, long companyId, long classNameId, long classPK, boolean primary) protected voidvalidate(long phoneId, long companyId, long classNameId, long classPK, String number, String extension, long listTypeId, boolean primary) Methods inherited from class com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
addPhone, afterPropertiesSet, createPersistedModel, createPhone, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchPhone, fetchPhoneByExternalReferenceCode, fetchPhoneByUuidAndCompanyId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPhone, getPhoneByExternalReferenceCode, getPhoneByUuidAndCompanyId, getPhoneLocalService, getPhonePersistence, getPhones, getPhonesCount, initActionableDynamicQuery, runSQL, setCounterLocalService, setPhoneLocalService, setPhonePersistence, updatePhone, updateWithUnsafeFunctionMethods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
PhoneLocalServiceImpl
public PhoneLocalServiceImpl()
-
-
Method Details
-
addPhone
public com.liferay.portal.kernel.model.Phone addPhone(String externalReferenceCode, 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePhone
public com.liferay.portal.kernel.model.Phone deletePhone(long phoneId) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:PhoneLocalServiceBaseImplDeletes the phone with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deletePhonein interfacecom.liferay.portal.kernel.service.PhoneLocalService- Overrides:
deletePhonein classPhoneLocalServiceBaseImpl- Parameters:
phoneId- the primary key of the phone- Returns:
- the phone that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a phone with the primary key could not be found
-
deletePhone
@SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.Phone deletePhone(com.liferay.portal.kernel.model.Phone phone) Description copied from class:PhoneLocalServiceBaseImplDeletes the phone from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deletePhonein interfacecom.liferay.portal.kernel.service.PhoneLocalService- Overrides:
deletePhonein classPhoneLocalServiceBaseImpl- Parameters:
phone- the phone- Returns:
- the phone that was removed
-
deletePhones
-
getPhones
-
getPhones
-
updatePhone
public com.liferay.portal.kernel.model.Phone updatePhone(String externalReferenceCode, long phoneId, String number, String extension, long listTypeId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validate
protected void validate(long phoneId, long companyId, long classNameId, long classPK, boolean primary) -
validate
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-