001
014
015 package com.liferay.portlet.documentlibrary.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
033 public class DLFileShortcutSoap implements Serializable {
034 public static DLFileShortcutSoap toSoapModel(DLFileShortcut model) {
035 DLFileShortcutSoap soapModel = new DLFileShortcutSoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setFileShortcutId(model.getFileShortcutId());
039 soapModel.setGroupId(model.getGroupId());
040 soapModel.setCompanyId(model.getCompanyId());
041 soapModel.setUserId(model.getUserId());
042 soapModel.setUserName(model.getUserName());
043 soapModel.setCreateDate(model.getCreateDate());
044 soapModel.setModifiedDate(model.getModifiedDate());
045 soapModel.setFolderId(model.getFolderId());
046 soapModel.setToFolderId(model.getToFolderId());
047 soapModel.setToName(model.getToName());
048 soapModel.setStatus(model.getStatus());
049 soapModel.setStatusByUserId(model.getStatusByUserId());
050 soapModel.setStatusByUserName(model.getStatusByUserName());
051 soapModel.setStatusDate(model.getStatusDate());
052
053 return soapModel;
054 }
055
056 public static DLFileShortcutSoap[] toSoapModels(DLFileShortcut[] models) {
057 DLFileShortcutSoap[] soapModels = new DLFileShortcutSoap[models.length];
058
059 for (int i = 0; i < models.length; i++) {
060 soapModels[i] = toSoapModel(models[i]);
061 }
062
063 return soapModels;
064 }
065
066 public static DLFileShortcutSoap[][] toSoapModels(DLFileShortcut[][] models) {
067 DLFileShortcutSoap[][] soapModels = null;
068
069 if (models.length > 0) {
070 soapModels = new DLFileShortcutSoap[models.length][models[0].length];
071 }
072 else {
073 soapModels = new DLFileShortcutSoap[0][0];
074 }
075
076 for (int i = 0; i < models.length; i++) {
077 soapModels[i] = toSoapModels(models[i]);
078 }
079
080 return soapModels;
081 }
082
083 public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
084 List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
085
086 for (DLFileShortcut model : models) {
087 soapModels.add(toSoapModel(model));
088 }
089
090 return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
091 }
092
093 public DLFileShortcutSoap() {
094 }
095
096 public long getPrimaryKey() {
097 return _fileShortcutId;
098 }
099
100 public void setPrimaryKey(long pk) {
101 setFileShortcutId(pk);
102 }
103
104 public String getUuid() {
105 return _uuid;
106 }
107
108 public void setUuid(String uuid) {
109 _uuid = uuid;
110 }
111
112 public long getFileShortcutId() {
113 return _fileShortcutId;
114 }
115
116 public void setFileShortcutId(long fileShortcutId) {
117 _fileShortcutId = fileShortcutId;
118 }
119
120 public long getGroupId() {
121 return _groupId;
122 }
123
124 public void setGroupId(long groupId) {
125 _groupId = groupId;
126 }
127
128 public long getCompanyId() {
129 return _companyId;
130 }
131
132 public void setCompanyId(long companyId) {
133 _companyId = companyId;
134 }
135
136 public long getUserId() {
137 return _userId;
138 }
139
140 public void setUserId(long userId) {
141 _userId = userId;
142 }
143
144 public String getUserName() {
145 return _userName;
146 }
147
148 public void setUserName(String userName) {
149 _userName = userName;
150 }
151
152 public Date getCreateDate() {
153 return _createDate;
154 }
155
156 public void setCreateDate(Date createDate) {
157 _createDate = createDate;
158 }
159
160 public Date getModifiedDate() {
161 return _modifiedDate;
162 }
163
164 public void setModifiedDate(Date modifiedDate) {
165 _modifiedDate = modifiedDate;
166 }
167
168 public long getFolderId() {
169 return _folderId;
170 }
171
172 public void setFolderId(long folderId) {
173 _folderId = folderId;
174 }
175
176 public long getToFolderId() {
177 return _toFolderId;
178 }
179
180 public void setToFolderId(long toFolderId) {
181 _toFolderId = toFolderId;
182 }
183
184 public String getToName() {
185 return _toName;
186 }
187
188 public void setToName(String toName) {
189 _toName = toName;
190 }
191
192 public int getStatus() {
193 return _status;
194 }
195
196 public void setStatus(int status) {
197 _status = status;
198 }
199
200 public long getStatusByUserId() {
201 return _statusByUserId;
202 }
203
204 public void setStatusByUserId(long statusByUserId) {
205 _statusByUserId = statusByUserId;
206 }
207
208 public String getStatusByUserName() {
209 return _statusByUserName;
210 }
211
212 public void setStatusByUserName(String statusByUserName) {
213 _statusByUserName = statusByUserName;
214 }
215
216 public Date getStatusDate() {
217 return _statusDate;
218 }
219
220 public void setStatusDate(Date statusDate) {
221 _statusDate = statusDate;
222 }
223
224 private String _uuid;
225 private long _fileShortcutId;
226 private long _groupId;
227 private long _companyId;
228 private long _userId;
229 private String _userName;
230 private Date _createDate;
231 private Date _modifiedDate;
232 private long _folderId;
233 private long _toFolderId;
234 private String _toName;
235 private int _status;
236 private long _statusByUserId;
237 private String _statusByUserName;
238 private Date _statusDate;
239 }