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.portlet.dynamicdatamapping.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 DDMContentSoap implements Serializable {
030            public static DDMContentSoap toSoapModel(DDMContent model) {
031                    DDMContentSoap soapModel = new DDMContentSoap();
032    
033                    soapModel.setUuid(model.getUuid());
034                    soapModel.setContentId(model.getContentId());
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.setName(model.getName());
042                    soapModel.setDescription(model.getDescription());
043                    soapModel.setXml(model.getXml());
044    
045                    return soapModel;
046            }
047    
048            public static DDMContentSoap[] toSoapModels(DDMContent[] models) {
049                    DDMContentSoap[] soapModels = new DDMContentSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static DDMContentSoap[][] toSoapModels(DDMContent[][] models) {
059                    DDMContentSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new DDMContentSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new DDMContentSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static DDMContentSoap[] toSoapModels(List<DDMContent> models) {
076                    List<DDMContentSoap> soapModels = new ArrayList<DDMContentSoap>(models.size());
077    
078                    for (DDMContent model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new DDMContentSoap[soapModels.size()]);
083            }
084    
085            public DDMContentSoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _contentId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setContentId(pk);
094            }
095    
096            public String getUuid() {
097                    return _uuid;
098            }
099    
100            public void setUuid(String uuid) {
101                    _uuid = uuid;
102            }
103    
104            public long getContentId() {
105                    return _contentId;
106            }
107    
108            public void setContentId(long contentId) {
109                    _contentId = contentId;
110            }
111    
112            public long getGroupId() {
113                    return _groupId;
114            }
115    
116            public void setGroupId(long groupId) {
117                    _groupId = groupId;
118            }
119    
120            public long getCompanyId() {
121                    return _companyId;
122            }
123    
124            public void setCompanyId(long companyId) {
125                    _companyId = companyId;
126            }
127    
128            public long getUserId() {
129                    return _userId;
130            }
131    
132            public void setUserId(long userId) {
133                    _userId = userId;
134            }
135    
136            public String getUserName() {
137                    return _userName;
138            }
139    
140            public void setUserName(String userName) {
141                    _userName = userName;
142            }
143    
144            public Date getCreateDate() {
145                    return _createDate;
146            }
147    
148            public void setCreateDate(Date createDate) {
149                    _createDate = createDate;
150            }
151    
152            public Date getModifiedDate() {
153                    return _modifiedDate;
154            }
155    
156            public void setModifiedDate(Date modifiedDate) {
157                    _modifiedDate = modifiedDate;
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 getXml() {
177                    return _xml;
178            }
179    
180            public void setXml(String xml) {
181                    _xml = xml;
182            }
183    
184            private String _uuid;
185            private long _contentId;
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 _name;
193            private String _description;
194            private String _xml;
195    }