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.setDDMStorageId(model.getDDMStorageId());
038                    soapModel.setDDMStructureId(model.getDDMStructureId());
039                    soapModel.setFileEntryId(model.getFileEntryId());
040                    soapModel.setFileVersionId(model.getFileVersionId());
041    
042                    return soapModel;
043            }
044    
045            public static DLFileEntryMetadataSoap[] toSoapModels(
046                    DLFileEntryMetadata[] models) {
047                    DLFileEntryMetadataSoap[] soapModels = new DLFileEntryMetadataSoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static DLFileEntryMetadataSoap[][] toSoapModels(
057                    DLFileEntryMetadata[][] models) {
058                    DLFileEntryMetadataSoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new DLFileEntryMetadataSoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new DLFileEntryMetadataSoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static DLFileEntryMetadataSoap[] toSoapModels(
075                    List<DLFileEntryMetadata> models) {
076                    List<DLFileEntryMetadataSoap> soapModels = new ArrayList<DLFileEntryMetadataSoap>(models.size());
077    
078                    for (DLFileEntryMetadata model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new DLFileEntryMetadataSoap[soapModels.size()]);
083            }
084    
085            public DLFileEntryMetadataSoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _fileEntryMetadataId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setFileEntryMetadataId(pk);
094            }
095    
096            public String getUuid() {
097                    return _uuid;
098            }
099    
100            public void setUuid(String uuid) {
101                    _uuid = uuid;
102            }
103    
104            public long getFileEntryMetadataId() {
105                    return _fileEntryMetadataId;
106            }
107    
108            public void setFileEntryMetadataId(long fileEntryMetadataId) {
109                    _fileEntryMetadataId = fileEntryMetadataId;
110            }
111    
112            public long getDDMStorageId() {
113                    return _DDMStorageId;
114            }
115    
116            public void setDDMStorageId(long DDMStorageId) {
117                    _DDMStorageId = DDMStorageId;
118            }
119    
120            public long getDDMStructureId() {
121                    return _DDMStructureId;
122            }
123    
124            public void setDDMStructureId(long DDMStructureId) {
125                    _DDMStructureId = DDMStructureId;
126            }
127    
128            public long getFileEntryId() {
129                    return _fileEntryId;
130            }
131    
132            public void setFileEntryId(long fileEntryId) {
133                    _fileEntryId = fileEntryId;
134            }
135    
136            public long getFileVersionId() {
137                    return _fileVersionId;
138            }
139    
140            public void setFileVersionId(long fileVersionId) {
141                    _fileVersionId = fileVersionId;
142            }
143    
144            private String _uuid;
145            private long _fileEntryMetadataId;
146            private long _DDMStorageId;
147            private long _DDMStructureId;
148            private long _fileEntryId;
149            private long _fileVersionId;
150    }