001    /**
002     * Copyright (c) 2000-2011 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.setFileEntryTypeId(model.getFileEntryTypeId());
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    
044                    return soapModel;
045            }
046    
047            public static DLFileEntryTypeSoap[] toSoapModels(DLFileEntryType[] models) {
048                    DLFileEntryTypeSoap[] soapModels = new DLFileEntryTypeSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static DLFileEntryTypeSoap[][] toSoapModels(
058                    DLFileEntryType[][] models) {
059                    DLFileEntryTypeSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new DLFileEntryTypeSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new DLFileEntryTypeSoap[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 DLFileEntryTypeSoap[] toSoapModels(
076                    List<DLFileEntryType> models) {
077                    List<DLFileEntryTypeSoap> soapModels = new ArrayList<DLFileEntryTypeSoap>(models.size());
078    
079                    for (DLFileEntryType model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new DLFileEntryTypeSoap[soapModels.size()]);
084            }
085    
086            public DLFileEntryTypeSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _fileEntryTypeId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setFileEntryTypeId(pk);
095            }
096    
097            public long getFileEntryTypeId() {
098                    return _fileEntryTypeId;
099            }
100    
101            public void setFileEntryTypeId(long fileEntryTypeId) {
102                    _fileEntryTypeId = fileEntryTypeId;
103            }
104    
105            public long getGroupId() {
106                    return _groupId;
107            }
108    
109            public void setGroupId(long groupId) {
110                    _groupId = groupId;
111            }
112    
113            public long getCompanyId() {
114                    return _companyId;
115            }
116    
117            public void setCompanyId(long companyId) {
118                    _companyId = companyId;
119            }
120    
121            public long getUserId() {
122                    return _userId;
123            }
124    
125            public void setUserId(long userId) {
126                    _userId = userId;
127            }
128    
129            public String getUserName() {
130                    return _userName;
131            }
132    
133            public void setUserName(String userName) {
134                    _userName = userName;
135            }
136    
137            public Date getCreateDate() {
138                    return _createDate;
139            }
140    
141            public void setCreateDate(Date createDate) {
142                    _createDate = createDate;
143            }
144    
145            public Date getModifiedDate() {
146                    return _modifiedDate;
147            }
148    
149            public void setModifiedDate(Date modifiedDate) {
150                    _modifiedDate = modifiedDate;
151            }
152    
153            public String getName() {
154                    return _name;
155            }
156    
157            public void setName(String name) {
158                    _name = name;
159            }
160    
161            public String getDescription() {
162                    return _description;
163            }
164    
165            public void setDescription(String description) {
166                    _description = description;
167            }
168    
169            private long _fileEntryTypeId;
170            private long _groupId;
171            private long _companyId;
172            private long _userId;
173            private String _userName;
174            private Date _createDate;
175            private Date _modifiedDate;
176            private String _name;
177            private String _description;
178    }