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