1   /**
2    * Copyright (c) 2000-2008 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.portlet.journal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="JournalStructureSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.journal.service.http.JournalStructureServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.journal.service.http.JournalStructureServiceSoap
47   *
48   */
49  public class JournalStructureSoap implements Serializable {
50      public static JournalStructureSoap toSoapModel(JournalStructure model) {
51          JournalStructureSoap soapModel = new JournalStructureSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setId(model.getId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setCreateDate(model.getCreateDate());
60          soapModel.setModifiedDate(model.getModifiedDate());
61          soapModel.setStructureId(model.getStructureId());
62          soapModel.setName(model.getName());
63          soapModel.setDescription(model.getDescription());
64          soapModel.setXsd(model.getXsd());
65  
66          return soapModel;
67      }
68  
69      public static JournalStructureSoap[] toSoapModels(
70          List<JournalStructure> models) {
71          List<JournalStructureSoap> soapModels = new ArrayList<JournalStructureSoap>(models.size());
72  
73          for (JournalStructure model : models) {
74              soapModels.add(toSoapModel(model));
75          }
76  
77          return soapModels.toArray(new JournalStructureSoap[soapModels.size()]);
78      }
79  
80      public JournalStructureSoap() {
81      }
82  
83      public long getPrimaryKey() {
84          return _id;
85      }
86  
87      public void setPrimaryKey(long pk) {
88          setId(pk);
89      }
90  
91      public String getUuid() {
92          return _uuid;
93      }
94  
95      public void setUuid(String uuid) {
96          _uuid = uuid;
97      }
98  
99      public long getId() {
100         return _id;
101     }
102 
103     public void setId(long id) {
104         _id = id;
105     }
106 
107     public long getGroupId() {
108         return _groupId;
109     }
110 
111     public void setGroupId(long groupId) {
112         _groupId = groupId;
113     }
114 
115     public long getCompanyId() {
116         return _companyId;
117     }
118 
119     public void setCompanyId(long companyId) {
120         _companyId = companyId;
121     }
122 
123     public long getUserId() {
124         return _userId;
125     }
126 
127     public void setUserId(long userId) {
128         _userId = userId;
129     }
130 
131     public String getUserName() {
132         return _userName;
133     }
134 
135     public void setUserName(String userName) {
136         _userName = userName;
137     }
138 
139     public Date getCreateDate() {
140         return _createDate;
141     }
142 
143     public void setCreateDate(Date createDate) {
144         _createDate = createDate;
145     }
146 
147     public Date getModifiedDate() {
148         return _modifiedDate;
149     }
150 
151     public void setModifiedDate(Date modifiedDate) {
152         _modifiedDate = modifiedDate;
153     }
154 
155     public String getStructureId() {
156         return _structureId;
157     }
158 
159     public void setStructureId(String structureId) {
160         _structureId = structureId;
161     }
162 
163     public String getName() {
164         return _name;
165     }
166 
167     public void setName(String name) {
168         _name = name;
169     }
170 
171     public String getDescription() {
172         return _description;
173     }
174 
175     public void setDescription(String description) {
176         _description = description;
177     }
178 
179     public String getXsd() {
180         return _xsd;
181     }
182 
183     public void setXsd(String xsd) {
184         _xsd = xsd;
185     }
186 
187     private String _uuid;
188     private long _id;
189     private long _groupId;
190     private long _companyId;
191     private long _userId;
192     private String _userName;
193     private Date _createDate;
194     private Date _modifiedDate;
195     private String _structureId;
196     private String _name;
197     private String _description;
198     private String _xsd;
199 }