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

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

Introduction

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

Prototype

public static UserSoap[] toSoapModels(List<User> models) 

Source Link

Usage

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

License:Open Source License

public static UserSoap[] getOrganizationUsers(long organizationId) throws RemoteException {
    try {//from  w  w w  .  jav a 2  s  .c  om
        java.util.List<User> returnValue = AngularOrganizationServiceUtil.getOrganizationUsers(organizationId);

        return UserSoap.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 UserSoap[] getCompanyUsers(long companyId) throws RemoteException {
    try {//from  w w  w  . j  a  v  a2s.c  o m
        java.util.List<User> returnValue = AngularUserServiceUtil.getCompanyUsers(companyId);

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

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