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.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                    soapModel.setLastPublishDate(model.getLastPublishDate());
050    
051                    return soapModel;
052            }
053    
054            public static UserGroupSoap[] toSoapModels(UserGroup[] models) {
055                    UserGroupSoap[] soapModels = new UserGroupSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static UserGroupSoap[][] toSoapModels(UserGroup[][] models) {
065                    UserGroupSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new UserGroupSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new UserGroupSoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static UserGroupSoap[] toSoapModels(List<UserGroup> models) {
082                    List<UserGroupSoap> soapModels = new ArrayList<UserGroupSoap>(models.size());
083    
084                    for (UserGroup model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new UserGroupSoap[soapModels.size()]);
089            }
090    
091            public UserGroupSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _userGroupId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setUserGroupId(pk);
100            }
101    
102            public long getMvccVersion() {
103                    return _mvccVersion;
104            }
105    
106            public void setMvccVersion(long mvccVersion) {
107                    _mvccVersion = mvccVersion;
108            }
109    
110            public String getUuid() {
111                    return _uuid;
112            }
113    
114            public void setUuid(String uuid) {
115                    _uuid = uuid;
116            }
117    
118            public long getUserGroupId() {
119                    return _userGroupId;
120            }
121    
122            public void setUserGroupId(long userGroupId) {
123                    _userGroupId = userGroupId;
124            }
125    
126            public long getCompanyId() {
127                    return _companyId;
128            }
129    
130            public void setCompanyId(long companyId) {
131                    _companyId = companyId;
132            }
133    
134            public long getUserId() {
135                    return _userId;
136            }
137    
138            public void setUserId(long userId) {
139                    _userId = userId;
140            }
141    
142            public String getUserName() {
143                    return _userName;
144            }
145    
146            public void setUserName(String userName) {
147                    _userName = userName;
148            }
149    
150            public Date getCreateDate() {
151                    return _createDate;
152            }
153    
154            public void setCreateDate(Date createDate) {
155                    _createDate = createDate;
156            }
157    
158            public Date getModifiedDate() {
159                    return _modifiedDate;
160            }
161    
162            public void setModifiedDate(Date modifiedDate) {
163                    _modifiedDate = modifiedDate;
164            }
165    
166            public long getParentUserGroupId() {
167                    return _parentUserGroupId;
168            }
169    
170            public void setParentUserGroupId(long parentUserGroupId) {
171                    _parentUserGroupId = parentUserGroupId;
172            }
173    
174            public String getName() {
175                    return _name;
176            }
177    
178            public void setName(String name) {
179                    _name = name;
180            }
181    
182            public String getDescription() {
183                    return _description;
184            }
185    
186            public void setDescription(String description) {
187                    _description = description;
188            }
189    
190            public boolean getAddedByLDAPImport() {
191                    return _addedByLDAPImport;
192            }
193    
194            public boolean isAddedByLDAPImport() {
195                    return _addedByLDAPImport;
196            }
197    
198            public void setAddedByLDAPImport(boolean addedByLDAPImport) {
199                    _addedByLDAPImport = addedByLDAPImport;
200            }
201    
202            public Date getLastPublishDate() {
203                    return _lastPublishDate;
204            }
205    
206            public void setLastPublishDate(Date lastPublishDate) {
207                    _lastPublishDate = lastPublishDate;
208            }
209    
210            private long _mvccVersion;
211            private String _uuid;
212            private long _userGroupId;
213            private long _companyId;
214            private long _userId;
215            private String _userName;
216            private Date _createDate;
217            private Date _modifiedDate;
218            private long _parentUserGroupId;
219            private String _name;
220            private String _description;
221            private boolean _addedByLDAPImport;
222            private Date _lastPublishDate;
223    }