001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class WorkflowDefinitionLinkSoap implements Serializable {
033            public static WorkflowDefinitionLinkSoap toSoapModel(
034                    WorkflowDefinitionLink model) {
035                    WorkflowDefinitionLinkSoap soapModel = new WorkflowDefinitionLinkSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setWorkflowDefinitionLinkId(model.getWorkflowDefinitionLinkId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setClassNameId(model.getClassNameId());
046                    soapModel.setClassPK(model.getClassPK());
047                    soapModel.setTypePK(model.getTypePK());
048                    soapModel.setWorkflowDefinitionName(model.getWorkflowDefinitionName());
049                    soapModel.setWorkflowDefinitionVersion(model.getWorkflowDefinitionVersion());
050    
051                    return soapModel;
052            }
053    
054            public static WorkflowDefinitionLinkSoap[] toSoapModels(
055                    WorkflowDefinitionLink[] models) {
056                    WorkflowDefinitionLinkSoap[] soapModels = new WorkflowDefinitionLinkSoap[models.length];
057    
058                    for (int i = 0; i < models.length; i++) {
059                            soapModels[i] = toSoapModel(models[i]);
060                    }
061    
062                    return soapModels;
063            }
064    
065            public static WorkflowDefinitionLinkSoap[][] toSoapModels(
066                    WorkflowDefinitionLink[][] models) {
067                    WorkflowDefinitionLinkSoap[][] soapModels = null;
068    
069                    if (models.length > 0) {
070                            soapModels = new WorkflowDefinitionLinkSoap[models.length][models[0].length];
071                    }
072                    else {
073                            soapModels = new WorkflowDefinitionLinkSoap[0][0];
074                    }
075    
076                    for (int i = 0; i < models.length; i++) {
077                            soapModels[i] = toSoapModels(models[i]);
078                    }
079    
080                    return soapModels;
081            }
082    
083            public static WorkflowDefinitionLinkSoap[] toSoapModels(
084                    List<WorkflowDefinitionLink> models) {
085                    List<WorkflowDefinitionLinkSoap> soapModels = new ArrayList<WorkflowDefinitionLinkSoap>(models.size());
086    
087                    for (WorkflowDefinitionLink model : models) {
088                            soapModels.add(toSoapModel(model));
089                    }
090    
091                    return soapModels.toArray(new WorkflowDefinitionLinkSoap[soapModels.size()]);
092            }
093    
094            public WorkflowDefinitionLinkSoap() {
095            }
096    
097            public long getPrimaryKey() {
098                    return _workflowDefinitionLinkId;
099            }
100    
101            public void setPrimaryKey(long pk) {
102                    setWorkflowDefinitionLinkId(pk);
103            }
104    
105            public long getMvccVersion() {
106                    return _mvccVersion;
107            }
108    
109            public void setMvccVersion(long mvccVersion) {
110                    _mvccVersion = mvccVersion;
111            }
112    
113            public long getWorkflowDefinitionLinkId() {
114                    return _workflowDefinitionLinkId;
115            }
116    
117            public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
118                    _workflowDefinitionLinkId = workflowDefinitionLinkId;
119            }
120    
121            public long getGroupId() {
122                    return _groupId;
123            }
124    
125            public void setGroupId(long groupId) {
126                    _groupId = groupId;
127            }
128    
129            public long getCompanyId() {
130                    return _companyId;
131            }
132    
133            public void setCompanyId(long companyId) {
134                    _companyId = companyId;
135            }
136    
137            public long getUserId() {
138                    return _userId;
139            }
140    
141            public void setUserId(long userId) {
142                    _userId = userId;
143            }
144    
145            public String getUserName() {
146                    return _userName;
147            }
148    
149            public void setUserName(String userName) {
150                    _userName = userName;
151            }
152    
153            public Date getCreateDate() {
154                    return _createDate;
155            }
156    
157            public void setCreateDate(Date createDate) {
158                    _createDate = createDate;
159            }
160    
161            public Date getModifiedDate() {
162                    return _modifiedDate;
163            }
164    
165            public void setModifiedDate(Date modifiedDate) {
166                    _modifiedDate = modifiedDate;
167            }
168    
169            public long getClassNameId() {
170                    return _classNameId;
171            }
172    
173            public void setClassNameId(long classNameId) {
174                    _classNameId = classNameId;
175            }
176    
177            public long getClassPK() {
178                    return _classPK;
179            }
180    
181            public void setClassPK(long classPK) {
182                    _classPK = classPK;
183            }
184    
185            public long getTypePK() {
186                    return _typePK;
187            }
188    
189            public void setTypePK(long typePK) {
190                    _typePK = typePK;
191            }
192    
193            public String getWorkflowDefinitionName() {
194                    return _workflowDefinitionName;
195            }
196    
197            public void setWorkflowDefinitionName(String workflowDefinitionName) {
198                    _workflowDefinitionName = workflowDefinitionName;
199            }
200    
201            public int getWorkflowDefinitionVersion() {
202                    return _workflowDefinitionVersion;
203            }
204    
205            public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
206                    _workflowDefinitionVersion = workflowDefinitionVersion;
207            }
208    
209            private long _mvccVersion;
210            private long _workflowDefinitionLinkId;
211            private long _groupId;
212            private long _companyId;
213            private long _userId;
214            private String _userName;
215            private Date _createDate;
216            private Date _modifiedDate;
217            private long _classNameId;
218            private long _classPK;
219            private long _typePK;
220            private String _workflowDefinitionName;
221            private int _workflowDefinitionVersion;
222    }