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.
025     *
026     * @author    Brian Wing Shun Chan
027     * @generated
028     */
029    public class DLFileRankSoap implements Serializable {
030            public static DLFileRankSoap toSoapModel(DLFileRank model) {
031                    DLFileRankSoap soapModel = new DLFileRankSoap();
032    
033                    soapModel.setFileRankId(model.getFileRankId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setFileEntryId(model.getFileEntryId());
039    
040                    return soapModel;
041            }
042    
043            public static DLFileRankSoap[] toSoapModels(DLFileRank[] models) {
044                    DLFileRankSoap[] soapModels = new DLFileRankSoap[models.length];
045    
046                    for (int i = 0; i < models.length; i++) {
047                            soapModels[i] = toSoapModel(models[i]);
048                    }
049    
050                    return soapModels;
051            }
052    
053            public static DLFileRankSoap[][] toSoapModels(DLFileRank[][] models) {
054                    DLFileRankSoap[][] soapModels = null;
055    
056                    if (models.length > 0) {
057                            soapModels = new DLFileRankSoap[models.length][models[0].length];
058                    }
059                    else {
060                            soapModels = new DLFileRankSoap[0][0];
061                    }
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModels(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static DLFileRankSoap[] toSoapModels(List<DLFileRank> models) {
071                    List<DLFileRankSoap> soapModels = new ArrayList<DLFileRankSoap>(models.size());
072    
073                    for (DLFileRank model : models) {
074                            soapModels.add(toSoapModel(model));
075                    }
076    
077                    return soapModels.toArray(new DLFileRankSoap[soapModels.size()]);
078            }
079    
080            public DLFileRankSoap() {
081            }
082    
083            public long getPrimaryKey() {
084                    return _fileRankId;
085            }
086    
087            public void setPrimaryKey(long pk) {
088                    setFileRankId(pk);
089            }
090    
091            public long getFileRankId() {
092                    return _fileRankId;
093            }
094    
095            public void setFileRankId(long fileRankId) {
096                    _fileRankId = fileRankId;
097            }
098    
099            public long getGroupId() {
100                    return _groupId;
101            }
102    
103            public void setGroupId(long groupId) {
104                    _groupId = groupId;
105            }
106    
107            public long getCompanyId() {
108                    return _companyId;
109            }
110    
111            public void setCompanyId(long companyId) {
112                    _companyId = companyId;
113            }
114    
115            public long getUserId() {
116                    return _userId;
117            }
118    
119            public void setUserId(long userId) {
120                    _userId = userId;
121            }
122    
123            public Date getCreateDate() {
124                    return _createDate;
125            }
126    
127            public void setCreateDate(Date createDate) {
128                    _createDate = createDate;
129            }
130    
131            public long getFileEntryId() {
132                    return _fileEntryId;
133            }
134    
135            public void setFileEntryId(long fileEntryId) {
136                    _fileEntryId = fileEntryId;
137            }
138    
139            private long _fileRankId;
140            private long _groupId;
141            private long _companyId;
142            private long _userId;
143            private Date _createDate;
144            private long _fileEntryId;
145    }