@ProviderType
public class EmailAddressServiceUtil
extends java.lang.Object
com.liferay.portal.service.impl.EmailAddressServiceImpl and is the
primary access point for service operations in application layer code running
on a remote server. Methods of this service are expected to have security
checks based on the propagated JAAS credentials because this service can be
accessed remotely.EmailAddressService,
EmailAddressServiceBaseImpl,
com.liferay.portal.service.impl.EmailAddressServiceImpl| Constructor and Description |
|---|
EmailAddressServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static EmailAddress |
addEmailAddress(java.lang.String className,
long classPK,
java.lang.String address,
long typeId,
boolean primary)
Deprecated.
As of 6.2.0, replaced by
#addEmailAddress(String,
long, String, int, boolean, ServiceContext) |
static EmailAddress |
addEmailAddress(java.lang.String className,
long classPK,
java.lang.String address,
long typeId,
boolean primary,
ServiceContext serviceContext) |
static void |
deleteEmailAddress(long emailAddressId) |
static EmailAddress |
fetchEmailAddress(long emailAddressId)
Returns the email address with the primary key.
|
static EmailAddress |
getEmailAddress(long emailAddressId) |
static java.util.List<EmailAddress> |
getEmailAddresses(java.lang.String className,
long classPK) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static EmailAddressService |
getService() |
void |
setService(EmailAddressService service)
Deprecated.
As of 6.2.0
|
static EmailAddress |
updateEmailAddress(long emailAddressId,
java.lang.String address,
long typeId,
boolean primary) |
@Deprecated public static EmailAddress addEmailAddress(java.lang.String className, long classPK, java.lang.String address, long typeId, boolean primary) throws PortalException
#addEmailAddress(String,
long, String, int, boolean, ServiceContext)PortalExceptionpublic static EmailAddress addEmailAddress(java.lang.String className, long classPK, java.lang.String address, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void deleteEmailAddress(long emailAddressId)
throws PortalException
PortalExceptionpublic static EmailAddress fetchEmailAddress(long emailAddressId) throws PortalException
emailAddressId - the primary key of the email addressnull if
an email address with the primary key could not be found or if
the user did not have permission to view the email addressPortalExceptionpublic static EmailAddress getEmailAddress(long emailAddressId) throws PortalException
PortalExceptionpublic static java.util.List<EmailAddress> getEmailAddresses(java.lang.String className, long classPK) throws PortalException
PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static EmailAddress updateEmailAddress(long emailAddressId, java.lang.String address, long typeId, boolean primary) throws PortalException
PortalExceptionpublic static EmailAddressService getService()
@Deprecated public void setService(EmailAddressService service)