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.journal.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 JournalArticleResourceSoap implements Serializable {
032            public static JournalArticleResourceSoap toSoapModel(
033                    JournalArticleResource model) {
034                    JournalArticleResourceSoap soapModel = new JournalArticleResourceSoap();
035    
036                    soapModel.setUuid(model.getUuid());
037                    soapModel.setResourcePrimKey(model.getResourcePrimKey());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setArticleId(model.getArticleId());
040    
041                    return soapModel;
042            }
043    
044            public static JournalArticleResourceSoap[] toSoapModels(
045                    JournalArticleResource[] models) {
046                    JournalArticleResourceSoap[] soapModels = new JournalArticleResourceSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static JournalArticleResourceSoap[][] toSoapModels(
056                    JournalArticleResource[][] models) {
057                    JournalArticleResourceSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new JournalArticleResourceSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new JournalArticleResourceSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static JournalArticleResourceSoap[] toSoapModels(
074                    List<JournalArticleResource> models) {
075                    List<JournalArticleResourceSoap> soapModels = new ArrayList<JournalArticleResourceSoap>(models.size());
076    
077                    for (JournalArticleResource model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new JournalArticleResourceSoap[soapModels.size()]);
082            }
083    
084            public JournalArticleResourceSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _resourcePrimKey;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setResourcePrimKey(pk);
093            }
094    
095            public String getUuid() {
096                    return _uuid;
097            }
098    
099            public void setUuid(String uuid) {
100                    _uuid = uuid;
101            }
102    
103            public long getResourcePrimKey() {
104                    return _resourcePrimKey;
105            }
106    
107            public void setResourcePrimKey(long resourcePrimKey) {
108                    _resourcePrimKey = resourcePrimKey;
109            }
110    
111            public long getGroupId() {
112                    return _groupId;
113            }
114    
115            public void setGroupId(long groupId) {
116                    _groupId = groupId;
117            }
118    
119            public String getArticleId() {
120                    return _articleId;
121            }
122    
123            public void setArticleId(String articleId) {
124                    _articleId = articleId;
125            }
126    
127            private String _uuid;
128            private long _resourcePrimKey;
129            private long _groupId;
130            private String _articleId;
131    }