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