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