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.setFolderId(model.getFolderId());
043 soapModel.setToFileEntryId(model.getToFileEntryId());
044 soapModel.setStatus(model.getStatus());
045 soapModel.setStatusByUserId(model.getStatusByUserId());
046 soapModel.setStatusByUserName(model.getStatusByUserName());
047 soapModel.setStatusDate(model.getStatusDate());
048
049 return soapModel;
050 }
051
052 public static DLFileShortcutSoap[] toSoapModels(DLFileShortcut[] models) {
053 DLFileShortcutSoap[] soapModels = new DLFileShortcutSoap[models.length];
054
055 for (int i = 0; i < models.length; i++) {
056 soapModels[i] = toSoapModel(models[i]);
057 }
058
059 return soapModels;
060 }
061
062 public static DLFileShortcutSoap[][] toSoapModels(DLFileShortcut[][] models) {
063 DLFileShortcutSoap[][] soapModels = null;
064
065 if (models.length > 0) {
066 soapModels = new DLFileShortcutSoap[models.length][models[0].length];
067 }
068 else {
069 soapModels = new DLFileShortcutSoap[0][0];
070 }
071
072 for (int i = 0; i < models.length; i++) {
073 soapModels[i] = toSoapModels(models[i]);
074 }
075
076 return soapModels;
077 }
078
079 public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
080 List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
081
082 for (DLFileShortcut model : models) {
083 soapModels.add(toSoapModel(model));
084 }
085
086 return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
087 }
088
089 public DLFileShortcutSoap() {
090 }
091
092 public long getPrimaryKey() {
093 return _fileShortcutId;
094 }
095
096 public void setPrimaryKey(long pk) {
097 setFileShortcutId(pk);
098 }
099
100 public String getUuid() {
101 return _uuid;
102 }
103
104 public void setUuid(String uuid) {
105 _uuid = uuid;
106 }
107
108 public long getFileShortcutId() {
109 return _fileShortcutId;
110 }
111
112 public void setFileShortcutId(long fileShortcutId) {
113 _fileShortcutId = fileShortcutId;
114 }
115
116 public long getGroupId() {
117 return _groupId;
118 }
119
120 public void setGroupId(long groupId) {
121 _groupId = groupId;
122 }
123
124 public long getCompanyId() {
125 return _companyId;
126 }
127
128 public void setCompanyId(long companyId) {
129 _companyId = companyId;
130 }
131
132 public long getUserId() {
133 return _userId;
134 }
135
136 public void setUserId(long userId) {
137 _userId = userId;
138 }
139
140 public String getUserName() {
141 return _userName;
142 }
143
144 public void setUserName(String userName) {
145 _userName = userName;
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 long getToFileEntryId() {
173 return _toFileEntryId;
174 }
175
176 public void setToFileEntryId(long toFileEntryId) {
177 _toFileEntryId = toFileEntryId;
178 }
179
180 public int getStatus() {
181 return _status;
182 }
183
184 public void setStatus(int status) {
185 _status = status;
186 }
187
188 public long getStatusByUserId() {
189 return _statusByUserId;
190 }
191
192 public void setStatusByUserId(long statusByUserId) {
193 _statusByUserId = statusByUserId;
194 }
195
196 public String getStatusByUserName() {
197 return _statusByUserName;
198 }
199
200 public void setStatusByUserName(String statusByUserName) {
201 _statusByUserName = statusByUserName;
202 }
203
204 public Date getStatusDate() {
205 return _statusDate;
206 }
207
208 public void setStatusDate(Date statusDate) {
209 _statusDate = statusDate;
210 }
211
212 private String _uuid;
213 private long _fileShortcutId;
214 private long _groupId;
215 private long _companyId;
216 private long _userId;
217 private String _userName;
218 private Date _createDate;
219 private Date _modifiedDate;
220 private long _folderId;
221 private long _toFileEntryId;
222 private int _status;
223 private long _statusByUserId;
224 private String _statusByUserName;
225 private Date _statusDate;
226 }