1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="PluginSettingSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.PluginSettingServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.PluginSettingServiceSoap
37   * @generated
38   */
39  public class PluginSettingSoap implements Serializable {
40      public static PluginSettingSoap toSoapModel(PluginSetting model) {
41          PluginSettingSoap soapModel = new PluginSettingSoap();
42  
43          soapModel.setPluginSettingId(model.getPluginSettingId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setPluginId(model.getPluginId());
46          soapModel.setPluginType(model.getPluginType());
47          soapModel.setRoles(model.getRoles());
48          soapModel.setActive(model.getActive());
49  
50          return soapModel;
51      }
52  
53      public static PluginSettingSoap[] toSoapModels(PluginSetting[] models) {
54          PluginSettingSoap[] soapModels = new PluginSettingSoap[models.length];
55  
56          for (int i = 0; i < models.length; i++) {
57              soapModels[i] = toSoapModel(models[i]);
58          }
59  
60          return soapModels;
61      }
62  
63      public static PluginSettingSoap[][] toSoapModels(PluginSetting[][] models) {
64          PluginSettingSoap[][] soapModels = null;
65  
66          if (models.length > 0) {
67              soapModels = new PluginSettingSoap[models.length][models[0].length];
68          }
69          else {
70              soapModels = new PluginSettingSoap[0][0];
71          }
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModels(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static PluginSettingSoap[] toSoapModels(List<PluginSetting> models) {
81          List<PluginSettingSoap> soapModels = new ArrayList<PluginSettingSoap>(models.size());
82  
83          for (PluginSetting model : models) {
84              soapModels.add(toSoapModel(model));
85          }
86  
87          return soapModels.toArray(new PluginSettingSoap[soapModels.size()]);
88      }
89  
90      public PluginSettingSoap() {
91      }
92  
93      public long getPrimaryKey() {
94          return _pluginSettingId;
95      }
96  
97      public void setPrimaryKey(long pk) {
98          setPluginSettingId(pk);
99      }
100 
101     public long getPluginSettingId() {
102         return _pluginSettingId;
103     }
104 
105     public void setPluginSettingId(long pluginSettingId) {
106         _pluginSettingId = pluginSettingId;
107     }
108 
109     public long getCompanyId() {
110         return _companyId;
111     }
112 
113     public void setCompanyId(long companyId) {
114         _companyId = companyId;
115     }
116 
117     public String getPluginId() {
118         return _pluginId;
119     }
120 
121     public void setPluginId(String pluginId) {
122         _pluginId = pluginId;
123     }
124 
125     public String getPluginType() {
126         return _pluginType;
127     }
128 
129     public void setPluginType(String pluginType) {
130         _pluginType = pluginType;
131     }
132 
133     public String getRoles() {
134         return _roles;
135     }
136 
137     public void setRoles(String roles) {
138         _roles = roles;
139     }
140 
141     public boolean getActive() {
142         return _active;
143     }
144 
145     public boolean isActive() {
146         return _active;
147     }
148 
149     public void setActive(boolean active) {
150         _active = active;
151     }
152 
153     private long _pluginSettingId;
154     private long _companyId;
155     private String _pluginId;
156     private String _pluginType;
157     private String _roles;
158     private boolean _active;
159 }