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 LockSoap implements Serializable {
033            public static LockSoap toSoapModel(Lock model) {
034                    LockSoap soapModel = new LockSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setLockId(model.getLockId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setClassName(model.getClassName());
044                    soapModel.setKey(model.getKey());
045                    soapModel.setOwner(model.getOwner());
046                    soapModel.setInheritable(model.getInheritable());
047                    soapModel.setExpirationDate(model.getExpirationDate());
048    
049                    return soapModel;
050            }
051    
052            public static LockSoap[] toSoapModels(Lock[] models) {
053                    LockSoap[] soapModels = new LockSoap[models.length];
054    
055                    for (int i = 0; i < models.length; i++) {
056                            soapModels[i] = toSoapModel(models[i]);
057                    }
058    
059                    return soapModels;
060            }
061    
062            public static LockSoap[][] toSoapModels(Lock[][] models) {
063                    LockSoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new LockSoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new LockSoap[0][0];
070                    }
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModels(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static LockSoap[] toSoapModels(List<Lock> models) {
080                    List<LockSoap> soapModels = new ArrayList<LockSoap>(models.size());
081    
082                    for (Lock model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new LockSoap[soapModels.size()]);
087            }
088    
089            public LockSoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _lockId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setLockId(pk);
098            }
099    
100            public long getMvccVersion() {
101                    return _mvccVersion;
102            }
103    
104            public void setMvccVersion(long mvccVersion) {
105                    _mvccVersion = mvccVersion;
106            }
107    
108            public String getUuid() {
109                    return _uuid;
110            }
111    
112            public void setUuid(String uuid) {
113                    _uuid = uuid;
114            }
115    
116            public long getLockId() {
117                    return _lockId;
118            }
119    
120            public void setLockId(long lockId) {
121                    _lockId = lockId;
122            }
123    
124            public long getCompanyId() {
125                    return _companyId;
126            }
127    
128            public void setCompanyId(long companyId) {
129                    _companyId = companyId;
130            }
131    
132            public long getUserId() {
133                    return _userId;
134            }
135    
136            public void setUserId(long userId) {
137                    _userId = userId;
138            }
139    
140            public String getUserName() {
141                    return _userName;
142            }
143    
144            public void setUserName(String userName) {
145                    _userName = userName;
146            }
147    
148            public Date getCreateDate() {
149                    return _createDate;
150            }
151    
152            public void setCreateDate(Date createDate) {
153                    _createDate = createDate;
154            }
155    
156            public String getClassName() {
157                    return _className;
158            }
159    
160            public void setClassName(String className) {
161                    _className = className;
162            }
163    
164            public String getKey() {
165                    return _key;
166            }
167    
168            public void setKey(String key) {
169                    _key = key;
170            }
171    
172            public String getOwner() {
173                    return _owner;
174            }
175    
176            public void setOwner(String owner) {
177                    _owner = owner;
178            }
179    
180            public boolean getInheritable() {
181                    return _inheritable;
182            }
183    
184            public boolean isInheritable() {
185                    return _inheritable;
186            }
187    
188            public void setInheritable(boolean inheritable) {
189                    _inheritable = inheritable;
190            }
191    
192            public Date getExpirationDate() {
193                    return _expirationDate;
194            }
195    
196            public void setExpirationDate(Date expirationDate) {
197                    _expirationDate = expirationDate;
198            }
199    
200            private long _mvccVersion;
201            private String _uuid;
202            private long _lockId;
203            private long _companyId;
204            private long _userId;
205            private String _userName;
206            private Date _createDate;
207            private String _className;
208            private String _key;
209            private String _owner;
210            private boolean _inheritable;
211            private Date _expirationDate;
212    }