001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.model; 016 017 import com.liferay.portal.model.ModelWrapper; 018 019 /** 020 * <p> 021 * This class is a wrapper for {@link DLFileShortcut}. 022 * </p> 023 * 024 * @author Brian Wing Shun Chan 025 * @see DLFileShortcut 026 * @generated 027 */ 028 public class DLFileShortcutWrapper implements DLFileShortcut, 029 ModelWrapper<DLFileShortcut> { 030 public DLFileShortcutWrapper(DLFileShortcut dlFileShortcut) { 031 _dlFileShortcut = dlFileShortcut; 032 } 033 034 public Class<?> getModelClass() { 035 return DLFileShortcut.class; 036 } 037 038 public String getModelClassName() { 039 return DLFileShortcut.class.getName(); 040 } 041 042 /** 043 * Returns the primary key of this document library file shortcut. 044 * 045 * @return the primary key of this document library file shortcut 046 */ 047 public long getPrimaryKey() { 048 return _dlFileShortcut.getPrimaryKey(); 049 } 050 051 /** 052 * Sets the primary key of this document library file shortcut. 053 * 054 * @param primaryKey the primary key of this document library file shortcut 055 */ 056 public void setPrimaryKey(long primaryKey) { 057 _dlFileShortcut.setPrimaryKey(primaryKey); 058 } 059 060 /** 061 * Returns the uuid of this document library file shortcut. 062 * 063 * @return the uuid of this document library file shortcut 064 */ 065 public java.lang.String getUuid() { 066 return _dlFileShortcut.getUuid(); 067 } 068 069 /** 070 * Sets the uuid of this document library file shortcut. 071 * 072 * @param uuid the uuid of this document library file shortcut 073 */ 074 public void setUuid(java.lang.String uuid) { 075 _dlFileShortcut.setUuid(uuid); 076 } 077 078 /** 079 * Returns the file shortcut ID of this document library file shortcut. 080 * 081 * @return the file shortcut ID of this document library file shortcut 082 */ 083 public long getFileShortcutId() { 084 return _dlFileShortcut.getFileShortcutId(); 085 } 086 087 /** 088 * Sets the file shortcut ID of this document library file shortcut. 089 * 090 * @param fileShortcutId the file shortcut ID of this document library file shortcut 091 */ 092 public void setFileShortcutId(long fileShortcutId) { 093 _dlFileShortcut.setFileShortcutId(fileShortcutId); 094 } 095 096 /** 097 * Returns the group ID of this document library file shortcut. 098 * 099 * @return the group ID of this document library file shortcut 100 */ 101 public long getGroupId() { 102 return _dlFileShortcut.getGroupId(); 103 } 104 105 /** 106 * Sets the group ID of this document library file shortcut. 107 * 108 * @param groupId the group ID of this document library file shortcut 109 */ 110 public void setGroupId(long groupId) { 111 _dlFileShortcut.setGroupId(groupId); 112 } 113 114 /** 115 * Returns the company ID of this document library file shortcut. 116 * 117 * @return the company ID of this document library file shortcut 118 */ 119 public long getCompanyId() { 120 return _dlFileShortcut.getCompanyId(); 121 } 122 123 /** 124 * Sets the company ID of this document library file shortcut. 125 * 126 * @param companyId the company ID of this document library file shortcut 127 */ 128 public void setCompanyId(long companyId) { 129 _dlFileShortcut.setCompanyId(companyId); 130 } 131 132 /** 133 * Returns the user ID of this document library file shortcut. 134 * 135 * @return the user ID of this document library file shortcut 136 */ 137 public long getUserId() { 138 return _dlFileShortcut.getUserId(); 139 } 140 141 /** 142 * Sets the user ID of this document library file shortcut. 143 * 144 * @param userId the user ID of this document library file shortcut 145 */ 146 public void setUserId(long userId) { 147 _dlFileShortcut.setUserId(userId); 148 } 149 150 /** 151 * Returns the user uuid of this document library file shortcut. 152 * 153 * @return the user uuid of this document library file shortcut 154 * @throws SystemException if a system exception occurred 155 */ 156 public java.lang.String getUserUuid() 157 throws com.liferay.portal.kernel.exception.SystemException { 158 return _dlFileShortcut.getUserUuid(); 159 } 160 161 /** 162 * Sets the user uuid of this document library file shortcut. 163 * 164 * @param userUuid the user uuid of this document library file shortcut 165 */ 166 public void setUserUuid(java.lang.String userUuid) { 167 _dlFileShortcut.setUserUuid(userUuid); 168 } 169 170 /** 171 * Returns the user name of this document library file shortcut. 172 * 173 * @return the user name of this document library file shortcut 174 */ 175 public java.lang.String getUserName() { 176 return _dlFileShortcut.getUserName(); 177 } 178 179 /** 180 * Sets the user name of this document library file shortcut. 181 * 182 * @param userName the user name of this document library file shortcut 183 */ 184 public void setUserName(java.lang.String userName) { 185 _dlFileShortcut.setUserName(userName); 186 } 187 188 /** 189 * Returns the create date of this document library file shortcut. 190 * 191 * @return the create date of this document library file shortcut 192 */ 193 public java.util.Date getCreateDate() { 194 return _dlFileShortcut.getCreateDate(); 195 } 196 197 /** 198 * Sets the create date of this document library file shortcut. 199 * 200 * @param createDate the create date of this document library file shortcut 201 */ 202 public void setCreateDate(java.util.Date createDate) { 203 _dlFileShortcut.setCreateDate(createDate); 204 } 205 206 /** 207 * Returns the modified date of this document library file shortcut. 208 * 209 * @return the modified date of this document library file shortcut 210 */ 211 public java.util.Date getModifiedDate() { 212 return _dlFileShortcut.getModifiedDate(); 213 } 214 215 /** 216 * Sets the modified date of this document library file shortcut. 217 * 218 * @param modifiedDate the modified date of this document library file shortcut 219 */ 220 public void setModifiedDate(java.util.Date modifiedDate) { 221 _dlFileShortcut.setModifiedDate(modifiedDate); 222 } 223 224 /** 225 * Returns the repository ID of this document library file shortcut. 226 * 227 * @return the repository ID of this document library file shortcut 228 */ 229 public long getRepositoryId() { 230 return _dlFileShortcut.getRepositoryId(); 231 } 232 233 /** 234 * Sets the repository ID of this document library file shortcut. 235 * 236 * @param repositoryId the repository ID of this document library file shortcut 237 */ 238 public void setRepositoryId(long repositoryId) { 239 _dlFileShortcut.setRepositoryId(repositoryId); 240 } 241 242 /** 243 * Returns the folder ID of this document library file shortcut. 244 * 245 * @return the folder ID of this document library file shortcut 246 */ 247 public long getFolderId() { 248 return _dlFileShortcut.getFolderId(); 249 } 250 251 /** 252 * Sets the folder ID of this document library file shortcut. 253 * 254 * @param folderId the folder ID of this document library file shortcut 255 */ 256 public void setFolderId(long folderId) { 257 _dlFileShortcut.setFolderId(folderId); 258 } 259 260 /** 261 * Returns the to file entry ID of this document library file shortcut. 262 * 263 * @return the to file entry ID of this document library file shortcut 264 */ 265 public long getToFileEntryId() { 266 return _dlFileShortcut.getToFileEntryId(); 267 } 268 269 /** 270 * Sets the to file entry ID of this document library file shortcut. 271 * 272 * @param toFileEntryId the to file entry ID of this document library file shortcut 273 */ 274 public void setToFileEntryId(long toFileEntryId) { 275 _dlFileShortcut.setToFileEntryId(toFileEntryId); 276 } 277 278 /** 279 * Returns the status of this document library file shortcut. 280 * 281 * @return the status of this document library file shortcut 282 */ 283 public int getStatus() { 284 return _dlFileShortcut.getStatus(); 285 } 286 287 /** 288 * Sets the status of this document library file shortcut. 289 * 290 * @param status the status of this document library file shortcut 291 */ 292 public void setStatus(int status) { 293 _dlFileShortcut.setStatus(status); 294 } 295 296 /** 297 * Returns the status by user ID of this document library file shortcut. 298 * 299 * @return the status by user ID of this document library file shortcut 300 */ 301 public long getStatusByUserId() { 302 return _dlFileShortcut.getStatusByUserId(); 303 } 304 305 /** 306 * Sets the status by user ID of this document library file shortcut. 307 * 308 * @param statusByUserId the status by user ID of this document library file shortcut 309 */ 310 public void setStatusByUserId(long statusByUserId) { 311 _dlFileShortcut.setStatusByUserId(statusByUserId); 312 } 313 314 /** 315 * Returns the status by user uuid of this document library file shortcut. 316 * 317 * @return the status by user uuid of this document library file shortcut 318 * @throws SystemException if a system exception occurred 319 */ 320 public java.lang.String getStatusByUserUuid() 321 throws com.liferay.portal.kernel.exception.SystemException { 322 return _dlFileShortcut.getStatusByUserUuid(); 323 } 324 325 /** 326 * Sets the status by user uuid of this document library file shortcut. 327 * 328 * @param statusByUserUuid the status by user uuid of this document library file shortcut 329 */ 330 public void setStatusByUserUuid(java.lang.String statusByUserUuid) { 331 _dlFileShortcut.setStatusByUserUuid(statusByUserUuid); 332 } 333 334 /** 335 * Returns the status by user name of this document library file shortcut. 336 * 337 * @return the status by user name of this document library file shortcut 338 */ 339 public java.lang.String getStatusByUserName() { 340 return _dlFileShortcut.getStatusByUserName(); 341 } 342 343 /** 344 * Sets the status by user name of this document library file shortcut. 345 * 346 * @param statusByUserName the status by user name of this document library file shortcut 347 */ 348 public void setStatusByUserName(java.lang.String statusByUserName) { 349 _dlFileShortcut.setStatusByUserName(statusByUserName); 350 } 351 352 /** 353 * Returns the status date of this document library file shortcut. 354 * 355 * @return the status date of this document library file shortcut 356 */ 357 public java.util.Date getStatusDate() { 358 return _dlFileShortcut.getStatusDate(); 359 } 360 361 /** 362 * Sets the status date of this document library file shortcut. 363 * 364 * @param statusDate the status date of this document library file shortcut 365 */ 366 public void setStatusDate(java.util.Date statusDate) { 367 _dlFileShortcut.setStatusDate(statusDate); 368 } 369 370 /** 371 * @deprecated Renamed to {@link #isApproved()} 372 */ 373 public boolean getApproved() { 374 return _dlFileShortcut.getApproved(); 375 } 376 377 /** 378 * Returns <code>true</code> if this document library file shortcut is approved. 379 * 380 * @return <code>true</code> if this document library file shortcut is approved; <code>false</code> otherwise 381 */ 382 public boolean isApproved() { 383 return _dlFileShortcut.isApproved(); 384 } 385 386 /** 387 * Returns <code>true</code> if this document library file shortcut is a draft. 388 * 389 * @return <code>true</code> if this document library file shortcut is a draft; <code>false</code> otherwise 390 */ 391 public boolean isDraft() { 392 return _dlFileShortcut.isDraft(); 393 } 394 395 /** 396 * Returns <code>true</code> if this document library file shortcut is expired. 397 * 398 * @return <code>true</code> if this document library file shortcut is expired; <code>false</code> otherwise 399 */ 400 public boolean isExpired() { 401 return _dlFileShortcut.isExpired(); 402 } 403 404 /** 405 * Returns <code>true</code> if this document library file shortcut is pending. 406 * 407 * @return <code>true</code> if this document library file shortcut is pending; <code>false</code> otherwise 408 */ 409 public boolean isPending() { 410 return _dlFileShortcut.isPending(); 411 } 412 413 public boolean isNew() { 414 return _dlFileShortcut.isNew(); 415 } 416 417 public void setNew(boolean n) { 418 _dlFileShortcut.setNew(n); 419 } 420 421 public boolean isCachedModel() { 422 return _dlFileShortcut.isCachedModel(); 423 } 424 425 public void setCachedModel(boolean cachedModel) { 426 _dlFileShortcut.setCachedModel(cachedModel); 427 } 428 429 public boolean isEscapedModel() { 430 return _dlFileShortcut.isEscapedModel(); 431 } 432 433 public java.io.Serializable getPrimaryKeyObj() { 434 return _dlFileShortcut.getPrimaryKeyObj(); 435 } 436 437 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { 438 _dlFileShortcut.setPrimaryKeyObj(primaryKeyObj); 439 } 440 441 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { 442 return _dlFileShortcut.getExpandoBridge(); 443 } 444 445 public void setExpandoBridgeAttributes( 446 com.liferay.portal.service.ServiceContext serviceContext) { 447 _dlFileShortcut.setExpandoBridgeAttributes(serviceContext); 448 } 449 450 @Override 451 public java.lang.Object clone() { 452 return new DLFileShortcutWrapper((DLFileShortcut)_dlFileShortcut.clone()); 453 } 454 455 public int compareTo( 456 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) { 457 return _dlFileShortcut.compareTo(dlFileShortcut); 458 } 459 460 @Override 461 public int hashCode() { 462 return _dlFileShortcut.hashCode(); 463 } 464 465 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileShortcut> toCacheModel() { 466 return _dlFileShortcut.toCacheModel(); 467 } 468 469 public com.liferay.portlet.documentlibrary.model.DLFileShortcut toEscapedModel() { 470 return new DLFileShortcutWrapper(_dlFileShortcut.toEscapedModel()); 471 } 472 473 @Override 474 public java.lang.String toString() { 475 return _dlFileShortcut.toString(); 476 } 477 478 public java.lang.String toXmlString() { 479 return _dlFileShortcut.toXmlString(); 480 } 481 482 public void persist() 483 throws com.liferay.portal.kernel.exception.SystemException { 484 _dlFileShortcut.persist(); 485 } 486 487 public com.liferay.portal.kernel.repository.model.Folder getFolder() { 488 return _dlFileShortcut.getFolder(); 489 } 490 491 public java.lang.String getToTitle() { 492 return _dlFileShortcut.getToTitle(); 493 } 494 495 /** 496 * @deprecated Renamed to {@link #getWrappedModel} 497 */ 498 public DLFileShortcut getWrappedDLFileShortcut() { 499 return _dlFileShortcut; 500 } 501 502 public DLFileShortcut getWrappedModel() { 503 return _dlFileShortcut; 504 } 505 506 public void resetOriginalValues() { 507 _dlFileShortcut.resetOriginalValues(); 508 } 509 510 private DLFileShortcut _dlFileShortcut; 511 }