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="WSRPConsumerRegistrationSoap.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.WSRPConsumerRegistrationServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.wsrp.service.http.WSRPConsumerRegistrationServiceSoap
46   *
47   */
48  public class WSRPConsumerRegistrationSoap implements Serializable {
49      public static WSRPConsumerRegistrationSoap toSoapModel(
50          WSRPConsumerRegistration model) {
51          WSRPConsumerRegistrationSoap soapModel = new WSRPConsumerRegistrationSoap();
52  
53          soapModel.setConsumerRegistrationId(model.getConsumerRegistrationId());
54          soapModel.setConsumerName(model.getConsumerName());
55          soapModel.setStatus(model.getStatus());
56          soapModel.setRegistrationHandle(model.getRegistrationHandle());
57          soapModel.setRegistrationData(model.getRegistrationData());
58          soapModel.setLifetimeTerminationTime(model.getLifetimeTerminationTime());
59          soapModel.setProducerKey(model.getProducerKey());
60  
61          return soapModel;
62      }
63  
64      public static WSRPConsumerRegistrationSoap[] toSoapModels(
65          List<WSRPConsumerRegistration> models) {
66          List<WSRPConsumerRegistrationSoap> soapModels = new ArrayList<WSRPConsumerRegistrationSoap>(models.size());
67  
68          for (WSRPConsumerRegistration model : models) {
69              soapModels.add(toSoapModel(model));
70          }
71  
72          return soapModels.toArray(new WSRPConsumerRegistrationSoap[soapModels.size()]);
73      }
74  
75      public WSRPConsumerRegistrationSoap() {
76      }
77  
78      public long getPrimaryKey() {
79          return _consumerRegistrationId;
80      }
81  
82      public void setPrimaryKey(long pk) {
83          setConsumerRegistrationId(pk);
84      }
85  
86      public long getConsumerRegistrationId() {
87          return _consumerRegistrationId;
88      }
89  
90      public void setConsumerRegistrationId(long consumerRegistrationId) {
91          _consumerRegistrationId = consumerRegistrationId;
92      }
93  
94      public String getConsumerName() {
95          return _consumerName;
96      }
97  
98      public void setConsumerName(String consumerName) {
99          _consumerName = consumerName;
100     }
101 
102     public boolean getStatus() {
103         return _status;
104     }
105 
106     public boolean isStatus() {
107         return _status;
108     }
109 
110     public void setStatus(boolean status) {
111         _status = status;
112     }
113 
114     public String getRegistrationHandle() {
115         return _registrationHandle;
116     }
117 
118     public void setRegistrationHandle(String registrationHandle) {
119         _registrationHandle = registrationHandle;
120     }
121 
122     public String getRegistrationData() {
123         return _registrationData;
124     }
125 
126     public void setRegistrationData(String registrationData) {
127         _registrationData = registrationData;
128     }
129 
130     public String getLifetimeTerminationTime() {
131         return _lifetimeTerminationTime;
132     }
133 
134     public void setLifetimeTerminationTime(String lifetimeTerminationTime) {
135         _lifetimeTerminationTime = lifetimeTerminationTime;
136     }
137 
138     public String getProducerKey() {
139         return _producerKey;
140     }
141 
142     public void setProducerKey(String producerKey) {
143         _producerKey = producerKey;
144     }
145 
146     private long _consumerRegistrationId;
147     private String _consumerName;
148     private boolean _status;
149     private String _registrationHandle;
150     private String _registrationData;
151     private String _lifetimeTerminationTime;
152     private String _producerKey;
153 }