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.List;
023    
024    /**
025     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.PluginSettingServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portal.service.http.PluginSettingServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class PluginSettingSoap implements Serializable {
033            public static PluginSettingSoap toSoapModel(PluginSetting model) {
034                    PluginSettingSoap soapModel = new PluginSettingSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setPluginSettingId(model.getPluginSettingId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setPluginId(model.getPluginId());
040                    soapModel.setPluginType(model.getPluginType());
041                    soapModel.setRoles(model.getRoles());
042                    soapModel.setActive(model.getActive());
043    
044                    return soapModel;
045            }
046    
047            public static PluginSettingSoap[] toSoapModels(PluginSetting[] models) {
048                    PluginSettingSoap[] soapModels = new PluginSettingSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static PluginSettingSoap[][] toSoapModels(PluginSetting[][] models) {
058                    PluginSettingSoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new PluginSettingSoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new PluginSettingSoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static PluginSettingSoap[] toSoapModels(List<PluginSetting> models) {
075                    List<PluginSettingSoap> soapModels = new ArrayList<PluginSettingSoap>(models.size());
076    
077                    for (PluginSetting model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new PluginSettingSoap[soapModels.size()]);
082            }
083    
084            public PluginSettingSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _pluginSettingId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setPluginSettingId(pk);
093            }
094    
095            public long getMvccVersion() {
096                    return _mvccVersion;
097            }
098    
099            public void setMvccVersion(long mvccVersion) {
100                    _mvccVersion = mvccVersion;
101            }
102    
103            public long getPluginSettingId() {
104                    return _pluginSettingId;
105            }
106    
107            public void setPluginSettingId(long pluginSettingId) {
108                    _pluginSettingId = pluginSettingId;
109            }
110    
111            public long getCompanyId() {
112                    return _companyId;
113            }
114    
115            public void setCompanyId(long companyId) {
116                    _companyId = companyId;
117            }
118    
119            public String getPluginId() {
120                    return _pluginId;
121            }
122    
123            public void setPluginId(String pluginId) {
124                    _pluginId = pluginId;
125            }
126    
127            public String getPluginType() {
128                    return _pluginType;
129            }
130    
131            public void setPluginType(String pluginType) {
132                    _pluginType = pluginType;
133            }
134    
135            public String getRoles() {
136                    return _roles;
137            }
138    
139            public void setRoles(String roles) {
140                    _roles = roles;
141            }
142    
143            public boolean getActive() {
144                    return _active;
145            }
146    
147            public boolean isActive() {
148                    return _active;
149            }
150    
151            public void setActive(boolean active) {
152                    _active = active;
153            }
154    
155            private long _mvccVersion;
156            private long _pluginSettingId;
157            private long _companyId;
158            private String _pluginId;
159            private String _pluginType;
160            private String _roles;
161            private boolean _active;
162    }