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                    soapModel.setActive(model.getActive());
040    
041                    return soapModel;
042            }
043    
044            public static DLFileRankSoap[] toSoapModels(DLFileRank[] models) {
045                    DLFileRankSoap[] soapModels = new DLFileRankSoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static DLFileRankSoap[][] toSoapModels(DLFileRank[][] models) {
055                    DLFileRankSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new DLFileRankSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new DLFileRankSoap[0][0];
062                    }
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModels(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static DLFileRankSoap[] toSoapModels(List<DLFileRank> models) {
072                    List<DLFileRankSoap> soapModels = new ArrayList<DLFileRankSoap>(models.size());
073    
074                    for (DLFileRank model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new DLFileRankSoap[soapModels.size()]);
079            }
080    
081            public DLFileRankSoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _fileRankId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setFileRankId(pk);
090            }
091    
092            public long getFileRankId() {
093                    return _fileRankId;
094            }
095    
096            public void setFileRankId(long fileRankId) {
097                    _fileRankId = fileRankId;
098            }
099    
100            public long getGroupId() {
101                    return _groupId;
102            }
103    
104            public void setGroupId(long groupId) {
105                    _groupId = groupId;
106            }
107    
108            public long getCompanyId() {
109                    return _companyId;
110            }
111    
112            public void setCompanyId(long companyId) {
113                    _companyId = companyId;
114            }
115    
116            public long getUserId() {
117                    return _userId;
118            }
119    
120            public void setUserId(long userId) {
121                    _userId = userId;
122            }
123    
124            public Date getCreateDate() {
125                    return _createDate;
126            }
127    
128            public void setCreateDate(Date createDate) {
129                    _createDate = createDate;
130            }
131    
132            public long getFileEntryId() {
133                    return _fileEntryId;
134            }
135    
136            public void setFileEntryId(long fileEntryId) {
137                    _fileEntryId = fileEntryId;
138            }
139    
140            public boolean getActive() {
141                    return _active;
142            }
143    
144            public boolean isActive() {
145                    return _active;
146            }
147    
148            public void setActive(boolean active) {
149                    _active = active;
150            }
151    
152            private long _fileRankId;
153            private long _groupId;
154            private long _companyId;
155            private long _userId;
156            private Date _createDate;
157            private long _fileEntryId;
158            private boolean _active;
159    }