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

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

Introduction

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

Prototype

public static OrganizationSoap[] toSoapModels(List<Organization> models) 

Source Link

Usage

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

License:Open Source License

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

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

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