Liferay 7.0-ce-b4

com.liferay.portal.service
Interface EmailAddressService

All Superinterfaces:
BaseService
All Known Implementing Classes:
EmailAddressServiceBaseImpl, EmailAddressServiceImpl, EmailAddressServiceWrapper

@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface EmailAddressService
extends BaseService

Provides the remote service interface for EmailAddress. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
EmailAddressServiceUtil, EmailAddressServiceBaseImpl, EmailAddressServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 EmailAddress addEmailAddress(String className, long classPK, String address, long typeId, boolean primary, ServiceContext serviceContext)
           
 void deleteEmailAddress(long emailAddressId)
           
 EmailAddress fetchEmailAddress(long emailAddressId)
          Returns the email address with the primary key.
 EmailAddress getEmailAddress(long emailAddressId)
           
 List<EmailAddress> getEmailAddresses(String className, long classPK)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 EmailAddress updateEmailAddress(long emailAddressId, String address, long typeId, boolean primary)
           
 

Method Detail

addEmailAddress

EmailAddress addEmailAddress(String className,
                             long classPK,
                             String address,
                             long typeId,
                             boolean primary,
                             ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

deleteEmailAddress

void deleteEmailAddress(long emailAddressId)
                        throws PortalException
Throws:
PortalException

fetchEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
EmailAddress fetchEmailAddress(long emailAddressId)
                               throws 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:
PortalException

getEmailAddress

@Transactional(propagation=SUPPORTS,
               readOnly=true)
EmailAddress getEmailAddress(long emailAddressId)
                             throws PortalException
Throws:
PortalException

getEmailAddresses

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<EmailAddress> getEmailAddresses(String className,
                                                                              long classPK)
                                     throws PortalException
Throws:
PortalException

getOSGiServiceIdentifier

String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

updateEmailAddress

EmailAddress updateEmailAddress(long emailAddressId,
                                String address,
                                long typeId,
                                boolean primary)
                                throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4