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.documentlibrary.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, specifically {@link com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceSoap
028     * @generated
029     */
030    public class DLFileEntryTypeSoap implements Serializable {
031            public static DLFileEntryTypeSoap toSoapModel(DLFileEntryType model) {
032                    DLFileEntryTypeSoap soapModel = new DLFileEntryTypeSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setFileEntryTypeId(model.getFileEntryTypeId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setFileEntryTypeKey(model.getFileEntryTypeKey());
043                    soapModel.setName(model.getName());
044                    soapModel.setDescription(model.getDescription());
045    
046                    return soapModel;
047            }
048    
049            public static DLFileEntryTypeSoap[] toSoapModels(DLFileEntryType[] models) {
050                    DLFileEntryTypeSoap[] soapModels = new DLFileEntryTypeSoap[models.length];
051    
052                    for (int i = 0; i < models.length; i++) {
053                            soapModels[i] = toSoapModel(models[i]);
054                    }
055    
056                    return soapModels;
057            }
058    
059            public static DLFileEntryTypeSoap[][] toSoapModels(
060                    DLFileEntryType[][] models) {
061                    DLFileEntryTypeSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new DLFileEntryTypeSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new DLFileEntryTypeSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static DLFileEntryTypeSoap[] toSoapModels(
078                    List<DLFileEntryType> models) {
079                    List<DLFileEntryTypeSoap> soapModels = new ArrayList<DLFileEntryTypeSoap>(models.size());
080    
081                    for (DLFileEntryType model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new DLFileEntryTypeSoap[soapModels.size()]);
086            }
087    
088            public DLFileEntryTypeSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _fileEntryTypeId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setFileEntryTypeId(pk);
097            }
098    
099            public String getUuid() {
100                    return _uuid;
101            }
102    
103            public void setUuid(String uuid) {
104                    _uuid = uuid;
105            }
106    
107            public long getFileEntryTypeId() {
108                    return _fileEntryTypeId;
109            }
110    
111            public void setFileEntryTypeId(long fileEntryTypeId) {
112                    _fileEntryTypeId = fileEntryTypeId;
113            }
114    
115            public long getGroupId() {
116                    return _groupId;
117            }
118    
119            public void setGroupId(long groupId) {
120                    _groupId = groupId;
121            }
122    
123            public long getCompanyId() {
124                    return _companyId;
125            }
126    
127            public void setCompanyId(long companyId) {
128                    _companyId = companyId;
129            }
130    
131            public long getUserId() {
132                    return _userId;
133            }
134    
135            public void setUserId(long userId) {
136                    _userId = userId;
137            }
138    
139            public String getUserName() {
140                    return _userName;
141            }
142    
143            public void setUserName(String userName) {
144                    _userName = userName;
145            }
146    
147            public Date getCreateDate() {
148                    return _createDate;
149            }
150    
151            public void setCreateDate(Date createDate) {
152                    _createDate = createDate;
153            }
154    
155            public Date getModifiedDate() {
156                    return _modifiedDate;
157            }
158    
159            public void setModifiedDate(Date modifiedDate) {
160                    _modifiedDate = modifiedDate;
161            }
162    
163            public String getFileEntryTypeKey() {
164                    return _fileEntryTypeKey;
165            }
166    
167            public void setFileEntryTypeKey(String fileEntryTypeKey) {
168                    _fileEntryTypeKey = fileEntryTypeKey;
169            }
170    
171            public String getName() {
172                    return _name;
173            }
174    
175            public void setName(String name) {
176                    _name = name;
177            }
178    
179            public String getDescription() {
180                    return _description;
181            }
182    
183            public void setDescription(String description) {
184                    _description = description;
185            }
186    
187            private String _uuid;
188            private long _fileEntryTypeId;
189            private long _groupId;
190            private long _companyId;
191            private long _userId;
192            private String _userName;
193            private Date _createDate;
194            private Date _modifiedDate;
195            private String _fileEntryTypeKey;
196            private String _name;
197            private String _description;
198    }