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