1
22
23 package com.liferay.portlet.documentlibrary.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.Date;
29 import java.util.List;
30
31
48 public class DLFileEntrySoap implements Serializable {
49 public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
50 DLFileEntrySoap soapModel = new DLFileEntrySoap();
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 models) {
72 List soapModels = new ArrayList(models.size());
73
74 for (int i = 0; i < models.size(); i++) {
75 DLFileEntry model = (DLFileEntry)models.get(i);
76 soapModels.add(toSoapModel(model));
77 }
78
79 return (DLFileEntrySoap[])soapModels.toArray(new DLFileEntrySoap[0]);
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 long getFileEntryId() {
94 return _fileEntryId;
95 }
96
97 public void setFileEntryId(long fileEntryId) {
98 _fileEntryId = fileEntryId;
99 }
100
101 public long getCompanyId() {
102 return _companyId;
103 }
104
105 public void setCompanyId(long companyId) {
106 _companyId = companyId;
107 }
108
109 public long getUserId() {
110 return _userId;
111 }
112
113 public void setUserId(long userId) {
114 _userId = userId;
115 }
116
117 public String getUserName() {
118 return _userName;
119 }
120
121 public void setUserName(String userName) {
122 _userName = userName;
123 }
124
125 public long getVersionUserId() {
126 return _versionUserId;
127 }
128
129 public void setVersionUserId(long versionUserId) {
130 _versionUserId = versionUserId;
131 }
132
133 public String getVersionUserName() {
134 return _versionUserName;
135 }
136
137 public void setVersionUserName(String versionUserName) {
138 _versionUserName = versionUserName;
139 }
140
141 public Date getCreateDate() {
142 return _createDate;
143 }
144
145 public void setCreateDate(Date createDate) {
146 _createDate = createDate;
147 }
148
149 public Date getModifiedDate() {
150 return _modifiedDate;
151 }
152
153 public void setModifiedDate(Date modifiedDate) {
154 _modifiedDate = modifiedDate;
155 }
156
157 public long getFolderId() {
158 return _folderId;
159 }
160
161 public void setFolderId(long folderId) {
162 _folderId = folderId;
163 }
164
165 public String getName() {
166 return _name;
167 }
168
169 public void setName(String name) {
170 _name = name;
171 }
172
173 public String getTitle() {
174 return _title;
175 }
176
177 public void setTitle(String title) {
178 _title = title;
179 }
180
181 public String getDescription() {
182 return _description;
183 }
184
185 public void setDescription(String description) {
186 _description = description;
187 }
188
189 public double getVersion() {
190 return _version;
191 }
192
193 public void setVersion(double version) {
194 _version = version;
195 }
196
197 public int getSize() {
198 return _size;
199 }
200
201 public void setSize(int size) {
202 _size = size;
203 }
204
205 public int getReadCount() {
206 return _readCount;
207 }
208
209 public void setReadCount(int readCount) {
210 _readCount = readCount;
211 }
212
213 public String getExtraSettings() {
214 return _extraSettings;
215 }
216
217 public void setExtraSettings(String extraSettings) {
218 _extraSettings = extraSettings;
219 }
220
221 private long _fileEntryId;
222 private long _companyId;
223 private long _userId;
224 private String _userName;
225 private long _versionUserId;
226 private String _versionUserName;
227 private Date _createDate;
228 private Date _modifiedDate;
229 private long _folderId;
230 private String _name;
231 private String _title;
232 private String _description;
233 private double _version;
234 private int _size;
235 private int _readCount;
236 private String _extraSettings;
237 }