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.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class DLFileEntryMetadataSoap implements Serializable {
032            public static DLFileEntryMetadataSoap toSoapModel(DLFileEntryMetadata model) {
033                    DLFileEntryMetadataSoap soapModel = new DLFileEntryMetadataSoap();
034    
035                    soapModel.setUuid(model.getUuid());
036                    soapModel.setFileEntryMetadataId(model.getFileEntryMetadataId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setDDMStorageId(model.getDDMStorageId());
039                    soapModel.setDDMStructureId(model.getDDMStructureId());
040                    soapModel.setFileEntryId(model.getFileEntryId());
041                    soapModel.setFileVersionId(model.getFileVersionId());
042    
043                    return soapModel;
044            }
045    
046            public static DLFileEntryMetadataSoap[] toSoapModels(
047                    DLFileEntryMetadata[] models) {
048                    DLFileEntryMetadataSoap[] soapModels = new DLFileEntryMetadataSoap[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 DLFileEntryMetadataSoap[][] toSoapModels(
058                    DLFileEntryMetadata[][] models) {
059                    DLFileEntryMetadataSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new DLFileEntryMetadataSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new DLFileEntryMetadataSoap[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 DLFileEntryMetadataSoap[] toSoapModels(
076                    List<DLFileEntryMetadata> models) {
077                    List<DLFileEntryMetadataSoap> soapModels = new ArrayList<DLFileEntryMetadataSoap>(models.size());
078    
079                    for (DLFileEntryMetadata model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new DLFileEntryMetadataSoap[soapModels.size()]);
084            }
085    
086            public DLFileEntryMetadataSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _fileEntryMetadataId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setFileEntryMetadataId(pk);
095            }
096    
097            public String getUuid() {
098                    return _uuid;
099            }
100    
101            public void setUuid(String uuid) {
102                    _uuid = uuid;
103            }
104    
105            public long getFileEntryMetadataId() {
106                    return _fileEntryMetadataId;
107            }
108    
109            public void setFileEntryMetadataId(long fileEntryMetadataId) {
110                    _fileEntryMetadataId = fileEntryMetadataId;
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 getDDMStorageId() {
122                    return _DDMStorageId;
123            }
124    
125            public void setDDMStorageId(long DDMStorageId) {
126                    _DDMStorageId = DDMStorageId;
127            }
128    
129            public long getDDMStructureId() {
130                    return _DDMStructureId;
131            }
132    
133            public void setDDMStructureId(long DDMStructureId) {
134                    _DDMStructureId = DDMStructureId;
135            }
136    
137            public long getFileEntryId() {
138                    return _fileEntryId;
139            }
140    
141            public void setFileEntryId(long fileEntryId) {
142                    _fileEntryId = fileEntryId;
143            }
144    
145            public long getFileVersionId() {
146                    return _fileVersionId;
147            }
148    
149            public void setFileVersionId(long fileVersionId) {
150                    _fileVersionId = fileVersionId;
151            }
152    
153            private String _uuid;
154            private long _fileEntryMetadataId;
155            private long _companyId;
156            private long _DDMStorageId;
157            private long _DDMStructureId;
158            private long _fileEntryId;
159            private long _fileVersionId;
160    }