Class EmailAddressServiceWrapper
Object
com.liferay.portal.kernel.service.EmailAddressServiceWrapper
- All Implemented Interfaces:
BaseService
,EmailAddressService
,ServiceWrapper<EmailAddressService>
public class EmailAddressServiceWrapper
extends Object
implements EmailAddressService, ServiceWrapper<EmailAddressService>
Provides a wrapper for
EmailAddressService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEmailAddress
(String externalReferenceCode, String className, long classPK, String address, long typeId, boolean primary, ServiceContext serviceContext) void
deleteEmailAddress
(long emailAddressId) fetchEmailAddress
(long emailAddressId) Returns the email address with the primary key.fetchEmailAddressByExternalReferenceCode
(String externalReferenceCode, long companyId) getEmailAddress
(long emailAddressId) getEmailAddresses
(String className, long classPK) Returns the OSGi service identifier.void
setWrappedService
(EmailAddressService emailAddressService) updateEmailAddress
(String externalReferenceCode, long emailAddressId, String address, long typeId, boolean primary)
-
Constructor Details
-
EmailAddressServiceWrapper
public EmailAddressServiceWrapper() -
EmailAddressServiceWrapper
-
-
Method Details
-
addEmailAddress
public EmailAddress addEmailAddress(String externalReferenceCode, String className, long classPK, String address, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException - Specified by:
addEmailAddress
in interfaceEmailAddressService
- Throws:
PortalException
-
deleteEmailAddress
- Specified by:
deleteEmailAddress
in interfaceEmailAddressService
- Throws:
PortalException
-
fetchEmailAddress
Returns the email address with the primary key.- Specified by:
fetchEmailAddress
in interfaceEmailAddressService
- 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:
PortalException
-
fetchEmailAddressByExternalReferenceCode
public EmailAddress fetchEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Specified by:
fetchEmailAddressByExternalReferenceCode
in interfaceEmailAddressService
- Throws:
PortalException
-
getEmailAddress
- Specified by:
getEmailAddress
in interfaceEmailAddressService
- Throws:
PortalException
-
getEmailAddresses
- Specified by:
getEmailAddresses
in interfaceEmailAddressService
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceEmailAddressService
- Returns:
- the OSGi service identifier
-
updateEmailAddress
public EmailAddress updateEmailAddress(String externalReferenceCode, long emailAddressId, String address, long typeId, boolean primary) throws PortalException - Specified by:
updateEmailAddress
in interfaceEmailAddressService
- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<EmailAddressService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<EmailAddressService>
-