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.portlet.tags.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="TagsPropertySoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.tags.service.http.TagsPropertyServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.tags.service.http.TagsPropertyServiceSoap
44   *
45   */
46  public class TagsPropertySoap implements Serializable {
47      public static TagsPropertySoap toSoapModel(TagsProperty model) {
48          TagsPropertySoap soapModel = new TagsPropertySoap();
49  
50          soapModel.setPropertyId(model.getPropertyId());
51          soapModel.setCompanyId(model.getCompanyId());
52          soapModel.setUserId(model.getUserId());
53          soapModel.setUserName(model.getUserName());
54          soapModel.setCreateDate(model.getCreateDate());
55          soapModel.setModifiedDate(model.getModifiedDate());
56          soapModel.setEntryId(model.getEntryId());
57          soapModel.setKey(model.getKey());
58          soapModel.setValue(model.getValue());
59  
60          return soapModel;
61      }
62  
63      public static TagsPropertySoap[] toSoapModels(List<TagsProperty> models) {
64          List<TagsPropertySoap> soapModels = new ArrayList<TagsPropertySoap>(models.size());
65  
66          for (TagsProperty model : models) {
67              soapModels.add(toSoapModel(model));
68          }
69  
70          return soapModels.toArray(new TagsPropertySoap[soapModels.size()]);
71      }
72  
73      public TagsPropertySoap() {
74      }
75  
76      public long getPrimaryKey() {
77          return _propertyId;
78      }
79  
80      public void setPrimaryKey(long pk) {
81          setPropertyId(pk);
82      }
83  
84      public long getPropertyId() {
85          return _propertyId;
86      }
87  
88      public void setPropertyId(long propertyId) {
89          _propertyId = propertyId;
90      }
91  
92      public long getCompanyId() {
93          return _companyId;
94      }
95  
96      public void setCompanyId(long companyId) {
97          _companyId = companyId;
98      }
99  
100     public long getUserId() {
101         return _userId;
102     }
103 
104     public void setUserId(long userId) {
105         _userId = userId;
106     }
107 
108     public String getUserName() {
109         return _userName;
110     }
111 
112     public void setUserName(String userName) {
113         _userName = userName;
114     }
115 
116     public Date getCreateDate() {
117         return _createDate;
118     }
119 
120     public void setCreateDate(Date createDate) {
121         _createDate = createDate;
122     }
123 
124     public Date getModifiedDate() {
125         return _modifiedDate;
126     }
127 
128     public void setModifiedDate(Date modifiedDate) {
129         _modifiedDate = modifiedDate;
130     }
131 
132     public long getEntryId() {
133         return _entryId;
134     }
135 
136     public void setEntryId(long entryId) {
137         _entryId = entryId;
138     }
139 
140     public String getKey() {
141         return _key;
142     }
143 
144     public void setKey(String key) {
145         _key = key;
146     }
147 
148     public String getValue() {
149         return _value;
150     }
151 
152     public void setValue(String value) {
153         _value = value;
154     }
155 
156     private long _propertyId;
157     private long _companyId;
158     private long _userId;
159     private String _userName;
160     private Date _createDate;
161     private Date _modifiedDate;
162     private long _entryId;
163     private String _key;
164     private String _value;
165 }