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.asset.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services.
025     *
026     * @author    Brian Wing Shun Chan
027     * @generated
028     */
029    public class AssetLinkSoap implements Serializable {
030            public static AssetLinkSoap toSoapModel(AssetLink model) {
031                    AssetLinkSoap soapModel = new AssetLinkSoap();
032    
033                    soapModel.setLinkId(model.getLinkId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setUserName(model.getUserName());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setEntryId1(model.getEntryId1());
039                    soapModel.setEntryId2(model.getEntryId2());
040                    soapModel.setType(model.getType());
041                    soapModel.setWeight(model.getWeight());
042    
043                    return soapModel;
044            }
045    
046            public static AssetLinkSoap[] toSoapModels(AssetLink[] models) {
047                    AssetLinkSoap[] soapModels = new AssetLinkSoap[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 AssetLinkSoap[][] toSoapModels(AssetLink[][] models) {
057                    AssetLinkSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new AssetLinkSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new AssetLinkSoap[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 AssetLinkSoap[] toSoapModels(List<AssetLink> models) {
074                    List<AssetLinkSoap> soapModels = new ArrayList<AssetLinkSoap>(models.size());
075    
076                    for (AssetLink model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new AssetLinkSoap[soapModels.size()]);
081            }
082    
083            public AssetLinkSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _linkId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setLinkId(pk);
092            }
093    
094            public long getLinkId() {
095                    return _linkId;
096            }
097    
098            public void setLinkId(long linkId) {
099                    _linkId = linkId;
100            }
101    
102            public long getCompanyId() {
103                    return _companyId;
104            }
105    
106            public void setCompanyId(long companyId) {
107                    _companyId = companyId;
108            }
109    
110            public long getUserId() {
111                    return _userId;
112            }
113    
114            public void setUserId(long userId) {
115                    _userId = userId;
116            }
117    
118            public String getUserName() {
119                    return _userName;
120            }
121    
122            public void setUserName(String userName) {
123                    _userName = userName;
124            }
125    
126            public Date getCreateDate() {
127                    return _createDate;
128            }
129    
130            public void setCreateDate(Date createDate) {
131                    _createDate = createDate;
132            }
133    
134            public long getEntryId1() {
135                    return _entryId1;
136            }
137    
138            public void setEntryId1(long entryId1) {
139                    _entryId1 = entryId1;
140            }
141    
142            public long getEntryId2() {
143                    return _entryId2;
144            }
145    
146            public void setEntryId2(long entryId2) {
147                    _entryId2 = entryId2;
148            }
149    
150            public int getType() {
151                    return _type;
152            }
153    
154            public void setType(int type) {
155                    _type = type;
156            }
157    
158            public int getWeight() {
159                    return _weight;
160            }
161    
162            public void setWeight(int weight) {
163                    _weight = weight;
164            }
165    
166            private long _linkId;
167            private long _companyId;
168            private long _userId;
169            private String _userName;
170            private Date _createDate;
171            private long _entryId1;
172            private long _entryId2;
173            private int _type;
174            private int _weight;
175    }