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