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