Example usage for com.liferay.portal.kernel.model EmailAddressSoap toSoapModels

List of usage examples for com.liferay.portal.kernel.model EmailAddressSoap toSoapModels

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model EmailAddressSoap toSoapModels.

Prototype

public static EmailAddressSoap[] toSoapModels(List<EmailAddress> models) 

Source Link

Usage

From source file:eu.gerhards.liferay.services.angular.service.http.AngularOrganizationServiceSoap.java

License:Open Source License

public static EmailAddressSoap[] getOrganizationEmailAddresses(long organizationId) throws RemoteException {
    try {//w  w  w  . ja  va 2  s. co  m
        java.util.List<EmailAddress> returnValue = AngularOrganizationServiceUtil
                .getOrganizationEmailAddresses(organizationId);

        return EmailAddressSoap.toSoapModels(returnValue);
    } catch (Exception e) {
        _log.error(e, e);

        throw new RemoteException(e.getMessage());
    }
}

From source file:eu.gerhards.liferay.services.angular.service.http.AngularUserServiceSoap.java

License:Open Source License

public static EmailAddressSoap[] getUserEmailAddresses(long userId) throws RemoteException {
    try {//from   w  ww.j a  va  2s  .  c o m
        java.util.List<EmailAddress> returnValue = AngularUserServiceUtil.getUserEmailAddresses(userId);

        return EmailAddressSoap.toSoapModels(returnValue);
    } catch (Exception e) {
        _log.error(e, e);

        throw new RemoteException(e.getMessage());
    }
}