public class EmailAddressServiceUtil
extends Object
com.liferay.portal.service.impl.EmailAddressServiceImpl and is an
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| Constructor and Description |
|---|
EmailAddressServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static EmailAddress |
addEmailAddress(String className,
long classPK,
String address,
long typeId,
boolean primary,
ServiceContext serviceContext)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static void |
deleteEmailAddress(long emailAddressId) |
static EmailAddress |
fetchEmailAddress(long emailAddressId)
Returns the email address with the primary key.
|
static EmailAddress |
getEmailAddress(long emailAddressId) |
static List<EmailAddress> |
getEmailAddresses(String className,
long classPK) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static EmailAddressService |
getService() |
static EmailAddress |
updateEmailAddress(long emailAddressId,
String address,
long typeId,
boolean primary) |
public static EmailAddress addEmailAddress(String className, long classPK, String address, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException
EmailAddressServiceUtil to access the email address remote service. Add custom service methods to com.liferay.portal.service.impl.EmailAddressServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.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 List<EmailAddress> getEmailAddresses(String className, long classPK) throws PortalException
PortalExceptionpublic static String getOSGiServiceIdentifier()
public static EmailAddress updateEmailAddress(long emailAddressId, String address, long typeId, boolean primary) throws PortalException
PortalExceptionpublic static EmailAddressService getService()