1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   * <a href="PluginSettingSoap.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class is used by
37   * <code>com.liferay.portal.service.http.PluginSettingServiceSoap</code>.
38   * </p>
39   *
40   * @author Brian Wing Shun Chan
41   *
42   * @see com.liferay.portal.service.http.PluginSettingServiceSoap
43   *
44   */
45  public class PluginSettingSoap implements Serializable {
46      public static PluginSettingSoap toSoapModel(PluginSetting model) {
47          PluginSettingSoap soapModel = new PluginSettingSoap();
48  
49          soapModel.setPluginSettingId(model.getPluginSettingId());
50          soapModel.setCompanyId(model.getCompanyId());
51          soapModel.setPluginId(model.getPluginId());
52          soapModel.setPluginType(model.getPluginType());
53          soapModel.setRoles(model.getRoles());
54          soapModel.setActive(model.getActive());
55  
56          return soapModel;
57      }
58  
59      public static PluginSettingSoap[] toSoapModels(PluginSetting[] models) {
60          PluginSettingSoap[] soapModels = new PluginSettingSoap[models.length];
61  
62          for (int i = 0; i < models.length; i++) {
63              soapModels[i] = toSoapModel(models[i]);
64          }
65  
66          return soapModels;
67      }
68  
69      public static PluginSettingSoap[][] toSoapModels(PluginSetting[][] models) {
70          PluginSettingSoap[][] soapModels = null;
71  
72          if (models.length > 0) {
73              soapModels = new PluginSettingSoap[models.length][models[0].length];
74          }
75          else {
76              soapModels = new PluginSettingSoap[0][0];
77          }
78  
79          for (int i = 0; i < models.length; i++) {
80              soapModels[i] = toSoapModels(models[i]);
81          }
82  
83          return soapModels;
84      }
85  
86      public static PluginSettingSoap[] toSoapModels(List<PluginSetting> models) {
87          List<PluginSettingSoap> soapModels = new ArrayList<PluginSettingSoap>(models.size());
88  
89          for (PluginSetting model : models) {
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return soapModels.toArray(new PluginSettingSoap[soapModels.size()]);
94      }
95  
96      public PluginSettingSoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _pluginSettingId;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setPluginSettingId(pk);
105     }
106 
107     public long getPluginSettingId() {
108         return _pluginSettingId;
109     }
110 
111     public void setPluginSettingId(long pluginSettingId) {
112         _pluginSettingId = pluginSettingId;
113     }
114 
115     public long getCompanyId() {
116         return _companyId;
117     }
118 
119     public void setCompanyId(long companyId) {
120         _companyId = companyId;
121     }
122 
123     public String getPluginId() {
124         return _pluginId;
125     }
126 
127     public void setPluginId(String pluginId) {
128         _pluginId = pluginId;
129     }
130 
131     public String getPluginType() {
132         return _pluginType;
133     }
134 
135     public void setPluginType(String pluginType) {
136         _pluginType = pluginType;
137     }
138 
139     public String getRoles() {
140         return _roles;
141     }
142 
143     public void setRoles(String roles) {
144         _roles = roles;
145     }
146 
147     public boolean getActive() {
148         return _active;
149     }
150 
151     public boolean isActive() {
152         return _active;
153     }
154 
155     public void setActive(boolean active) {
156         _active = active;
157     }
158 
159     private long _pluginSettingId;
160     private long _companyId;
161     private String _pluginId;
162     private String _pluginType;
163     private String _roles;
164     private boolean _active;
165 }