/** * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.ese.ils.beta.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * This class is used by SOAP remote services. * * @author edik * @generated */ public class UserInfoSoap implements Serializable { public static UserInfoSoap toSoapModel(UserInfo model) { UserInfoSoap soapModel = new UserInfoSoap(); soapModel.setUserInfoId(model.getUserInfoId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); soapModel.setModuleId(model.getModuleId()); return soapModel; } public static UserInfoSoap[] toSoapModels(UserInfo[] models) { UserInfoSoap[] soapModels = new UserInfoSoap[models.length]; for (int i = 0; i < models.length; i++) { soapModels[i] = toSoapModel(models[i]); } return soapModels; } public static UserInfoSoap[][] toSoapModels(UserInfo[][] models) { UserInfoSoap[][] soapModels = null; if (models.length > 0) { soapModels = new UserInfoSoap[models.length][models[0].length]; } else { soapModels = new UserInfoSoap[0][0]; } for (int i = 0; i < models.length; i++) { soapModels[i] = toSoapModels(models[i]); } return soapModels; } public static UserInfoSoap[] toSoapModels(List<UserInfo> models) { List<UserInfoSoap> soapModels = new ArrayList<UserInfoSoap>(models.size()); for (UserInfo model : models) { soapModels.add(toSoapModel(model)); } return soapModels.toArray(new UserInfoSoap[soapModels.size()]); } public UserInfoSoap() { } public long getPrimaryKey() { return _userInfoId; } public void setPrimaryKey(long pk) { setUserInfoId(pk); } public long getUserInfoId() { return _userInfoId; } public void setUserInfoId(long userInfoId) { _userInfoId = userInfoId; } public long getCompanyId() { return _companyId; } public void setCompanyId(long companyId) { _companyId = companyId; } public long getUserId() { return _userId; } public void setUserId(long userId) { _userId = userId; } public long getModuleId() { return _moduleId; } public void setModuleId(long moduleId) { _moduleId = moduleId; } private long _userInfoId; private long _companyId; private long _userId; private long _moduleId; }