001    /**
002     * Copyright (c) 2000-2011 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.List;
021    
022    /**
023     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.UserGroupServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portal.service.http.UserGroupServiceSoap
027     * @generated
028     */
029    public class UserGroupSoap implements Serializable {
030            public static UserGroupSoap toSoapModel(UserGroup model) {
031                    UserGroupSoap soapModel = new UserGroupSoap();
032    
033                    soapModel.setUserGroupId(model.getUserGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setParentUserGroupId(model.getParentUserGroupId());
036                    soapModel.setName(model.getName());
037                    soapModel.setDescription(model.getDescription());
038                    soapModel.setPublicLayoutSetPrototypeId(model.getPublicLayoutSetPrototypeId());
039                    soapModel.setPrivateLayoutSetPrototypeId(model.getPrivateLayoutSetPrototypeId());
040                    soapModel.setAddedByLDAPImport(model.getAddedByLDAPImport());
041    
042                    return soapModel;
043            }
044    
045            public static UserGroupSoap[] toSoapModels(UserGroup[] models) {
046                    UserGroupSoap[] soapModels = new UserGroupSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static UserGroupSoap[][] toSoapModels(UserGroup[][] models) {
056                    UserGroupSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new UserGroupSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new UserGroupSoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static UserGroupSoap[] toSoapModels(List<UserGroup> models) {
073                    List<UserGroupSoap> soapModels = new ArrayList<UserGroupSoap>(models.size());
074    
075                    for (UserGroup model : models) {
076                            soapModels.add(toSoapModel(model));
077                    }
078    
079                    return soapModels.toArray(new UserGroupSoap[soapModels.size()]);
080            }
081    
082            public UserGroupSoap() {
083            }
084    
085            public long getPrimaryKey() {
086                    return _userGroupId;
087            }
088    
089            public void setPrimaryKey(long pk) {
090                    setUserGroupId(pk);
091            }
092    
093            public long getUserGroupId() {
094                    return _userGroupId;
095            }
096    
097            public void setUserGroupId(long userGroupId) {
098                    _userGroupId = userGroupId;
099            }
100    
101            public long getCompanyId() {
102                    return _companyId;
103            }
104    
105            public void setCompanyId(long companyId) {
106                    _companyId = companyId;
107            }
108    
109            public long getParentUserGroupId() {
110                    return _parentUserGroupId;
111            }
112    
113            public void setParentUserGroupId(long parentUserGroupId) {
114                    _parentUserGroupId = parentUserGroupId;
115            }
116    
117            public String getName() {
118                    return _name;
119            }
120    
121            public void setName(String name) {
122                    _name = name;
123            }
124    
125            public String getDescription() {
126                    return _description;
127            }
128    
129            public void setDescription(String description) {
130                    _description = description;
131            }
132    
133            public long getPublicLayoutSetPrototypeId() {
134                    return _publicLayoutSetPrototypeId;
135            }
136    
137            public void setPublicLayoutSetPrototypeId(long publicLayoutSetPrototypeId) {
138                    _publicLayoutSetPrototypeId = publicLayoutSetPrototypeId;
139            }
140    
141            public long getPrivateLayoutSetPrototypeId() {
142                    return _privateLayoutSetPrototypeId;
143            }
144    
145            public void setPrivateLayoutSetPrototypeId(long privateLayoutSetPrototypeId) {
146                    _privateLayoutSetPrototypeId = privateLayoutSetPrototypeId;
147            }
148    
149            public boolean getAddedByLDAPImport() {
150                    return _addedByLDAPImport;
151            }
152    
153            public boolean isAddedByLDAPImport() {
154                    return _addedByLDAPImport;
155            }
156    
157            public void setAddedByLDAPImport(boolean addedByLDAPImport) {
158                    _addedByLDAPImport = addedByLDAPImport;
159            }
160    
161            private long _userGroupId;
162            private long _companyId;
163            private long _parentUserGroupId;
164            private String _name;
165            private String _description;
166            private long _publicLayoutSetPrototypeId;
167            private long _privateLayoutSetPrototypeId;
168            private boolean _addedByLDAPImport;
169    }