Liferay 7.0-ce-b4

com.liferay.portal.service
Class EmailAddressServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.EmailAddressServiceWrapper
All Implemented Interfaces:
BaseService, EmailAddressService, ServiceWrapper<EmailAddressService>

@ProviderType
public class EmailAddressServiceWrapper
extends Object
implements EmailAddressService, ServiceWrapper<EmailAddressService>

Provides a wrapper for EmailAddressService.

See Also:
EmailAddressService

Constructor Summary
EmailAddressServiceWrapper(EmailAddressService emailAddressService)
           
 
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.
 EmailAddressService getWrappedService()
           
 void setWrappedService(EmailAddressService emailAddressService)
           
 EmailAddress updateEmailAddress(long emailAddressId, String address, long typeId, boolean primary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailAddressServiceWrapper

public EmailAddressServiceWrapper(EmailAddressService emailAddressService)
Method Detail

addEmailAddress

public EmailAddress addEmailAddress(String className,
                                    long classPK,
                                    String address,
                                    long typeId,
                                    boolean primary,
                                    ServiceContext serviceContext)
                             throws PortalException
Specified by:
addEmailAddress in interface EmailAddressService
Throws:
PortalException

deleteEmailAddress

public void deleteEmailAddress(long emailAddressId)
                        throws PortalException
Specified by:
deleteEmailAddress in interface EmailAddressService
Throws:
PortalException

fetchEmailAddress

public EmailAddress fetchEmailAddress(long emailAddressId)
                               throws PortalException
Returns the email address with the primary key.

Specified by:
fetchEmailAddress in interface EmailAddressService
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

public EmailAddress getEmailAddress(long emailAddressId)
                             throws PortalException
Specified by:
getEmailAddress in interface EmailAddressService
Throws:
PortalException

getEmailAddresses

public List<EmailAddress> getEmailAddresses(String className,
                                            long classPK)
                                     throws PortalException
Specified by:
getEmailAddresses in interface EmailAddressService
Throws:
PortalException

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface EmailAddressService
Returns:
the OSGi service identifier

updateEmailAddress

public EmailAddress updateEmailAddress(long emailAddressId,
                                       String address,
                                       long typeId,
                                       boolean primary)
                                throws PortalException
Specified by:
updateEmailAddress in interface EmailAddressService
Throws:
PortalException

getWrappedService

public EmailAddressService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<EmailAddressService>

setWrappedService

public void setWrappedService(EmailAddressService emailAddressService)
Specified by:
setWrappedService in interface ServiceWrapper<EmailAddressService>

Liferay 7.0-ce-b4