001    /**
002     * Copyright (c) 2000-present 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.kernel.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.UserGroupServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.UserGroupServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class UserGroupSoap implements Serializable {
034            public static UserGroupSoap toSoapModel(UserGroup model) {
035                    UserGroupSoap soapModel = new UserGroupSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setUserGroupId(model.getUserGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setParentUserGroupId(model.getParentUserGroupId());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setAddedByLDAPImport(model.getAddedByLDAPImport());
049    
050                    return soapModel;
051            }
052    
053            public static UserGroupSoap[] toSoapModels(UserGroup[] models) {
054                    UserGroupSoap[] soapModels = new UserGroupSoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static UserGroupSoap[][] toSoapModels(UserGroup[][] models) {
064                    UserGroupSoap[][] soapModels = null;
065    
066                    if (models.length > 0) {
067                            soapModels = new UserGroupSoap[models.length][models[0].length];
068                    }
069                    else {
070                            soapModels = new UserGroupSoap[0][0];
071                    }
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModels(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static UserGroupSoap[] toSoapModels(List<UserGroup> models) {
081                    List<UserGroupSoap> soapModels = new ArrayList<UserGroupSoap>(models.size());
082    
083                    for (UserGroup model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new UserGroupSoap[soapModels.size()]);
088            }
089    
090            public UserGroupSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _userGroupId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setUserGroupId(pk);
099            }
100    
101            public long getMvccVersion() {
102                    return _mvccVersion;
103            }
104    
105            public void setMvccVersion(long mvccVersion) {
106                    _mvccVersion = mvccVersion;
107            }
108    
109            public String getUuid() {
110                    return _uuid;
111            }
112    
113            public void setUuid(String uuid) {
114                    _uuid = uuid;
115            }
116    
117            public long getUserGroupId() {
118                    return _userGroupId;
119            }
120    
121            public void setUserGroupId(long userGroupId) {
122                    _userGroupId = userGroupId;
123            }
124    
125            public long getCompanyId() {
126                    return _companyId;
127            }
128    
129            public void setCompanyId(long companyId) {
130                    _companyId = companyId;
131            }
132    
133            public long getUserId() {
134                    return _userId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public String getUserName() {
142                    return _userName;
143            }
144    
145            public void setUserName(String userName) {
146                    _userName = userName;
147            }
148    
149            public Date getCreateDate() {
150                    return _createDate;
151            }
152    
153            public void setCreateDate(Date createDate) {
154                    _createDate = createDate;
155            }
156    
157            public Date getModifiedDate() {
158                    return _modifiedDate;
159            }
160    
161            public void setModifiedDate(Date modifiedDate) {
162                    _modifiedDate = modifiedDate;
163            }
164    
165            public long getParentUserGroupId() {
166                    return _parentUserGroupId;
167            }
168    
169            public void setParentUserGroupId(long parentUserGroupId) {
170                    _parentUserGroupId = parentUserGroupId;
171            }
172    
173            public String getName() {
174                    return _name;
175            }
176    
177            public void setName(String name) {
178                    _name = name;
179            }
180    
181            public String getDescription() {
182                    return _description;
183            }
184    
185            public void setDescription(String description) {
186                    _description = description;
187            }
188    
189            public boolean getAddedByLDAPImport() {
190                    return _addedByLDAPImport;
191            }
192    
193            public boolean isAddedByLDAPImport() {
194                    return _addedByLDAPImport;
195            }
196    
197            public void setAddedByLDAPImport(boolean addedByLDAPImport) {
198                    _addedByLDAPImport = addedByLDAPImport;
199            }
200    
201            private long _mvccVersion;
202            private String _uuid;
203            private long _userGroupId;
204            private long _companyId;
205            private long _userId;
206            private String _userName;
207            private Date _createDate;
208            private Date _modifiedDate;
209            private long _parentUserGroupId;
210            private String _name;
211            private String _description;
212            private boolean _addedByLDAPImport;
213    }