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.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class WebDAVPropsSoap implements Serializable {
033            public static WebDAVPropsSoap toSoapModel(WebDAVProps model) {
034                    WebDAVPropsSoap soapModel = new WebDAVPropsSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setWebDavPropsId(model.getWebDavPropsId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setProps(model.getProps());
044    
045                    return soapModel;
046            }
047    
048            public static WebDAVPropsSoap[] toSoapModels(WebDAVProps[] models) {
049                    WebDAVPropsSoap[] soapModels = new WebDAVPropsSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static WebDAVPropsSoap[][] toSoapModels(WebDAVProps[][] models) {
059                    WebDAVPropsSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new WebDAVPropsSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new WebDAVPropsSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static WebDAVPropsSoap[] toSoapModels(List<WebDAVProps> models) {
076                    List<WebDAVPropsSoap> soapModels = new ArrayList<WebDAVPropsSoap>(models.size());
077    
078                    for (WebDAVProps model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new WebDAVPropsSoap[soapModels.size()]);
083            }
084    
085            public WebDAVPropsSoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _webDavPropsId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setWebDavPropsId(pk);
094            }
095    
096            public long getMvccVersion() {
097                    return _mvccVersion;
098            }
099    
100            public void setMvccVersion(long mvccVersion) {
101                    _mvccVersion = mvccVersion;
102            }
103    
104            public long getWebDavPropsId() {
105                    return _webDavPropsId;
106            }
107    
108            public void setWebDavPropsId(long webDavPropsId) {
109                    _webDavPropsId = webDavPropsId;
110            }
111    
112            public long getCompanyId() {
113                    return _companyId;
114            }
115    
116            public void setCompanyId(long companyId) {
117                    _companyId = companyId;
118            }
119    
120            public Date getCreateDate() {
121                    return _createDate;
122            }
123    
124            public void setCreateDate(Date createDate) {
125                    _createDate = createDate;
126            }
127    
128            public Date getModifiedDate() {
129                    return _modifiedDate;
130            }
131    
132            public void setModifiedDate(Date modifiedDate) {
133                    _modifiedDate = modifiedDate;
134            }
135    
136            public long getClassNameId() {
137                    return _classNameId;
138            }
139    
140            public void setClassNameId(long classNameId) {
141                    _classNameId = classNameId;
142            }
143    
144            public long getClassPK() {
145                    return _classPK;
146            }
147    
148            public void setClassPK(long classPK) {
149                    _classPK = classPK;
150            }
151    
152            public String getProps() {
153                    return _props;
154            }
155    
156            public void setProps(String props) {
157                    _props = props;
158            }
159    
160            private long _mvccVersion;
161            private long _webDavPropsId;
162            private long _companyId;
163            private Date _createDate;
164            private Date _modifiedDate;
165            private long _classNameId;
166            private long _classPK;
167            private String _props;
168    }