@ProviderType
public class EmailAddressServiceUtil
extends Object
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
,
EmailAddressServiceImpl
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) |
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
PortalException
public static void deleteEmailAddress(long emailAddressId) throws PortalException
PortalException
public 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 addressPortalException
public static EmailAddress getEmailAddress(long emailAddressId) throws PortalException
PortalException
public static List<EmailAddress> getEmailAddresses(String className, long classPK) throws PortalException
PortalException
public static String getOSGiServiceIdentifier()
public static EmailAddress updateEmailAddress(long emailAddressId, String address, long typeId, boolean primary) throws PortalException
PortalException
public static EmailAddressService getService()