Class EmailAddressServiceImpl

Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portal.service.base.EmailAddressServiceBaseImpl
com.liferay.portal.service.impl.EmailAddressServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.EmailAddressService

public class EmailAddressServiceImpl extends EmailAddressServiceBaseImpl
Author:
Brian Wing Shun Chan, Alexander Chow
  • Constructor Details

    • EmailAddressServiceImpl

      public EmailAddressServiceImpl()
  • Method Details

    • addEmailAddress

      public com.liferay.portal.kernel.model.EmailAddress addEmailAddress(String externalReferenceCode, String className, long classPK, String address, long typeId, boolean primary, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteEmailAddress

      public void deleteEmailAddress(long emailAddressId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchEmailAddress

      public com.liferay.portal.kernel.model.EmailAddress fetchEmailAddress(long emailAddressId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the email address with the primary key.
      Parameters:
      emailAddressId - the primary key of the email address
      Returns:
      the email address with the primary key, or null if an email address with the primary key could not be found or if the user did not have permission to view the email address
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchEmailAddressByExternalReferenceCode

      public com.liferay.portal.kernel.model.EmailAddress fetchEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getEmailAddress

      public com.liferay.portal.kernel.model.EmailAddress getEmailAddress(long emailAddressId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getEmailAddresses

      public List<com.liferay.portal.kernel.model.EmailAddress> getEmailAddresses(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateEmailAddress

      public com.liferay.portal.kernel.model.EmailAddress updateEmailAddress(String externalReferenceCode, long emailAddressId, String address, long typeId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException