1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="WorkflowDefinitionLinkSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portal.service.http.WorkflowDefinitionLinkServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portal.service.http.WorkflowDefinitionLinkServiceSoap
38   * @generated
39   */
40  public class WorkflowDefinitionLinkSoap implements Serializable {
41      public static WorkflowDefinitionLinkSoap toSoapModel(
42          WorkflowDefinitionLink model) {
43          WorkflowDefinitionLinkSoap soapModel = new WorkflowDefinitionLinkSoap();
44  
45          soapModel.setWorkflowDefinitionLinkId(model.getWorkflowDefinitionLinkId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setClassNameId(model.getClassNameId());
53          soapModel.setWorkflowDefinitionName(model.getWorkflowDefinitionName());
54          soapModel.setWorkflowDefinitionVersion(model.getWorkflowDefinitionVersion());
55  
56          return soapModel;
57      }
58  
59      public static WorkflowDefinitionLinkSoap[] toSoapModels(
60          WorkflowDefinitionLink[] models) {
61          WorkflowDefinitionLinkSoap[] soapModels = new WorkflowDefinitionLinkSoap[models.length];
62  
63          for (int i = 0; i < models.length; i++) {
64              soapModels[i] = toSoapModel(models[i]);
65          }
66  
67          return soapModels;
68      }
69  
70      public static WorkflowDefinitionLinkSoap[][] toSoapModels(
71          WorkflowDefinitionLink[][] models) {
72          WorkflowDefinitionLinkSoap[][] soapModels = null;
73  
74          if (models.length > 0) {
75              soapModels = new WorkflowDefinitionLinkSoap[models.length][models[0].length];
76          }
77          else {
78              soapModels = new WorkflowDefinitionLinkSoap[0][0];
79          }
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModels(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static WorkflowDefinitionLinkSoap[] toSoapModels(
89          List<WorkflowDefinitionLink> models) {
90          List<WorkflowDefinitionLinkSoap> soapModels = new ArrayList<WorkflowDefinitionLinkSoap>(models.size());
91  
92          for (WorkflowDefinitionLink model : models) {
93              soapModels.add(toSoapModel(model));
94          }
95  
96          return soapModels.toArray(new WorkflowDefinitionLinkSoap[soapModels.size()]);
97      }
98  
99      public WorkflowDefinitionLinkSoap() {
100     }
101 
102     public long getPrimaryKey() {
103         return _workflowDefinitionLinkId;
104     }
105 
106     public void setPrimaryKey(long pk) {
107         setWorkflowDefinitionLinkId(pk);
108     }
109 
110     public long getWorkflowDefinitionLinkId() {
111         return _workflowDefinitionLinkId;
112     }
113 
114     public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
115         _workflowDefinitionLinkId = workflowDefinitionLinkId;
116     }
117 
118     public long getGroupId() {
119         return _groupId;
120     }
121 
122     public void setGroupId(long groupId) {
123         _groupId = groupId;
124     }
125 
126     public long getCompanyId() {
127         return _companyId;
128     }
129 
130     public void setCompanyId(long companyId) {
131         _companyId = companyId;
132     }
133 
134     public long getUserId() {
135         return _userId;
136     }
137 
138     public void setUserId(long userId) {
139         _userId = userId;
140     }
141 
142     public String getUserName() {
143         return _userName;
144     }
145 
146     public void setUserName(String userName) {
147         _userName = userName;
148     }
149 
150     public Date getCreateDate() {
151         return _createDate;
152     }
153 
154     public void setCreateDate(Date createDate) {
155         _createDate = createDate;
156     }
157 
158     public Date getModifiedDate() {
159         return _modifiedDate;
160     }
161 
162     public void setModifiedDate(Date modifiedDate) {
163         _modifiedDate = modifiedDate;
164     }
165 
166     public long getClassNameId() {
167         return _classNameId;
168     }
169 
170     public void setClassNameId(long classNameId) {
171         _classNameId = classNameId;
172     }
173 
174     public String getWorkflowDefinitionName() {
175         return _workflowDefinitionName;
176     }
177 
178     public void setWorkflowDefinitionName(String workflowDefinitionName) {
179         _workflowDefinitionName = workflowDefinitionName;
180     }
181 
182     public int getWorkflowDefinitionVersion() {
183         return _workflowDefinitionVersion;
184     }
185 
186     public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
187         _workflowDefinitionVersion = workflowDefinitionVersion;
188     }
189 
190     private long _workflowDefinitionLinkId;
191     private long _groupId;
192     private long _companyId;
193     private long _userId;
194     private String _userName;
195     private Date _createDate;
196     private Date _modifiedDate;
197     private long _classNameId;
198     private String _workflowDefinitionName;
199     private int _workflowDefinitionVersion;
200 }