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

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

Introduction

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

Prototype

public static AddressSoap[] toSoapModels(List<Address> models) 

Source Link

Usage

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

License:Open Source License

public static AddressSoap[] getOrganizationAdresses(long organizationId) throws RemoteException {
    try {//  w  w w. j  a v  a  2  s.  c om
        java.util.List<Address> returnValue = AngularOrganizationServiceUtil
                .getOrganizationAdresses(organizationId);

        return AddressSoap.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 AddressSoap[] getUserAddress(long userId) throws RemoteException {
    try {//  w ww . java  2s. c  o  m
        java.util.List<Address> returnValue = AngularUserServiceUtil.getUserAddress(userId);

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

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