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