001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * <p>
025     * This class is used by
026     * {@link com.liferay.portal.service.http.TeamServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portal.service.http.TeamServiceSoap
031     * @generated
032     */
033    public class TeamSoap implements Serializable {
034            public static TeamSoap toSoapModel(Team model) {
035                    TeamSoap soapModel = new TeamSoap();
036    
037                    soapModel.setTeamId(model.getTeamId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setUserName(model.getUserName());
041                    soapModel.setCreateDate(model.getCreateDate());
042                    soapModel.setModifiedDate(model.getModifiedDate());
043                    soapModel.setGroupId(model.getGroupId());
044                    soapModel.setName(model.getName());
045                    soapModel.setDescription(model.getDescription());
046    
047                    return soapModel;
048            }
049    
050            public static TeamSoap[] toSoapModels(Team[] models) {
051                    TeamSoap[] soapModels = new TeamSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static TeamSoap[][] toSoapModels(Team[][] models) {
061                    TeamSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new TeamSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new TeamSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static TeamSoap[] toSoapModels(List<Team> models) {
078                    List<TeamSoap> soapModels = new ArrayList<TeamSoap>(models.size());
079    
080                    for (Team model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new TeamSoap[soapModels.size()]);
085            }
086    
087            public TeamSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _teamId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setTeamId(pk);
096            }
097    
098            public long getTeamId() {
099                    return _teamId;
100            }
101    
102            public void setTeamId(long teamId) {
103                    _teamId = teamId;
104            }
105    
106            public long getCompanyId() {
107                    return _companyId;
108            }
109    
110            public void setCompanyId(long companyId) {
111                    _companyId = companyId;
112            }
113    
114            public long getUserId() {
115                    return _userId;
116            }
117    
118            public void setUserId(long userId) {
119                    _userId = userId;
120            }
121    
122            public String getUserName() {
123                    return _userName;
124            }
125    
126            public void setUserName(String userName) {
127                    _userName = userName;
128            }
129    
130            public Date getCreateDate() {
131                    return _createDate;
132            }
133    
134            public void setCreateDate(Date createDate) {
135                    _createDate = createDate;
136            }
137    
138            public Date getModifiedDate() {
139                    return _modifiedDate;
140            }
141    
142            public void setModifiedDate(Date modifiedDate) {
143                    _modifiedDate = modifiedDate;
144            }
145    
146            public long getGroupId() {
147                    return _groupId;
148            }
149    
150            public void setGroupId(long groupId) {
151                    _groupId = groupId;
152            }
153    
154            public String getName() {
155                    return _name;
156            }
157    
158            public void setName(String name) {
159                    _name = name;
160            }
161    
162            public String getDescription() {
163                    return _description;
164            }
165    
166            public void setDescription(String description) {
167                    _description = description;
168            }
169    
170            private long _teamId;
171            private long _companyId;
172            private long _userId;
173            private String _userName;
174            private Date _createDate;
175            private Date _modifiedDate;
176            private long _groupId;
177            private String _name;
178            private String _description;
179    }