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="WSRPConfiguredProducerSoap.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.WSRPConfiguredProducerServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.wsrp.service.http.WSRPConfiguredProducerServiceSoap
46   *
47   */
48  public class WSRPConfiguredProducerSoap implements Serializable {
49      public static WSRPConfiguredProducerSoap toSoapModel(
50          WSRPConfiguredProducer model) {
51          WSRPConfiguredProducerSoap soapModel = new WSRPConfiguredProducerSoap();
52  
53          soapModel.setConfiguredProducerId(model.getConfiguredProducerId());
54          soapModel.setName(model.getName());
55          soapModel.setPortalId(model.getPortalId());
56          soapModel.setNamespace(model.getNamespace());
57          soapModel.setProducerURL(model.getProducerURL());
58          soapModel.setProducerVersion(model.getProducerVersion());
59          soapModel.setProducerMarkupURL(model.getProducerMarkupURL());
60          soapModel.setStatus(model.getStatus());
61          soapModel.setRegistrationData(model.getRegistrationData());
62          soapModel.setRegistrationContext(model.getRegistrationContext());
63          soapModel.setServiceDescription(model.getServiceDescription());
64          soapModel.setUserCategoryMapping(model.getUserCategoryMapping());
65          soapModel.setCustomUserProfile(model.getCustomUserProfile());
66          soapModel.setIdentityPropagationType(model.getIdentityPropagationType());
67          soapModel.setLifetimeTerminationTime(model.getLifetimeTerminationTime());
68          soapModel.setSdLastModified(model.getSdLastModified());
69          soapModel.setEntityVersion(model.getEntityVersion());
70  
71          return soapModel;
72      }
73  
74      public static WSRPConfiguredProducerSoap[] toSoapModels(
75          List<WSRPConfiguredProducer> models) {
76          List<WSRPConfiguredProducerSoap> soapModels = new ArrayList<WSRPConfiguredProducerSoap>(models.size());
77  
78          for (WSRPConfiguredProducer model : models) {
79              soapModels.add(toSoapModel(model));
80          }
81  
82          return soapModels.toArray(new WSRPConfiguredProducerSoap[soapModels.size()]);
83      }
84  
85      public WSRPConfiguredProducerSoap() {
86      }
87  
88      public long getPrimaryKey() {
89          return _configuredProducerId;
90      }
91  
92      public void setPrimaryKey(long pk) {
93          setConfiguredProducerId(pk);
94      }
95  
96      public long getConfiguredProducerId() {
97          return _configuredProducerId;
98      }
99  
100     public void setConfiguredProducerId(long configuredProducerId) {
101         _configuredProducerId = configuredProducerId;
102     }
103 
104     public String getName() {
105         return _name;
106     }
107 
108     public void setName(String name) {
109         _name = name;
110     }
111 
112     public String getPortalId() {
113         return _portalId;
114     }
115 
116     public void setPortalId(String portalId) {
117         _portalId = portalId;
118     }
119 
120     public String getNamespace() {
121         return _namespace;
122     }
123 
124     public void setNamespace(String namespace) {
125         _namespace = namespace;
126     }
127 
128     public String getProducerURL() {
129         return _producerURL;
130     }
131 
132     public void setProducerURL(String producerURL) {
133         _producerURL = producerURL;
134     }
135 
136     public String getProducerVersion() {
137         return _producerVersion;
138     }
139 
140     public void setProducerVersion(String producerVersion) {
141         _producerVersion = producerVersion;
142     }
143 
144     public String getProducerMarkupURL() {
145         return _producerMarkupURL;
146     }
147 
148     public void setProducerMarkupURL(String producerMarkupURL) {
149         _producerMarkupURL = producerMarkupURL;
150     }
151 
152     public int getStatus() {
153         return _status;
154     }
155 
156     public void setStatus(int status) {
157         _status = status;
158     }
159 
160     public String getRegistrationData() {
161         return _registrationData;
162     }
163 
164     public void setRegistrationData(String registrationData) {
165         _registrationData = registrationData;
166     }
167 
168     public String getRegistrationContext() {
169         return _registrationContext;
170     }
171 
172     public void setRegistrationContext(String registrationContext) {
173         _registrationContext = registrationContext;
174     }
175 
176     public String getServiceDescription() {
177         return _serviceDescription;
178     }
179 
180     public void setServiceDescription(String serviceDescription) {
181         _serviceDescription = serviceDescription;
182     }
183 
184     public String getUserCategoryMapping() {
185         return _userCategoryMapping;
186     }
187 
188     public void setUserCategoryMapping(String userCategoryMapping) {
189         _userCategoryMapping = userCategoryMapping;
190     }
191 
192     public String getCustomUserProfile() {
193         return _customUserProfile;
194     }
195 
196     public void setCustomUserProfile(String customUserProfile) {
197         _customUserProfile = customUserProfile;
198     }
199 
200     public String getIdentityPropagationType() {
201         return _identityPropagationType;
202     }
203 
204     public void setIdentityPropagationType(String identityPropagationType) {
205         _identityPropagationType = identityPropagationType;
206     }
207 
208     public String getLifetimeTerminationTime() {
209         return _lifetimeTerminationTime;
210     }
211 
212     public void setLifetimeTerminationTime(String lifetimeTerminationTime) {
213         _lifetimeTerminationTime = lifetimeTerminationTime;
214     }
215 
216     public long getSdLastModified() {
217         return _sdLastModified;
218     }
219 
220     public void setSdLastModified(long sdLastModified) {
221         _sdLastModified = sdLastModified;
222     }
223 
224     public int getEntityVersion() {
225         return _entityVersion;
226     }
227 
228     public void setEntityVersion(int entityVersion) {
229         _entityVersion = entityVersion;
230     }
231 
232     private long _configuredProducerId;
233     private String _name;
234     private String _portalId;
235     private String _namespace;
236     private String _producerURL;
237     private String _producerVersion;
238     private String _producerMarkupURL;
239     private int _status;
240     private String _registrationData;
241     private String _registrationContext;
242     private String _serviceDescription;
243     private String _userCategoryMapping;
244     private String _customUserProfile;
245     private String _identityPropagationType;
246     private String _lifetimeTerminationTime;
247     private long _sdLastModified;
248     private int _entityVersion;
249 }