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