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.asset.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 AssetTagStatsSoap implements Serializable {
032            public static AssetTagStatsSoap toSoapModel(AssetTagStats model) {
033                    AssetTagStatsSoap soapModel = new AssetTagStatsSoap();
034    
035                    soapModel.setTagStatsId(model.getTagStatsId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setTagId(model.getTagId());
038                    soapModel.setClassNameId(model.getClassNameId());
039                    soapModel.setAssetCount(model.getAssetCount());
040    
041                    return soapModel;
042            }
043    
044            public static AssetTagStatsSoap[] toSoapModels(AssetTagStats[] models) {
045                    AssetTagStatsSoap[] soapModels = new AssetTagStatsSoap[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 AssetTagStatsSoap[][] toSoapModels(AssetTagStats[][] models) {
055                    AssetTagStatsSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new AssetTagStatsSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new AssetTagStatsSoap[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 AssetTagStatsSoap[] toSoapModels(List<AssetTagStats> models) {
072                    List<AssetTagStatsSoap> soapModels = new ArrayList<AssetTagStatsSoap>(models.size());
073    
074                    for (AssetTagStats model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new AssetTagStatsSoap[soapModels.size()]);
079            }
080    
081            public AssetTagStatsSoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _tagStatsId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setTagStatsId(pk);
090            }
091    
092            public long getTagStatsId() {
093                    return _tagStatsId;
094            }
095    
096            public void setTagStatsId(long tagStatsId) {
097                    _tagStatsId = tagStatsId;
098            }
099    
100            public long getCompanyId() {
101                    return _companyId;
102            }
103    
104            public void setCompanyId(long companyId) {
105                    _companyId = companyId;
106            }
107    
108            public long getTagId() {
109                    return _tagId;
110            }
111    
112            public void setTagId(long tagId) {
113                    _tagId = tagId;
114            }
115    
116            public long getClassNameId() {
117                    return _classNameId;
118            }
119    
120            public void setClassNameId(long classNameId) {
121                    _classNameId = classNameId;
122            }
123    
124            public int getAssetCount() {
125                    return _assetCount;
126            }
127    
128            public void setAssetCount(int assetCount) {
129                    _assetCount = assetCount;
130            }
131    
132            private long _tagStatsId;
133            private long _companyId;
134            private long _tagId;
135            private long _classNameId;
136            private int _assetCount;
137    }