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

public class PhoneLocalServiceImpl extends PhoneLocalServiceBaseImpl
Author:
Brian Wing Shun Chan
  • 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: PhoneLocalServiceBaseImpl
      Deletes 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:
      deletePhone in interface com.liferay.portal.kernel.service.PhoneLocalService
      Overrides:
      deletePhone in class PhoneLocalServiceBaseImpl
      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: PhoneLocalServiceBaseImpl
      Deletes 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:
      deletePhone in interface com.liferay.portal.kernel.service.PhoneLocalService
      Overrides:
      deletePhone in class PhoneLocalServiceBaseImpl
      Parameters:
      phone - the phone
      Returns:
      the phone that was removed
    • deletePhones

      public void deletePhones(long companyId, String className, long classPK)
    • getPhones

      public List<com.liferay.portal.kernel.model.Phone> getPhones()
    • getPhones

      public List<com.liferay.portal.kernel.model.Phone> getPhones(long companyId, String className, long classPK)
    • 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