1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.wsrp.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.List;
29  
30  /**
31   * <a href="WSRPProducerSoap.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by
40   * <code>com.liferay.wsrp.service.http.WSRPProducerServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.wsrp.service.http.WSRPProducerServiceSoap
46   *
47   */
48  public class WSRPProducerSoap implements Serializable {
49      public static WSRPProducerSoap toSoapModel(WSRPProducer model) {
50          WSRPProducerSoap soapModel = new WSRPProducerSoap();
51  
52          soapModel.setProducerId(model.getProducerId());
53          soapModel.setPortalId(model.getPortalId());
54          soapModel.setStatus(model.getStatus());
55          soapModel.setNamespace(model.getNamespace());
56          soapModel.setInstanceName(model.getInstanceName());
57          soapModel.setRequiresRegistration(model.getRequiresRegistration());
58          soapModel.setSupportsInbandRegistration(model.getSupportsInbandRegistration());
59          soapModel.setVersion(model.getVersion());
60          soapModel.setOfferedPortlets(model.getOfferedPortlets());
61          soapModel.setProducerProfileMap(model.getProducerProfileMap());
62          soapModel.setRegistrationProperties(model.getRegistrationProperties());
63          soapModel.setRegistrationValidatorClass(model.getRegistrationValidatorClass());
64  
65          return soapModel;
66      }
67  
68      public static WSRPProducerSoap[] toSoapModels(List<WSRPProducer> models) {
69          List<WSRPProducerSoap> soapModels = new ArrayList<WSRPProducerSoap>(models.size());
70  
71          for (WSRPProducer model : models) {
72              soapModels.add(toSoapModel(model));
73          }
74  
75          return soapModels.toArray(new WSRPProducerSoap[soapModels.size()]);
76      }
77  
78      public WSRPProducerSoap() {
79      }
80  
81      public long getPrimaryKey() {
82          return _producerId;
83      }
84  
85      public void setPrimaryKey(long pk) {
86          setProducerId(pk);
87      }
88  
89      public long getProducerId() {
90          return _producerId;
91      }
92  
93      public void setProducerId(long producerId) {
94          _producerId = producerId;
95      }
96  
97      public String getPortalId() {
98          return _portalId;
99      }
100 
101     public void setPortalId(String portalId) {
102         _portalId = portalId;
103     }
104 
105     public boolean getStatus() {
106         return _status;
107     }
108 
109     public boolean isStatus() {
110         return _status;
111     }
112 
113     public void setStatus(boolean status) {
114         _status = status;
115     }
116 
117     public String getNamespace() {
118         return _namespace;
119     }
120 
121     public void setNamespace(String namespace) {
122         _namespace = namespace;
123     }
124 
125     public String getInstanceName() {
126         return _instanceName;
127     }
128 
129     public void setInstanceName(String instanceName) {
130         _instanceName = instanceName;
131     }
132 
133     public boolean getRequiresRegistration() {
134         return _requiresRegistration;
135     }
136 
137     public boolean isRequiresRegistration() {
138         return _requiresRegistration;
139     }
140 
141     public void setRequiresRegistration(boolean requiresRegistration) {
142         _requiresRegistration = requiresRegistration;
143     }
144 
145     public boolean getSupportsInbandRegistration() {
146         return _supportsInbandRegistration;
147     }
148 
149     public boolean isSupportsInbandRegistration() {
150         return _supportsInbandRegistration;
151     }
152 
153     public void setSupportsInbandRegistration(
154         boolean supportsInbandRegistration) {
155         _supportsInbandRegistration = supportsInbandRegistration;
156     }
157 
158     public String getVersion() {
159         return _version;
160     }
161 
162     public void setVersion(String version) {
163         _version = version;
164     }
165 
166     public String getOfferedPortlets() {
167         return _offeredPortlets;
168     }
169 
170     public void setOfferedPortlets(String offeredPortlets) {
171         _offeredPortlets = offeredPortlets;
172     }
173 
174     public String getProducerProfileMap() {
175         return _producerProfileMap;
176     }
177 
178     public void setProducerProfileMap(String producerProfileMap) {
179         _producerProfileMap = producerProfileMap;
180     }
181 
182     public String getRegistrationProperties() {
183         return _registrationProperties;
184     }
185 
186     public void setRegistrationProperties(String registrationProperties) {
187         _registrationProperties = registrationProperties;
188     }
189 
190     public String getRegistrationValidatorClass() {
191         return _registrationValidatorClass;
192     }
193 
194     public void setRegistrationValidatorClass(String registrationValidatorClass) {
195         _registrationValidatorClass = registrationValidatorClass;
196     }
197 
198     private long _producerId;
199     private String _portalId;
200     private boolean _status;
201     private String _namespace;
202     private String _instanceName;
203     private boolean _requiresRegistration;
204     private boolean _supportsInbandRegistration;
205     private String _version;
206     private String _offeredPortlets;
207     private String _producerProfileMap;
208     private String _registrationProperties;
209     private String _registrationValidatorClass;
210 }