1
19
20 package com.liferay.portlet.documentlibrary.model;
21
22 import java.io.Serializable;
23
24 import java.util.ArrayList;
25 import java.util.Date;
26 import java.util.List;
27
28
46 public class DLFileEntrySoap implements Serializable {
47 public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
48 DLFileEntrySoap soapModel = new DLFileEntrySoap();
49
50 soapModel.setUuid(model.getUuid());
51 soapModel.setFileEntryId(model.getFileEntryId());
52 soapModel.setGroupId(model.getGroupId());
53 soapModel.setCompanyId(model.getCompanyId());
54 soapModel.setUserId(model.getUserId());
55 soapModel.setUserName(model.getUserName());
56 soapModel.setVersionUserId(model.getVersionUserId());
57 soapModel.setVersionUserName(model.getVersionUserName());
58 soapModel.setCreateDate(model.getCreateDate());
59 soapModel.setModifiedDate(model.getModifiedDate());
60 soapModel.setFolderId(model.getFolderId());
61 soapModel.setName(model.getName());
62 soapModel.setTitle(model.getTitle());
63 soapModel.setDescription(model.getDescription());
64 soapModel.setVersion(model.getVersion());
65 soapModel.setSize(model.getSize());
66 soapModel.setReadCount(model.getReadCount());
67 soapModel.setExtraSettings(model.getExtraSettings());
68
69 return soapModel;
70 }
71
72 public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
73 List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
74
75 for (DLFileEntry model : models) {
76 soapModels.add(toSoapModel(model));
77 }
78
79 return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
80 }
81
82 public DLFileEntrySoap() {
83 }
84
85 public long getPrimaryKey() {
86 return _fileEntryId;
87 }
88
89 public void setPrimaryKey(long pk) {
90 setFileEntryId(pk);
91 }
92
93 public String getUuid() {
94 return _uuid;
95 }
96
97 public void setUuid(String uuid) {
98 _uuid = uuid;
99 }
100
101 public long getFileEntryId() {
102 return _fileEntryId;
103 }
104
105 public void setFileEntryId(long fileEntryId) {
106 _fileEntryId = fileEntryId;
107 }
108
109 public long getGroupId() {
110 return _groupId;
111 }
112
113 public void setGroupId(long groupId) {
114 _groupId = groupId;
115 }
116
117 public long getCompanyId() {
118 return _companyId;
119 }
120
121 public void setCompanyId(long companyId) {
122 _companyId = companyId;
123 }
124
125 public long getUserId() {
126 return _userId;
127 }
128
129 public void setUserId(long userId) {
130 _userId = userId;
131 }
132
133 public String getUserName() {
134 return _userName;
135 }
136
137 public void setUserName(String userName) {
138 _userName = userName;
139 }
140
141 public long getVersionUserId() {
142 return _versionUserId;
143 }
144
145 public void setVersionUserId(long versionUserId) {
146 _versionUserId = versionUserId;
147 }
148
149 public String getVersionUserName() {
150 return _versionUserName;
151 }
152
153 public void setVersionUserName(String versionUserName) {
154 _versionUserName = versionUserName;
155 }
156
157 public Date getCreateDate() {
158 return _createDate;
159 }
160
161 public void setCreateDate(Date createDate) {
162 _createDate = createDate;
163 }
164
165 public Date getModifiedDate() {
166 return _modifiedDate;
167 }
168
169 public void setModifiedDate(Date modifiedDate) {
170 _modifiedDate = modifiedDate;
171 }
172
173 public long getFolderId() {
174 return _folderId;
175 }
176
177 public void setFolderId(long folderId) {
178 _folderId = folderId;
179 }
180
181 public String getName() {
182 return _name;
183 }
184
185 public void setName(String name) {
186 _name = name;
187 }
188
189 public String getTitle() {
190 return _title;
191 }
192
193 public void setTitle(String title) {
194 _title = title;
195 }
196
197 public String getDescription() {
198 return _description;
199 }
200
201 public void setDescription(String description) {
202 _description = description;
203 }
204
205 public double getVersion() {
206 return _version;
207 }
208
209 public void setVersion(double version) {
210 _version = version;
211 }
212
213 public int getSize() {
214 return _size;
215 }
216
217 public void setSize(int size) {
218 _size = size;
219 }
220
221 public int getReadCount() {
222 return _readCount;
223 }
224
225 public void setReadCount(int readCount) {
226 _readCount = readCount;
227 }
228
229 public String getExtraSettings() {
230 return _extraSettings;
231 }
232
233 public void setExtraSettings(String extraSettings) {
234 _extraSettings = extraSettings;
235 }
236
237 private String _uuid;
238 private long _fileEntryId;
239 private long _groupId;
240 private long _companyId;
241 private long _userId;
242 private String _userName;
243 private long _versionUserId;
244 private String _versionUserName;
245 private Date _createDate;
246 private Date _modifiedDate;
247 private long _folderId;
248 private String _name;
249 private String _title;
250 private String _description;
251 private double _version;
252 private int _size;
253 private int _readCount;
254 private String _extraSettings;
255 }