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(List<PluginSetting> models) {
60          List<PluginSettingSoap> soapModels = new ArrayList<PluginSettingSoap>(models.size());
61  
62          for (PluginSetting model : models) {
63              soapModels.add(toSoapModel(model));
64          }
65  
66          return soapModels.toArray(new PluginSettingSoap[soapModels.size()]);
67      }
68  
69      public PluginSettingSoap() {
70      }
71  
72      public long getPrimaryKey() {
73          return _pluginSettingId;
74      }
75  
76      public void setPrimaryKey(long pk) {
77          setPluginSettingId(pk);
78      }
79  
80      public long getPluginSettingId() {
81          return _pluginSettingId;
82      }
83  
84      public void setPluginSettingId(long pluginSettingId) {
85          _pluginSettingId = pluginSettingId;
86      }
87  
88      public long getCompanyId() {
89          return _companyId;
90      }
91  
92      public void setCompanyId(long companyId) {
93          _companyId = companyId;
94      }
95  
96      public String getPluginId() {
97          return _pluginId;
98      }
99  
100     public void setPluginId(String pluginId) {
101         _pluginId = pluginId;
102     }
103 
104     public String getPluginType() {
105         return _pluginType;
106     }
107 
108     public void setPluginType(String pluginType) {
109         _pluginType = pluginType;
110     }
111 
112     public String getRoles() {
113         return _roles;
114     }
115 
116     public void setRoles(String roles) {
117         _roles = roles;
118     }
119 
120     public boolean getActive() {
121         return _active;
122     }
123 
124     public boolean isActive() {
125         return _active;
126     }
127 
128     public void setActive(boolean active) {
129         _active = active;
130     }
131 
132     private long _pluginSettingId;
133     private long _companyId;
134     private String _pluginId;
135     private String _pluginType;
136     private String _roles;
137     private boolean _active;
138 }