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.portlet.dynamicdatamapping.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 DDMStructureLayoutSoap implements Serializable {
033            public static DDMStructureLayoutSoap toSoapModel(DDMStructureLayout model) {
034                    DDMStructureLayoutSoap soapModel = new DDMStructureLayoutSoap();
035    
036                    soapModel.setUuid(model.getUuid());
037                    soapModel.setStructureLayoutId(model.getStructureLayoutId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setStructureVersionId(model.getStructureVersionId());
045                    soapModel.setDefinition(model.getDefinition());
046    
047                    return soapModel;
048            }
049    
050            public static DDMStructureLayoutSoap[] toSoapModels(
051                    DDMStructureLayout[] models) {
052                    DDMStructureLayoutSoap[] soapModels = new DDMStructureLayoutSoap[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 DDMStructureLayoutSoap[][] toSoapModels(
062                    DDMStructureLayout[][] models) {
063                    DDMStructureLayoutSoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new DDMStructureLayoutSoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new DDMStructureLayoutSoap[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 DDMStructureLayoutSoap[] toSoapModels(
080                    List<DDMStructureLayout> models) {
081                    List<DDMStructureLayoutSoap> soapModels = new ArrayList<DDMStructureLayoutSoap>(models.size());
082    
083                    for (DDMStructureLayout model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new DDMStructureLayoutSoap[soapModels.size()]);
088            }
089    
090            public DDMStructureLayoutSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _structureLayoutId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setStructureLayoutId(pk);
099            }
100    
101            public String getUuid() {
102                    return _uuid;
103            }
104    
105            public void setUuid(String uuid) {
106                    _uuid = uuid;
107            }
108    
109            public long getStructureLayoutId() {
110                    return _structureLayoutId;
111            }
112    
113            public void setStructureLayoutId(long structureLayoutId) {
114                    _structureLayoutId = structureLayoutId;
115            }
116    
117            public long getGroupId() {
118                    return _groupId;
119            }
120    
121            public void setGroupId(long groupId) {
122                    _groupId = groupId;
123            }
124    
125            public long getCompanyId() {
126                    return _companyId;
127            }
128    
129            public void setCompanyId(long companyId) {
130                    _companyId = companyId;
131            }
132    
133            public long getUserId() {
134                    return _userId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public String getUserName() {
142                    return _userName;
143            }
144    
145            public void setUserName(String userName) {
146                    _userName = userName;
147            }
148    
149            public Date getCreateDate() {
150                    return _createDate;
151            }
152    
153            public void setCreateDate(Date createDate) {
154                    _createDate = createDate;
155            }
156    
157            public Date getModifiedDate() {
158                    return _modifiedDate;
159            }
160    
161            public void setModifiedDate(Date modifiedDate) {
162                    _modifiedDate = modifiedDate;
163            }
164    
165            public long getStructureVersionId() {
166                    return _structureVersionId;
167            }
168    
169            public void setStructureVersionId(long structureVersionId) {
170                    _structureVersionId = structureVersionId;
171            }
172    
173            public String getDefinition() {
174                    return _definition;
175            }
176    
177            public void setDefinition(String definition) {
178                    _definition = definition;
179            }
180    
181            private String _uuid;
182            private long _structureLayoutId;
183            private long _groupId;
184            private long _companyId;
185            private long _userId;
186            private String _userName;
187            private Date _createDate;
188            private Date _modifiedDate;
189            private long _structureVersionId;
190            private String _definition;
191    }