001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services.
025     *
026     * @author Brian Wing Shun Chan
027     * @generated
028     */
029    public class WorkflowDefinitionLinkSoap implements Serializable {
030            public static WorkflowDefinitionLinkSoap toSoapModel(
031                    WorkflowDefinitionLink model) {
032                    WorkflowDefinitionLinkSoap soapModel = new WorkflowDefinitionLinkSoap();
033    
034                    soapModel.setWorkflowDefinitionLinkId(model.getWorkflowDefinitionLinkId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setTypePK(model.getTypePK());
044                    soapModel.setWorkflowDefinitionName(model.getWorkflowDefinitionName());
045                    soapModel.setWorkflowDefinitionVersion(model.getWorkflowDefinitionVersion());
046    
047                    return soapModel;
048            }
049    
050            public static WorkflowDefinitionLinkSoap[] toSoapModels(
051                    WorkflowDefinitionLink[] models) {
052                    WorkflowDefinitionLinkSoap[] soapModels = new WorkflowDefinitionLinkSoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static WorkflowDefinitionLinkSoap[][] toSoapModels(
062                    WorkflowDefinitionLink[][] models) {
063                    WorkflowDefinitionLinkSoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new WorkflowDefinitionLinkSoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new WorkflowDefinitionLinkSoap[0][0];
070                    }
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModels(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static WorkflowDefinitionLinkSoap[] toSoapModels(
080                    List<WorkflowDefinitionLink> models) {
081                    List<WorkflowDefinitionLinkSoap> soapModels = new ArrayList<WorkflowDefinitionLinkSoap>(models.size());
082    
083                    for (WorkflowDefinitionLink model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new WorkflowDefinitionLinkSoap[soapModels.size()]);
088            }
089    
090            public WorkflowDefinitionLinkSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _workflowDefinitionLinkId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setWorkflowDefinitionLinkId(pk);
099            }
100    
101            public long getWorkflowDefinitionLinkId() {
102                    return _workflowDefinitionLinkId;
103            }
104    
105            public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
106                    _workflowDefinitionLinkId = workflowDefinitionLinkId;
107            }
108    
109            public long getGroupId() {
110                    return _groupId;
111            }
112    
113            public void setGroupId(long groupId) {
114                    _groupId = groupId;
115            }
116    
117            public long getCompanyId() {
118                    return _companyId;
119            }
120    
121            public void setCompanyId(long companyId) {
122                    _companyId = companyId;
123            }
124    
125            public long getUserId() {
126                    return _userId;
127            }
128    
129            public void setUserId(long userId) {
130                    _userId = userId;
131            }
132    
133            public String getUserName() {
134                    return _userName;
135            }
136    
137            public void setUserName(String userName) {
138                    _userName = userName;
139            }
140    
141            public Date getCreateDate() {
142                    return _createDate;
143            }
144    
145            public void setCreateDate(Date createDate) {
146                    _createDate = createDate;
147            }
148    
149            public Date getModifiedDate() {
150                    return _modifiedDate;
151            }
152    
153            public void setModifiedDate(Date modifiedDate) {
154                    _modifiedDate = modifiedDate;
155            }
156    
157            public long getClassNameId() {
158                    return _classNameId;
159            }
160    
161            public void setClassNameId(long classNameId) {
162                    _classNameId = classNameId;
163            }
164    
165            public long getClassPK() {
166                    return _classPK;
167            }
168    
169            public void setClassPK(long classPK) {
170                    _classPK = classPK;
171            }
172    
173            public long getTypePK() {
174                    return _typePK;
175            }
176    
177            public void setTypePK(long typePK) {
178                    _typePK = typePK;
179            }
180    
181            public String getWorkflowDefinitionName() {
182                    return _workflowDefinitionName;
183            }
184    
185            public void setWorkflowDefinitionName(String workflowDefinitionName) {
186                    _workflowDefinitionName = workflowDefinitionName;
187            }
188    
189            public int getWorkflowDefinitionVersion() {
190                    return _workflowDefinitionVersion;
191            }
192    
193            public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
194                    _workflowDefinitionVersion = workflowDefinitionVersion;
195            }
196    
197            private long _workflowDefinitionLinkId;
198            private long _groupId;
199            private long _companyId;
200            private long _userId;
201            private String _userName;
202            private Date _createDate;
203            private Date _modifiedDate;
204            private long _classNameId;
205            private long _classPK;
206            private long _typePK;
207            private String _workflowDefinitionName;
208            private int _workflowDefinitionVersion;
209    }