001 /** 002 * Copyright (c) 2000-present 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.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link DLAppService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DLAppService 026 * @generated 027 */ 028 @ProviderType 029 public class DLAppServiceWrapper implements DLAppService, 030 ServiceWrapper<DLAppService> { 031 public DLAppServiceWrapper(DLAppService dlAppService) { 032 _dlAppService = dlAppService; 033 } 034 035 /** 036 * Adds a file entry and associated metadata. It is created based on a byte 037 * array. 038 * 039 * <p> 040 * This method takes two file names, the <code>sourceFileName</code> and the 041 * <code>title</code>. The <code>sourceFileName</code> corresponds to the 042 * name of the actual file being uploaded. The <code>title</code> 043 * corresponds to a name the client wishes to assign this file after it has 044 * been uploaded to the portal. If it is <code>null</code>, the <code> 045 * sourceFileName</code> will be used. 046 * </p> 047 * 048 * @param repositoryId the primary key of the repository 049 * @param folderId the primary key of the file entry's parent folder 050 * @param sourceFileName the original file's name 051 * @param mimeType the file's MIME type 052 * @param title the name to be assigned to the file (optionally <code>null 053 </code>) 054 * @param description the file's description 055 * @param changeLog the file's version change log 056 * @param bytes the file's data (optionally <code>null</code>) 057 * @param serviceContext the service context to be applied. Can set the 058 asset category IDs, asset tag names, and expando bridge 059 attributes for the file entry. In a Liferay repository, it may 060 include: <ul> <li> fileEntryTypeId - ID for a custom file entry 061 type </li> <li> fieldsMap - mapping for fields associated with a 062 custom file entry type </li> </ul> 063 * @return the file entry 064 * @throws PortalException if the parent folder could not be found or if the 065 file entry's information was invalid 066 */ 067 @Override 068 public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry( 069 long repositoryId, long folderId, java.lang.String sourceFileName, 070 java.lang.String mimeType, java.lang.String title, 071 java.lang.String description, java.lang.String changeLog, byte[] bytes, 072 com.liferay.portal.service.ServiceContext serviceContext) 073 throws com.liferay.portal.kernel.exception.PortalException { 074 return _dlAppService.addFileEntry(repositoryId, folderId, 075 sourceFileName, mimeType, title, description, changeLog, bytes, 076 serviceContext); 077 } 078 079 /** 080 * Adds a file entry and associated metadata. It is created based on a 081 * {@link java.io.File} object. 082 * 083 * <p> 084 * This method takes two file names, the <code>sourceFileName</code> and the 085 * <code>title</code>. The <code>sourceFileName</code> corresponds to the 086 * name of the actual file being uploaded. The <code>title</code> 087 * corresponds to a name the client wishes to assign this file after it has 088 * been uploaded to the portal. If it is <code>null</code>, the <code> 089 * sourceFileName</code> will be used. 090 * </p> 091 * 092 * @param repositoryId the primary key of the repository 093 * @param folderId the primary key of the file entry's parent folder 094 * @param sourceFileName the original file's name 095 * @param mimeType the file's MIME type 096 * @param title the name to be assigned to the file (optionally <code>null 097 </code>) 098 * @param description the file's description 099 * @param changeLog the file's version change log 100 * @param file the file's data (optionally <code>null</code>) 101 * @param serviceContext the service context to be applied. Can set the 102 asset category IDs, asset tag names, and expando bridge 103 attributes for the file entry. In a Liferay repository, it may 104 include: <ul> <li> fileEntryTypeId - ID for a custom file entry 105 type </li> <li> fieldsMap - mapping for fields associated with a 106 custom file entry type </li> </ul> 107 * @return the file entry 108 * @throws PortalException if the parent folder could not be found or if the 109 file entry's information was invalid 110 */ 111 @Override 112 public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry( 113 long repositoryId, long folderId, java.lang.String sourceFileName, 114 java.lang.String mimeType, java.lang.String title, 115 java.lang.String description, java.lang.String changeLog, 116 java.io.File file, 117 com.liferay.portal.service.ServiceContext serviceContext) 118 throws com.liferay.portal.kernel.exception.PortalException { 119 return _dlAppService.addFileEntry(repositoryId, folderId, 120 sourceFileName, mimeType, title, description, changeLog, file, 121 serviceContext); 122 } 123 124 /** 125 * Adds a file entry and associated metadata. It is created based on a 126 * {@link InputStream} object. 127 * 128 * <p> 129 * This method takes two file names, the <code>sourceFileName</code> and the 130 * <code>title</code>. The <code>sourceFileName</code> corresponds to the 131 * name of the actual file being uploaded. The <code>title</code> 132 * corresponds to a name the client wishes to assign this file after it has 133 * been uploaded to the portal. If it is <code>null</code>, the <code> 134 * sourceFileName</code> will be used. 135 * </p> 136 * 137 * @param repositoryId the primary key of the repository 138 * @param folderId the primary key of the file entry's parent folder 139 * @param sourceFileName the original file's name 140 * @param mimeType the file's MIME type 141 * @param title the name to be assigned to the file (optionally <code>null 142 </code>) 143 * @param description the file's description 144 * @param changeLog the file's version change log 145 * @param is the file's data (optionally <code>null</code>) 146 * @param size the file's size (optionally <code>0</code>) 147 * @param serviceContext the service context to be applied. Can set the 148 asset category IDs, asset tag names, and expando bridge 149 attributes for the file entry. In a Liferay repository, it may 150 include: <ul> <li> fileEntryTypeId - ID for a custom file entry 151 type </li> <li> fieldsMap - mapping for fields associated with a 152 custom file entry type </li> </ul> 153 * @return the file entry 154 * @throws PortalException if the parent folder could not be found or if the 155 file entry's information was invalid 156 */ 157 @Override 158 public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry( 159 long repositoryId, long folderId, java.lang.String sourceFileName, 160 java.lang.String mimeType, java.lang.String title, 161 java.lang.String description, java.lang.String changeLog, 162 java.io.InputStream is, long size, 163 com.liferay.portal.service.ServiceContext serviceContext) 164 throws com.liferay.portal.kernel.exception.PortalException { 165 return _dlAppService.addFileEntry(repositoryId, folderId, 166 sourceFileName, mimeType, title, description, changeLog, is, size, 167 serviceContext); 168 } 169 170 /** 171 * Adds a file shortcut to the existing file entry. This method is only 172 * supported by the Liferay repository. 173 * 174 * @param repositoryId the primary key of the repository 175 * @param folderId the primary key of the file shortcut's parent folder 176 * @param toFileEntryId the primary key of the file shortcut's file entry 177 * @param serviceContext the service context to be applied. Can set the 178 asset category IDs, asset tag names, and expando bridge 179 attributes for the file entry. 180 * @return the file shortcut 181 * @throws PortalException if the parent folder or file entry could not be 182 found, or if the file shortcut's information was invalid 183 */ 184 @Override 185 public com.liferay.portal.kernel.repository.model.FileShortcut addFileShortcut( 186 long repositoryId, long folderId, long toFileEntryId, 187 com.liferay.portal.service.ServiceContext serviceContext) 188 throws com.liferay.portal.kernel.exception.PortalException { 189 return _dlAppService.addFileShortcut(repositoryId, folderId, 190 toFileEntryId, serviceContext); 191 } 192 193 /** 194 * Adds a folder. 195 * 196 * @param repositoryId the primary key of the repository 197 * @param parentFolderId the primary key of the folder's parent folder 198 * @param name the folder's name 199 * @param description the folder's description 200 * @param serviceContext the service context to be applied. In a Liferay 201 repository, it may include boolean mountPoint specifying whether 202 folder is a facade for mounting a third-party repository 203 * @return the folder 204 * @throws PortalException if the parent folder could not be found or if the 205 new folder's information was invalid 206 */ 207 @Override 208 public com.liferay.portal.kernel.repository.model.Folder addFolder( 209 long repositoryId, long parentFolderId, java.lang.String name, 210 java.lang.String description, 211 com.liferay.portal.service.ServiceContext serviceContext) 212 throws com.liferay.portal.kernel.exception.PortalException { 213 return _dlAppService.addFolder(repositoryId, parentFolderId, name, 214 description, serviceContext); 215 } 216 217 /** 218 * Adds a temporary file entry. 219 * 220 * <p> 221 * This allows a client to upload a file into a temporary location and 222 * manipulate its metadata prior to making it available for public usage. 223 * This is different from checking in and checking out a file entry. 224 * </p> 225 * 226 * @param groupId the primary key of the group 227 * @param folderId the primary key of the folder where the file entry will 228 eventually reside 229 * @param folderName the temporary folder's name 230 * @param fileName the file's original name 231 * @param file the file's data (optionally <code>null</code>) 232 * @param mimeType the file's MIME type 233 * @return the temporary file entry 234 * @throws PortalException if the file name was invalid 235 * @see com.liferay.portal.kernel.util.TempFileEntryUtil 236 */ 237 @Override 238 public com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry( 239 long groupId, long folderId, java.lang.String folderName, 240 java.lang.String fileName, java.io.File file, java.lang.String mimeType) 241 throws com.liferay.portal.kernel.exception.PortalException { 242 return _dlAppService.addTempFileEntry(groupId, folderId, folderName, 243 fileName, file, mimeType); 244 } 245 246 /** 247 * Adds a temporary file entry. It is created based on the {@link 248 * InputStream} object. 249 * 250 * <p> 251 * This allows a client to upload a file into a temporary location and 252 * manipulate its metadata prior to making it available for public usage. 253 * This is different from checking in and checking out a file entry. 254 * </p> 255 * 256 * @param groupId the primary key of the group 257 * @param folderId the primary key of the folder where the file entry will 258 eventually reside 259 * @param folderName the temporary folder's name 260 * @param fileName the file's original name 261 * @param inputStream the file's data 262 * @param mimeType the file's MIME type 263 * @return the temporary file entry 264 * @throws PortalException if the file name was invalid or if a portal 265 exception occurred 266 * @see com.liferay.portal.kernel.util.TempFileEntryUtil 267 */ 268 @Override 269 public com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry( 270 long groupId, long folderId, java.lang.String folderName, 271 java.lang.String fileName, java.io.InputStream inputStream, 272 java.lang.String mimeType) 273 throws com.liferay.portal.kernel.exception.PortalException { 274 return _dlAppService.addTempFileEntry(groupId, folderId, folderName, 275 fileName, inputStream, mimeType); 276 } 277 278 /** 279 * Cancels the check out of the file entry. If a user has not checked out 280 * the specified file entry, invoking this method will result in no changes. 281 * 282 * <p> 283 * When a file entry is checked out, a PWC (private working copy) is created 284 * and the original file entry is locked. A client can make as many changes 285 * to the PWC as he desires without those changes being visible to other 286 * users. If the user is satisfied with the changes, he may elect to check 287 * in his changes, resulting in a new file version based on the PWC; the PWC 288 * will be removed and the file entry will be unlocked. If the user is not 289 * satisfied with the changes, he may elect to cancel his check out; this 290 * results in the deletion of the PWC and unlocking of the file entry. 291 * </p> 292 * 293 * @param fileEntryId the primary key of the file entry to cancel the 294 checkout 295 * @throws PortalException if the file entry could not be found 296 * @see #checkInFileEntry(long, boolean, String, ServiceContext) 297 * @see #checkOutFileEntry(long, ServiceContext) 298 */ 299 @Override 300 public void cancelCheckOut(long fileEntryId) 301 throws com.liferay.portal.kernel.exception.PortalException { 302 _dlAppService.cancelCheckOut(fileEntryId); 303 } 304 305 /** 306 * @deprecated As of 6.2.0, replaced by {@link #checkInFileEntry(long, 307 String, ServiceContext)} 308 */ 309 @Deprecated 310 @Override 311 public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid) 312 throws com.liferay.portal.kernel.exception.PortalException { 313 _dlAppService.checkInFileEntry(fileEntryId, lockUuid); 314 } 315 316 /** 317 * Checks in the file entry using the lock's UUID. If a user has not checked 318 * out the specified file entry, invoking this method will result in no 319 * changes. This method is primarily used by WebDAV. 320 * 321 * <p> 322 * When a file entry is checked out, a PWC (private working copy) is created 323 * and the original file entry is locked. A client can make as many changes 324 * to the PWC as he desires without those changes being visible to other 325 * users. If the user is satisfied with the changes, he may elect to check 326 * in his changes, resulting in a new file version based on the PWC; the PWC 327 * will be removed and the file entry will be unlocked. If the user is not 328 * satisfied with the changes, he may elect to cancel his check out; this 329 * results in the deletion of the PWC and unlocking of the file entry. 330 * </p> 331 * 332 * @param fileEntryId the primary key of the file entry to check in 333 * @param lockUuid the lock's UUID 334 * @param serviceContext the service context to be applied 335 * @throws PortalException if the file entry could not be found 336 * @see #cancelCheckOut(long) 337 * @see #checkOutFileEntry(long, String, long, ServiceContext) 338 */ 339 @Override 340 public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid, 341 com.liferay.portal.service.ServiceContext serviceContext) 342 throws com.liferay.portal.kernel.exception.PortalException { 343 _dlAppService.checkInFileEntry(fileEntryId, lockUuid, serviceContext); 344 } 345 346 /** 347 * Checks in the file entry. If a user has not checked out the specified 348 * file entry, invoking this method will result in no changes. 349 * 350 * <p> 351 * When a file entry is checked out, a PWC (private working copy) is created 352 * and the original file entry is locked. A client can make as many changes 353 * to the PWC as he desires without those changes being visible to other 354 * users. If the user is satisfied with the changes, he may elect to check 355 * in his changes, resulting in a new file version based on the PWC; the PWC 356 * will be removed and the file entry will be unlocked. If the user is not 357 * satisfied with the changes, he may elect to cancel his check out; this 358 * results in the deletion of the PWC and unlocking of the file entry. 359 * </p> 360 * 361 * @param fileEntryId the primary key of the file entry to check in 362 * @param majorVersion whether the new file version is a major version 363 * @param changeLog the file's version change log 364 * @param serviceContext the service context to be applied 365 * @throws PortalException if the file entry could not be found 366 * @see #cancelCheckOut(long) 367 * @see #checkOutFileEntry(long, ServiceContext) 368 */ 369 @Override 370 public void checkInFileEntry(long fileEntryId, boolean majorVersion, 371 java.lang.String changeLog, 372 com.liferay.portal.service.ServiceContext serviceContext) 373 throws com.liferay.portal.kernel.exception.PortalException { 374 _dlAppService.checkInFileEntry(fileEntryId, majorVersion, changeLog, 375 serviceContext); 376 } 377 378 /** 379 * Checks out the file entry. This method is primarily used by WebDAV. 380 * 381 * <p> 382 * When a file entry is checked out, a PWC (private working copy) is created 383 * and the original file entry is locked. A client can make as many changes 384 * to the PWC as he desires without those changes being visible to other 385 * users. If the user is satisfied with the changes, he may elect to check 386 * in his changes, resulting in a new file version based on the PWC; the PWC 387 * will be removed and the file entry will be unlocked. If the user is not 388 * satisfied with the changes, he may elect to cancel his check out; this 389 * results in the deletion of the PWC and unlocking of the file entry. 390 * </p> 391 * 392 * @param fileEntryId the file entry to check out 393 * @param owner the owner string for the checkout (optionally 394 <code>null</code>) 395 * @param expirationTime the time in milliseconds before the lock expires. 396 If the value is <code>0</code>, the default expiration time will 397 be used from <code>portal.properties>. 398 * @param serviceContext the service context to be applied 399 * @return the file entry 400 * @throws PortalException if the file entry could not be found 401 * @see #cancelCheckOut(long) 402 * @see #checkInFileEntry(long, String) 403 */ 404 @Override 405 public com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry( 406 long fileEntryId, java.lang.String owner, long expirationTime, 407 com.liferay.portal.service.ServiceContext serviceContext) 408 throws com.liferay.portal.kernel.exception.PortalException { 409 return _dlAppService.checkOutFileEntry(fileEntryId, owner, 410 expirationTime, serviceContext); 411 } 412 413 /** 414 * Check out a file entry. 415 * 416 * <p> 417 * When a file entry is checked out, a PWC (private working copy) is created 418 * and the original file entry is locked. A client can make as many changes 419 * to the PWC as he desires without those changes being visible to other 420 * users. If the user is satisfied with the changes, he may elect to check 421 * in his changes, resulting in a new file version based on the PWC; the PWC 422 * will be removed and the file entry will be unlocked. If the user is not 423 * satisfied with the changes, he may elect to cancel his check out; this 424 * results in the deletion of the PWC and unlocking of the file entry. 425 * </p> 426 * 427 * @param fileEntryId the file entry to check out 428 * @param serviceContext the service context to be applied 429 * @throws PortalException if the file entry could not be found 430 * @see #cancelCheckOut(long) 431 * @see #checkInFileEntry(long, boolean, String, ServiceContext) 432 */ 433 @Override 434 public void checkOutFileEntry(long fileEntryId, 435 com.liferay.portal.service.ServiceContext serviceContext) 436 throws com.liferay.portal.kernel.exception.PortalException { 437 _dlAppService.checkOutFileEntry(fileEntryId, serviceContext); 438 } 439 440 /** 441 * Performs a deep copy of the folder. 442 * 443 * @param repositoryId the primary key of the repository 444 * @param sourceFolderId the primary key of the folder to copy 445 * @param parentFolderId the primary key of the new folder's parent folder 446 * @param name the new folder's name 447 * @param description the new folder's description 448 * @param serviceContext the service context to be applied 449 * @return the folder 450 * @throws PortalException if the source folder or the new parent folder 451 could not be found or if the new folder's information was invalid 452 */ 453 @Override 454 public com.liferay.portal.kernel.repository.model.Folder copyFolder( 455 long repositoryId, long sourceFolderId, long parentFolderId, 456 java.lang.String name, java.lang.String description, 457 com.liferay.portal.service.ServiceContext serviceContext) 458 throws com.liferay.portal.kernel.exception.PortalException { 459 return _dlAppService.copyFolder(repositoryId, sourceFolderId, 460 parentFolderId, name, description, serviceContext); 461 } 462 463 /** 464 * Deletes the file entry with the primary key. 465 * 466 * @param fileEntryId the primary key of the file entry 467 * @throws PortalException if the file entry could not be found 468 */ 469 @Override 470 public void deleteFileEntry(long fileEntryId) 471 throws com.liferay.portal.kernel.exception.PortalException { 472 _dlAppService.deleteFileEntry(fileEntryId); 473 } 474 475 /** 476 * Deletes the file entry with the title in the folder. 477 * 478 * @param repositoryId the primary key of the repository 479 * @param folderId the primary key of the file entry's parent folder 480 * @param title the file entry's title 481 * @throws PortalException if the file entry could not be found 482 */ 483 @Override 484 public void deleteFileEntryByTitle(long repositoryId, long folderId, 485 java.lang.String title) 486 throws com.liferay.portal.kernel.exception.PortalException { 487 _dlAppService.deleteFileEntryByTitle(repositoryId, folderId, title); 488 } 489 490 /** 491 * Deletes the file shortcut with the primary key. This method is only 492 * supported by the Liferay repository. 493 * 494 * @param fileShortcutId the primary key of the file shortcut 495 * @throws PortalException if the file shortcut could not be found 496 */ 497 @Override 498 public void deleteFileShortcut(long fileShortcutId) 499 throws com.liferay.portal.kernel.exception.PortalException { 500 _dlAppService.deleteFileShortcut(fileShortcutId); 501 } 502 503 /** 504 * Deletes the file version. File versions can only be deleted if it is 505 * approved and there are other approved file versions available. This 506 * method is only supported by the Liferay repository. 507 * 508 * @param fileEntryId the primary key of the file entry 509 * @param version the version label of the file version 510 * @throws PortalException if the file version could not be found or invalid 511 */ 512 @Override 513 public void deleteFileVersion(long fileEntryId, java.lang.String version) 514 throws com.liferay.portal.kernel.exception.PortalException { 515 _dlAppService.deleteFileVersion(fileEntryId, version); 516 } 517 518 /** 519 * Deletes the folder with the primary key and all of its subfolders and 520 * file entries. 521 * 522 * @param folderId the primary key of the folder 523 * @throws PortalException if the folder could not be found 524 */ 525 @Override 526 public void deleteFolder(long folderId) 527 throws com.liferay.portal.kernel.exception.PortalException { 528 _dlAppService.deleteFolder(folderId); 529 } 530 531 /** 532 * Deletes the folder with the name in the parent folder and all of its 533 * subfolders and file entries. 534 * 535 * @param repositoryId the primary key of the repository 536 * @param parentFolderId the primary key of the folder's parent folder 537 * @param name the folder's name 538 * @throws PortalException if the folder could not be found 539 */ 540 @Override 541 public void deleteFolder(long repositoryId, long parentFolderId, 542 java.lang.String name) 543 throws com.liferay.portal.kernel.exception.PortalException { 544 _dlAppService.deleteFolder(repositoryId, parentFolderId, name); 545 } 546 547 /** 548 * Deletes the temporary file entry. 549 * 550 * @param groupId the primary key of the group 551 * @param folderId the primary key of the folder where the file entry was 552 eventually to reside 553 * @param folderName the temporary folder's name 554 * @param fileName the file's original name 555 * @throws PortalException if the file name was invalid 556 * @see com.liferay.portal.kernel.util.TempFileEntryUtil 557 */ 558 @Override 559 public void deleteTempFileEntry(long groupId, long folderId, 560 java.lang.String folderName, java.lang.String fileName) 561 throws com.liferay.portal.kernel.exception.PortalException { 562 _dlAppService.deleteTempFileEntry(groupId, folderId, folderName, 563 fileName); 564 } 565 566 /** 567 * Returns the Spring bean ID for this bean. 568 * 569 * @return the Spring bean ID for this bean 570 */ 571 @Override 572 public java.lang.String getBeanIdentifier() { 573 return _dlAppService.getBeanIdentifier(); 574 } 575 576 /** 577 * Returns all the file entries in the folder. 578 * 579 * @param repositoryId the primary key of the file entry's repository 580 * @param folderId the primary key of the file entry's folder 581 * @return the file entries in the folder 582 * @throws PortalException if the folder could not be found 583 */ 584 @Override 585 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 586 long repositoryId, long folderId) 587 throws com.liferay.portal.kernel.exception.PortalException { 588 return _dlAppService.getFileEntries(repositoryId, folderId); 589 } 590 591 /** 592 * Returns the file entries with the file entry type in the folder. 593 * 594 * @param repositoryId the primary key of the file entry's repository 595 * @param folderId the primary key of the file entry's folder 596 * @param fileEntryTypeId the primary key of the file entry type 597 * @return the file entries with the file entry type in the folder 598 * @throws PortalException if the folder could not be found 599 */ 600 @Override 601 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 602 long repositoryId, long folderId, long fileEntryTypeId) 603 throws com.liferay.portal.kernel.exception.PortalException { 604 return _dlAppService.getFileEntries(repositoryId, folderId, 605 fileEntryTypeId); 606 } 607 608 /** 609 * Returns a name-ordered range of all the file entries with the file entry 610 * type in the folder. 611 * 612 * @param repositoryId the primary key of the file entry's repository 613 * @param folderId the primary key of the file entry's folder 614 * @param fileEntryTypeId the primary key of the file entry type 615 * @param start the lower bound of the range of results 616 * @param end the upper bound of the range of results (not inclusive) 617 * @return the name-ordered range of the file entries in the folder 618 * @throws PortalException if the folder could not be found 619 */ 620 @Override 621 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 622 long repositoryId, long folderId, long fileEntryTypeId, int start, 623 int end) throws com.liferay.portal.kernel.exception.PortalException { 624 return _dlAppService.getFileEntries(repositoryId, folderId, 625 fileEntryTypeId, start, end); 626 } 627 628 /** 629 * Returns an ordered range of all the file entries with the file entry type 630 * in the folder. 631 * 632 * @param repositoryId the primary key of the repository 633 * @param folderId the primary key of the folder 634 * @param fileEntryTypeId the primary key of the file entry type 635 * @param start the lower bound of the range of results 636 * @param end the upper bound of the range of results (not inclusive) 637 * @param obc the comparator to order the results by (optionally 638 <code>null</code>) 639 * @return the range of file entries with the file entry type in the folder 640 ordered by <code>null</code> 641 * @throws PortalException if the folder could not be found 642 */ 643 @Override 644 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 645 long repositoryId, long folderId, long fileEntryTypeId, int start, 646 int end, 647 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) 648 throws com.liferay.portal.kernel.exception.PortalException { 649 return _dlAppService.getFileEntries(repositoryId, folderId, 650 fileEntryTypeId, start, end, obc); 651 } 652 653 @Override 654 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 655 long repositoryId, long folderId, java.lang.String[] mimeTypes) 656 throws com.liferay.portal.kernel.exception.PortalException { 657 return _dlAppService.getFileEntries(repositoryId, folderId, mimeTypes); 658 } 659 660 @Override 661 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 662 long repositoryId, long folderId, java.lang.String[] mimeTypes, 663 int start, int end, 664 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) 665 throws com.liferay.portal.kernel.exception.PortalException { 666 return _dlAppService.getFileEntries(repositoryId, folderId, mimeTypes, 667 start, end, obc); 668 } 669 670 /** 671 * Returns a name-ordered range of all the file entries in the folder. 672 * 673 * <p> 674 * Useful when paginating results. Returns a maximum of <code>end - 675 * start</code> instances. <code>start</code> and <code>end</code> are not 676 * primary keys, they are indexes in the result set. Thus, <code>0</code> 677 * refers to the first result in the set. Setting both <code>start</code> 678 * and <code>end</code> to {@link 679 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 680 * result set. 681 * </p> 682 * 683 * @param repositoryId the primary key of the file entry's repository 684 * @param folderId the primary key of the file entry's folder 685 * @param start the lower bound of the range of results 686 * @param end the upper bound of the range of results (not inclusive) 687 * @return the name-ordered range of file entries in the folder 688 * @throws PortalException if the folder could not be found 689 */ 690 @Override 691 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 692 long repositoryId, long folderId, int start, int end) 693 throws com.liferay.portal.kernel.exception.PortalException { 694 return _dlAppService.getFileEntries(repositoryId, folderId, start, end); 695 } 696 697 /** 698 * Returns an ordered range of all the file entries in the folder. 699 * 700 * <p> 701 * Useful when paginating results. Returns a maximum of <code>end - 702 * start</code> instances. <code>start</code> and <code>end</code> are not 703 * primary keys, they are indexes in the result set. Thus, <code>0</code> 704 * refers to the first result in the set. Setting both <code>start</code> 705 * and <code>end</code> to {@link 706 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 707 * result set. 708 * </p> 709 * 710 * @param repositoryId the primary key of the file entry's repository 711 * @param folderId the primary key of the file entry's folder 712 * @param start the lower bound of the range of results 713 * @param end the upper bound of the range of results (not inclusive) 714 * @param obc the comparator to order the file entries (optionally 715 <code>null</code>) 716 * @return the range of file entries in the folder ordered by comparator 717 <code>obc</code> 718 * @throws PortalException if the folder could not be found 719 */ 720 @Override 721 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries( 722 long repositoryId, long folderId, int start, int end, 723 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) 724 throws com.liferay.portal.kernel.exception.PortalException { 725 return _dlAppService.getFileEntries(repositoryId, folderId, start, end, 726 obc); 727 } 728 729 /** 730 * Returns a range of all the file entries and shortcuts in the folder. 731 * 732 * <p> 733 * Useful when paginating results. Returns a maximum of <code>end - 734 * start</code> instances. <code>start</code> and <code>end</code> are not 735 * primary keys, they are indexes in the result set. Thus, <code>0</code> 736 * refers to the first result in the set. Setting both <code>start</code> 737 * and <code>end</code> to {@link 738 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 739 * result set. 740 * </p> 741 * 742 * @param repositoryId the primary key of the repository 743 * @param folderId the primary key of the folder 744 * @param status the workflow status 745 * @param start the lower bound of the range of results 746 * @param end the upper bound of the range of results (not inclusive) 747 * @return the range of file entries and shortcuts in the folder 748 * @throws PortalException if the folder could not be found 749 */ 750 @Override 751 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts( 752 long repositoryId, long folderId, int status, int start, int end) 753 throws com.liferay.portal.kernel.exception.PortalException { 754 return _dlAppService.getFileEntriesAndFileShortcuts(repositoryId, 755 folderId, status, start, end); 756 } 757 758 /** 759 * Returns the number of file entries and shortcuts in the folder. 760 * 761 * @param repositoryId the primary key of the repository 762 * @param folderId the primary key of the folder 763 * @param status the workflow status 764 * @return the number of file entries and shortcuts in the folder 765 * @throws PortalException if the folder ould not be found 766 */ 767 @Override 768 public int getFileEntriesAndFileShortcutsCount(long repositoryId, 769 long folderId, int status) 770 throws com.liferay.portal.kernel.exception.PortalException { 771 return _dlAppService.getFileEntriesAndFileShortcutsCount(repositoryId, 772 folderId, status); 773 } 774 775 /** 776 * Returns the number of file entries and shortcuts in the folder. 777 * 778 * @param repositoryId the primary key of the repository 779 * @param folderId the primary key of the folder 780 * @param status the workflow status 781 * @param mimeTypes allowed media types 782 * @return the number of file entries and shortcuts in the folder 783 * @throws PortalException if the folder ould not be found 784 */ 785 @Override 786 public int getFileEntriesAndFileShortcutsCount(long repositoryId, 787 long folderId, int status, java.lang.String[] mimeTypes) 788 throws com.liferay.portal.kernel.exception.PortalException { 789 return _dlAppService.getFileEntriesAndFileShortcutsCount(repositoryId, 790 folderId, status, mimeTypes); 791 } 792 793 /** 794 * Returns the number of file entries in the folder. 795 * 796 * @param repositoryId the primary key of the file entry's repository 797 * @param folderId the primary key of the file entry's folder 798 * @return the number of file entries in the folder 799 * @throws PortalException if the folder could not be found 800 */ 801 @Override 802 public int getFileEntriesCount(long repositoryId, long folderId) 803 throws com.liferay.portal.kernel.exception.PortalException { 804 return _dlAppService.getFileEntriesCount(repositoryId, folderId); 805 } 806 807 /** 808 * Returns the number of file entries with the file entry type in the 809 * folder. 810 * 811 * @param repositoryId the primary key of the file entry's repository 812 * @param folderId the primary key of the file entry's folder 813 * @param fileEntryTypeId the primary key of the file entry type 814 * @return the number of file entries with the file entry type in the folder 815 * @throws PortalException if the folder could not be found 816 */ 817 @Override 818 public int getFileEntriesCount(long repositoryId, long folderId, 819 long fileEntryTypeId) 820 throws com.liferay.portal.kernel.exception.PortalException { 821 return _dlAppService.getFileEntriesCount(repositoryId, folderId, 822 fileEntryTypeId); 823 } 824 825 @Override 826 public int getFileEntriesCount(long repositoryId, long folderId, 827 java.lang.String[] mimeTypes) 828 throws com.liferay.portal.kernel.exception.PortalException { 829 return _dlAppService.getFileEntriesCount(repositoryId, folderId, 830 mimeTypes); 831 } 832 833 /** 834 * Returns the file entry with the primary key. 835 * 836 * @param fileEntryId the primary key of the file entry 837 * @return the file entry with the primary key 838 * @throws PortalException if the file entry could not be found 839 */ 840 @Override 841 public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry( 842 long fileEntryId) 843 throws com.liferay.portal.kernel.exception.PortalException { 844 return _dlAppService.getFileEntry(fileEntryId); 845 } 846 847 /** 848 * Returns the file entry with the title in the folder. 849 * 850 * @param groupId the primary key of the file entry's group 851 * @param folderId the primary key of the file entry's folder 852 * @param title the file entry's title 853 * @return the file entry with the title in the folder 854 * @throws PortalException if the file entry could not be found 855 */ 856 @Override 857 public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry( 858 long groupId, long folderId, java.lang.String title) 859 throws com.liferay.portal.kernel.exception.PortalException { 860 return _dlAppService.getFileEntry(groupId, folderId, title); 861 } 862 863 /** 864 * Returns the file entry with the UUID and group. 865 * 866 * @param uuid the file entry's UUID 867 * @param groupId the primary key of the file entry's group 868 * @return the file entry with the UUID and group 869 * @throws PortalException if the file entry could not be found 870 */ 871 @Override 872 public com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuidAndGroupId( 873 java.lang.String uuid, long groupId) 874 throws com.liferay.portal.kernel.exception.PortalException { 875 return _dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId); 876 } 877 878 /** 879 * Returns the file shortcut with the primary key. This method is only 880 * supported by the Liferay repository. 881 * 882 * @param fileShortcutId the primary key of the file shortcut 883 * @return the file shortcut with the primary key 884 * @throws PortalException if the file shortcut could not be found 885 */ 886 @Override 887 public com.liferay.portal.kernel.repository.model.FileShortcut getFileShortcut( 888 long fileShortcutId) 889 throws com.liferay.portal.kernel.exception.PortalException { 890 return _dlAppService.getFileShortcut(fileShortcutId); 891 } 892 893 /** 894 * Returns the file version with the primary key. 895 * 896 * @param fileVersionId the primary key of the file version 897 * @return the file version with the primary key 898 * @throws PortalException if the file version could not be found 899 */ 900 @Override 901 public com.liferay.portal.kernel.repository.model.FileVersion getFileVersion( 902 long fileVersionId) 903 throws com.liferay.portal.kernel.exception.PortalException { 904 return _dlAppService.getFileVersion(fileVersionId); 905 } 906 907 /** 908 * Returns the folder with the primary key. 909 * 910 * @param folderId the primary key of the folder 911 * @return the folder with the primary key 912 * @throws PortalException if the folder could not be found 913 */ 914 @Override 915 public com.liferay.portal.kernel.repository.model.Folder getFolder( 916 long folderId) 917 throws com.liferay.portal.kernel.exception.PortalException { 918 return _dlAppService.getFolder(folderId); 919 } 920 921 /** 922 * Returns the folder with the name in the parent folder. 923 * 924 * @param repositoryId the primary key of the folder's repository 925 * @param parentFolderId the primary key of the folder's parent folder 926 * @param name the folder's name 927 * @return the folder with the name in the parent folder 928 * @throws PortalException if the folder could not be found 929 */ 930 @Override 931 public com.liferay.portal.kernel.repository.model.Folder getFolder( 932 long repositoryId, long parentFolderId, java.lang.String name) 933 throws com.liferay.portal.kernel.exception.PortalException { 934 return _dlAppService.getFolder(repositoryId, parentFolderId, name); 935 } 936 937 /** 938 * Returns all immediate subfolders of the parent folder. 939 * 940 * @param repositoryId the primary key of the folder's repository 941 * @param parentFolderId the primary key of the folder's parent folder 942 * @return the immediate subfolders of the parent folder 943 * @throws PortalException if the parent folder could not be found 944 */ 945 @Override 946 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 947 long repositoryId, long parentFolderId) 948 throws com.liferay.portal.kernel.exception.PortalException { 949 return _dlAppService.getFolders(repositoryId, parentFolderId); 950 } 951 952 /** 953 * Returns all immediate subfolders of the parent folder, optionally 954 * including mount folders for third-party repositories. 955 * 956 * @param repositoryId the primary key of the folder's repository 957 * @param parentFolderId the primary key of the folder's parent folder 958 * @param includeMountFolders whether to include mount folders for 959 third-party repositories 960 * @return the immediate subfolders of the parent folder 961 * @throws PortalException if the parent folder could not be found 962 */ 963 @Override 964 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 965 long repositoryId, long parentFolderId, boolean includeMountFolders) 966 throws com.liferay.portal.kernel.exception.PortalException { 967 return _dlAppService.getFolders(repositoryId, parentFolderId, 968 includeMountFolders); 969 } 970 971 /** 972 * Returns a name-ordered range of all the immediate subfolders of the 973 * parent folder, optionally including mount folders for third-party 974 * repositories. 975 * 976 * <p> 977 * Useful when paginating results. Returns a maximum of <code>end - 978 * start</code> instances. <code>start</code> and <code>end</code> are not 979 * primary keys, they are indexes in the result set. Thus, <code>0</code> 980 * refers to the first result in the set. Setting both <code>start</code> 981 * and <code>end</code> to {@link 982 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 983 * result set. 984 * </p> 985 * 986 * @param repositoryId the primary key of the folder's repository 987 * @param parentFolderId the primary key of the folder's parent folder 988 * @param includeMountFolders whether to include mount folders for 989 third-party repositories 990 * @param start the lower bound of the range of results 991 * @param end the upper bound of the range of results (not inclusive) 992 * @return the name-ordered range of immediate subfolders of the parent 993 folder 994 * @throws PortalException if the parent folder could not be found 995 */ 996 @Override 997 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 998 long repositoryId, long parentFolderId, boolean includeMountFolders, 999 int start, int end) 1000 throws com.liferay.portal.kernel.exception.PortalException { 1001 return _dlAppService.getFolders(repositoryId, parentFolderId, 1002 includeMountFolders, start, end); 1003 } 1004 1005 /** 1006 * Returns an ordered range of all the immediate subfolders of the parent 1007 * folder. 1008 * 1009 * <p> 1010 * Useful when paginating results. Returns a maximum of <code>end - 1011 * start</code> instances. <code>start</code> and <code>end</code> are not 1012 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1013 * refers to the first result in the set. Setting both <code>start</code> 1014 * and <code>end</code> to {@link 1015 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1016 * result set. 1017 * </p> 1018 * 1019 * @param repositoryId the primary key of the folder's repository 1020 * @param parentFolderId the primary key of the folder's parent folder 1021 * @param includeMountFolders whether to include mount folders for 1022 third-party repositories 1023 * @param start the lower bound of the range of results 1024 * @param end the upper bound of the range of results (not inclusive) 1025 * @param obc the comparator to order the folders (optionally 1026 <code>null</code>) 1027 * @return the range of immediate subfolders of the parent folder ordered by 1028 comparator <code>obc</code> 1029 * @throws PortalException if the parent folder could not be found 1030 */ 1031 @Override 1032 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 1033 long repositoryId, long parentFolderId, boolean includeMountFolders, 1034 int start, int end, 1035 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) 1036 throws com.liferay.portal.kernel.exception.PortalException { 1037 return _dlAppService.getFolders(repositoryId, parentFolderId, 1038 includeMountFolders, start, end, obc); 1039 } 1040 1041 /** 1042 * Returns a name-ordered range of all the immediate subfolders of the 1043 * parent folder. 1044 * 1045 * <p> 1046 * Useful when paginating results. Returns a maximum of <code>end - 1047 * start</code> instances. <code>start</code> and <code>end</code> are not 1048 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1049 * refers to the first result in the set. Setting both <code>start</code> 1050 * and <code>end</code> to {@link 1051 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1052 * result set. 1053 * </p> 1054 * 1055 * @param repositoryId the primary key of the folder's repository 1056 * @param parentFolderId the primary key of the folder's parent folder 1057 * @param start the lower bound of the range of results 1058 * @param end the upper bound of the range of results (not inclusive) 1059 * @return the name-ordered range of immediate subfolders of the parent 1060 folder 1061 * @throws PortalException if the parent folder could not be found 1062 */ 1063 @Override 1064 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 1065 long repositoryId, long parentFolderId, int start, int end) 1066 throws com.liferay.portal.kernel.exception.PortalException { 1067 return _dlAppService.getFolders(repositoryId, parentFolderId, start, end); 1068 } 1069 1070 /** 1071 * Returns an ordered range of all the immediate subfolders of the parent 1072 * folder. 1073 * 1074 * <p> 1075 * Useful when paginating results. Returns a maximum of <code>end - 1076 * start</code> instances. <code>start</code> and <code>end</code> are not 1077 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1078 * refers to the first result in the set. Setting both <code>start</code> 1079 * and <code>end</code> to {@link 1080 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1081 * result set. 1082 * </p> 1083 * 1084 * @param repositoryId the primary key of the folder's repository 1085 * @param parentFolderId the primary key of the folder's parent folder 1086 * @param start the lower bound of the range of results 1087 * @param end the upper bound of the range of results (not inclusive) 1088 * @param obc the comparator to order the folders (optionally 1089 <code>null</code>) 1090 * @return the range of immediate subfolders of the parent folder ordered by 1091 comparator <code>obc</code> 1092 * @throws PortalException if the parent folder could not be found 1093 */ 1094 @Override 1095 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 1096 long repositoryId, long parentFolderId, int start, int end, 1097 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) 1098 throws com.liferay.portal.kernel.exception.PortalException { 1099 return _dlAppService.getFolders(repositoryId, parentFolderId, start, 1100 end, obc); 1101 } 1102 1103 /** 1104 * Returns an ordered range of all the immediate subfolders of the parent 1105 * folder. 1106 * 1107 * <p> 1108 * Useful when paginating results. Returns a maximum of <code>end - 1109 * start</code> instances. <code>start</code> and <code>end</code> are not 1110 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1111 * refers to the first result in the set. Setting both <code>start</code> 1112 * and <code>end</code> to {@link 1113 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1114 * result set. 1115 * </p> 1116 * 1117 * @param repositoryId the primary key of the folder's repository 1118 * @param parentFolderId the primary key of the folder's parent folder 1119 * @param status the workflow status 1120 * @param includeMountFolders whether to include mount folders for 1121 third-party repositories 1122 * @param start the lower bound of the range of results 1123 * @param end the upper bound of the range of results (not inclusive) 1124 * @param obc the comparator to order the folders (optionally 1125 <code>null</code>) 1126 * @return the range of immediate subfolders of the parent folder ordered by 1127 comparator <code>obc</code> 1128 * @throws PortalException if the parent folder could not be found 1129 */ 1130 @Override 1131 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders( 1132 long repositoryId, long parentFolderId, int status, 1133 boolean includeMountFolders, int start, int end, 1134 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) 1135 throws com.liferay.portal.kernel.exception.PortalException { 1136 return _dlAppService.getFolders(repositoryId, parentFolderId, status, 1137 includeMountFolders, start, end, obc); 1138 } 1139 1140 /** 1141 * Returns a name-ordered range of all the immediate subfolders, file 1142 * entries, and file shortcuts in the parent folder. 1143 * 1144 * <p> 1145 * Useful when paginating results. Returns a maximum of <code>end - 1146 * start</code> instances. <code>start</code> and <code>end</code> are not 1147 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1148 * refers to the first result in the set. Setting both <code>start</code> 1149 * and <code>end</code> to {@link 1150 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1151 * result set. 1152 * </p> 1153 * 1154 * @param repositoryId the primary key of the repository 1155 * @param folderId the primary key of the parent folder 1156 * @param status the workflow status 1157 * @param includeMountFolders whether to include mount folders for 1158 third-party repositories 1159 * @param start the lower bound of the range of results 1160 * @param end the upper bound of the range of results (not inclusive) 1161 * @return the name-ordered range of immediate subfolders, file entries, and 1162 file shortcuts in the parent folder 1163 * @throws PortalException if the parent folder could not be found 1164 */ 1165 @Override 1166 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts( 1167 long repositoryId, long folderId, int status, 1168 boolean includeMountFolders, int start, int end) 1169 throws com.liferay.portal.kernel.exception.PortalException { 1170 return _dlAppService.getFoldersAndFileEntriesAndFileShortcuts(repositoryId, 1171 folderId, status, includeMountFolders, start, end); 1172 } 1173 1174 /** 1175 * Returns an ordered range of all the immediate subfolders, file entries, 1176 * and file shortcuts in the parent folder. 1177 * 1178 * <p> 1179 * Useful when paginating results. Returns a maximum of <code>end - 1180 * start</code> instances. <code>start</code> and <code>end</code> are not 1181 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1182 * refers to the first result in the set. Setting both <code>start</code> 1183 * and <code>end</code> to {@link 1184 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1185 * result set. 1186 * </p> 1187 * 1188 * @param repositoryId the primary key of the repository 1189 * @param folderId the primary key of the parent folder 1190 * @param status the workflow status 1191 * @param includeMountFolders whether to include mount folders for 1192 third-party repositories 1193 * @param start the lower bound of the range of results 1194 * @param end the upper bound of the range of results (not inclusive) 1195 * @param obc the comparator to order the results (optionally 1196 <code>null</code>) 1197 * @return the range of immediate subfolders, file entries, and file 1198 shortcuts in the parent folder ordered by comparator 1199 <code>obc</code> 1200 * @throws PortalException if the parent folder could not be found 1201 */ 1202 @Override 1203 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts( 1204 long repositoryId, long folderId, int status, 1205 boolean includeMountFolders, int start, int end, 1206 com.liferay.portal.kernel.util.OrderByComparator<?> obc) 1207 throws com.liferay.portal.kernel.exception.PortalException { 1208 return _dlAppService.getFoldersAndFileEntriesAndFileShortcuts(repositoryId, 1209 folderId, status, includeMountFolders, start, end, obc); 1210 } 1211 1212 @Override 1213 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts( 1214 long repositoryId, long folderId, int status, 1215 java.lang.String[] mimeTypes, boolean includeMountFolders, int start, 1216 int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc) 1217 throws com.liferay.portal.kernel.exception.PortalException { 1218 return _dlAppService.getFoldersAndFileEntriesAndFileShortcuts(repositoryId, 1219 folderId, status, mimeTypes, includeMountFolders, start, end, obc); 1220 } 1221 1222 /** 1223 * Returns the number of immediate subfolders, file entries, and file 1224 * shortcuts in the parent folder. 1225 * 1226 * @param repositoryId the primary key of the repository 1227 * @param folderId the primary key of the parent folder 1228 * @param status the workflow status 1229 * @param includeMountFolders whether to include mount folders for 1230 third-party repositories 1231 * @return the number of immediate subfolders, file entries, and file 1232 shortcuts in the parent folder 1233 * @throws PortalException if the folder could not be found 1234 */ 1235 @Override 1236 public int getFoldersAndFileEntriesAndFileShortcutsCount( 1237 long repositoryId, long folderId, int status, 1238 boolean includeMountFolders) 1239 throws com.liferay.portal.kernel.exception.PortalException { 1240 return _dlAppService.getFoldersAndFileEntriesAndFileShortcutsCount(repositoryId, 1241 folderId, status, includeMountFolders); 1242 } 1243 1244 @Override 1245 public int getFoldersAndFileEntriesAndFileShortcutsCount( 1246 long repositoryId, long folderId, int status, 1247 java.lang.String[] mimeTypes, boolean includeMountFolders) 1248 throws com.liferay.portal.kernel.exception.PortalException { 1249 return _dlAppService.getFoldersAndFileEntriesAndFileShortcutsCount(repositoryId, 1250 folderId, status, mimeTypes, includeMountFolders); 1251 } 1252 1253 /** 1254 * Returns the number of immediate subfolders of the parent folder. 1255 * 1256 * @param repositoryId the primary key of the folder's repository 1257 * @param parentFolderId the primary key of the folder's parent folder 1258 * @return the number of immediate subfolders of the parent folder 1259 * @throws PortalException if the parent folder could not be found 1260 */ 1261 @Override 1262 public int getFoldersCount(long repositoryId, long parentFolderId) 1263 throws com.liferay.portal.kernel.exception.PortalException { 1264 return _dlAppService.getFoldersCount(repositoryId, parentFolderId); 1265 } 1266 1267 /** 1268 * Returns the number of immediate subfolders of the parent folder, 1269 * optionally including mount folders for third-party repositories. 1270 * 1271 * @param repositoryId the primary key of the folder's repository 1272 * @param parentFolderId the primary key of the folder's parent folder 1273 * @param includeMountFolders whether to include mount folders for 1274 third-party repositories 1275 * @return the number of immediate subfolders of the parent folder 1276 * @throws PortalException if the parent folder could not be found 1277 */ 1278 @Override 1279 public int getFoldersCount(long repositoryId, long parentFolderId, 1280 boolean includeMountFolders) 1281 throws com.liferay.portal.kernel.exception.PortalException { 1282 return _dlAppService.getFoldersCount(repositoryId, parentFolderId, 1283 includeMountFolders); 1284 } 1285 1286 /** 1287 * Returns the number of immediate subfolders of the parent folder, 1288 * optionally including mount folders for third-party repositories. 1289 * 1290 * @param repositoryId the primary key of the folder's repository 1291 * @param parentFolderId the primary key of the folder's parent folder 1292 * @param status the workflow status 1293 * @param includeMountFolders whether to include mount folders for 1294 third-party repositories 1295 * @return the number of immediate subfolders of the parent folder 1296 * @throws PortalException if the parent folder could not be found 1297 */ 1298 @Override 1299 public int getFoldersCount(long repositoryId, long parentFolderId, 1300 int status, boolean includeMountFolders) 1301 throws com.liferay.portal.kernel.exception.PortalException { 1302 return _dlAppService.getFoldersCount(repositoryId, parentFolderId, 1303 status, includeMountFolders); 1304 } 1305 1306 /** 1307 * Returns the number of immediate subfolders and file entries across the 1308 * folders. 1309 * 1310 * @param repositoryId the primary key of the repository 1311 * @param folderIds the primary keys of folders from which to count 1312 immediate subfolders and file entries 1313 * @param status the workflow status 1314 * @return the number of immediate subfolders and file entries across the 1315 folders 1316 * @throws PortalException if the repository could not be found 1317 */ 1318 @Override 1319 public int getFoldersFileEntriesCount(long repositoryId, 1320 java.util.List<java.lang.Long> folderIds, int status) 1321 throws com.liferay.portal.kernel.exception.PortalException { 1322 return _dlAppService.getFoldersFileEntriesCount(repositoryId, 1323 folderIds, status); 1324 } 1325 1326 @Override 1327 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries( 1328 long groupId, long userId, long rootFolderId, 1329 java.lang.String[] mimeTypes, int status, int start, int end, 1330 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) 1331 throws com.liferay.portal.kernel.exception.PortalException { 1332 return _dlAppService.getGroupFileEntries(groupId, userId, rootFolderId, 1333 mimeTypes, status, start, end, obc); 1334 } 1335 1336 /** 1337 * Returns an ordered range of all the file entries in the group starting at 1338 * the root folder that are stored within the Liferay repository. This 1339 * method is primarily used to search for recently modified file entries. It 1340 * can be limited to the file entries modified by a given user. 1341 * 1342 * <p> 1343 * Useful when paginating results. Returns a maximum of <code>end - 1344 * start</code> instances. <code>start</code> and <code>end</code> are not 1345 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1346 * refers to the first result in the set. Setting both <code>start</code> 1347 * and <code>end</code> to {@link 1348 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1349 * result set. 1350 * </p> 1351 * 1352 * @param groupId the primary key of the group 1353 * @param userId the primary key of the user who created the file 1354 (optionally <code>0</code>) 1355 * @param rootFolderId the primary key of the root folder to begin the 1356 search 1357 * @param start the lower bound of the range of results 1358 * @param end the upper bound of the range of results (not inclusive) 1359 * @return the range of matching file entries ordered by date modified 1360 * @throws PortalException if the group could not be found 1361 */ 1362 @Override 1363 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries( 1364 long groupId, long userId, long rootFolderId, int start, int end) 1365 throws com.liferay.portal.kernel.exception.PortalException { 1366 return _dlAppService.getGroupFileEntries(groupId, userId, rootFolderId, 1367 start, end); 1368 } 1369 1370 /** 1371 * Returns an ordered range of all the file entries in the group starting at 1372 * the root folder that are stored within the Liferay repository. This 1373 * method is primarily used to search for recently modified file entries. It 1374 * can be limited to the file entries modified by a given user. 1375 * 1376 * <p> 1377 * Useful when paginating results. Returns a maximum of <code>end - 1378 * start</code> instances. <code>start</code> and <code>end</code> are not 1379 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1380 * refers to the first result in the set. Setting both <code>start</code> 1381 * and <code>end</code> to {@link 1382 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1383 * result set. 1384 * </p> 1385 * 1386 * @param groupId the primary key of the group 1387 * @param userId the primary key of the user who created the file 1388 (optionally <code>0</code>) 1389 * @param rootFolderId the primary key of the root folder to begin the 1390 search 1391 * @param start the lower bound of the range of results 1392 * @param end the upper bound of the range of results (not inclusive) 1393 * @param obc the comparator to order the file entries (optionally 1394 <code>null</code>) 1395 * @return the range of matching file entries ordered by comparator 1396 <code>obc</code> 1397 * @throws PortalException if the group could not be found 1398 */ 1399 @Override 1400 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries( 1401 long groupId, long userId, long rootFolderId, int start, int end, 1402 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) 1403 throws com.liferay.portal.kernel.exception.PortalException { 1404 return _dlAppService.getGroupFileEntries(groupId, userId, rootFolderId, 1405 start, end, obc); 1406 } 1407 1408 /** 1409 * Returns an ordered range of all the file entries in the group starting at 1410 * the repository default parent folder that are stored within the Liferay 1411 * repository. This method is primarily used to search for recently modified 1412 * file entries. It can be limited to the file entries modified by a given 1413 * user. 1414 * 1415 * <p> 1416 * Useful when paginating results. Returns a maximum of <code>end - 1417 * start</code> instances. <code>start</code> and <code>end</code> are not 1418 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1419 * refers to the first result in the set. Setting both <code>start</code> 1420 * and <code>end</code> to {@link 1421 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1422 * result set. 1423 * </p> 1424 * 1425 * @param groupId the primary key of the group 1426 * @param userId the primary key of the user who created the file 1427 (optionally <code>0</code>) 1428 * @param start the lower bound of the range of results 1429 * @param end the upper bound of the range of results (not inclusive) 1430 * @return the range of matching file entries ordered by date modified 1431 * @throws PortalException if the group could not be found 1432 */ 1433 @Override 1434 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries( 1435 long groupId, long userId, int start, int end) 1436 throws com.liferay.portal.kernel.exception.PortalException { 1437 return _dlAppService.getGroupFileEntries(groupId, userId, start, end); 1438 } 1439 1440 /** 1441 * Returns an ordered range of all the file entries in the group that are 1442 * stored within the Liferay repository. This method is primarily used to 1443 * search for recently modified file entries. It can be limited to the file 1444 * entries modified by a given user. 1445 * 1446 * <p> 1447 * Useful when paginating results. Returns a maximum of <code>end - 1448 * start</code> instances. <code>start</code> and <code>end</code> are not 1449 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1450 * refers to the first result in the set. Setting both <code>start</code> 1451 * and <code>end</code> to {@link 1452 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1453 * result set. 1454 * </p> 1455 * 1456 * @param groupId the primary key of the group 1457 * @param userId the primary key of the user who created the file 1458 (optionally <code>0</code>) 1459 * @param start the lower bound of the range of results 1460 * @param end the upper bound of the range of results (not inclusive) 1461 * @param obc the comparator to order the file entries (optionally 1462 <code>null</code>) 1463 * @return the range of matching file entries ordered by comparator 1464 <code>obc</code> 1465 * @throws PortalException if the group could not be found 1466 */ 1467 @Override 1468 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries( 1469 long groupId, long userId, int start, int end, 1470 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) 1471 throws com.liferay.portal.kernel.exception.PortalException { 1472 return _dlAppService.getGroupFileEntries(groupId, userId, start, end, 1473 obc); 1474 } 1475 1476 /** 1477 * Returns the number of file entries in a group starting at the repository 1478 * default parent folder that are stored within the Liferay repository. This 1479 * method is primarily used to search for recently modified file entries. It 1480 * can be limited to the file entries modified by a given user. 1481 * 1482 * @param groupId the primary key of the group 1483 * @param userId the primary key of the user who created the file 1484 (optionally <code>0</code>) 1485 * @return the number of matching file entries 1486 * @throws PortalException if the group could not be found 1487 */ 1488 @Override 1489 public int getGroupFileEntriesCount(long groupId, long userId) 1490 throws com.liferay.portal.kernel.exception.PortalException { 1491 return _dlAppService.getGroupFileEntriesCount(groupId, userId); 1492 } 1493 1494 /** 1495 * Returns the number of file entries in a group starting at the root folder 1496 * that are stored within the Liferay repository. This method is primarily 1497 * used to search for recently modified file entries. It can be limited to 1498 * the file entries modified by a given user. 1499 * 1500 * @param groupId the primary key of the group 1501 * @param userId the primary key of the user who created the file 1502 (optionally <code>0</code>) 1503 * @param rootFolderId the primary key of the root folder to begin the 1504 search 1505 * @return the number of matching file entries 1506 * @throws PortalException if the group could not be found 1507 */ 1508 @Override 1509 public int getGroupFileEntriesCount(long groupId, long userId, 1510 long rootFolderId) 1511 throws com.liferay.portal.kernel.exception.PortalException { 1512 return _dlAppService.getGroupFileEntriesCount(groupId, userId, 1513 rootFolderId); 1514 } 1515 1516 @Override 1517 public int getGroupFileEntriesCount(long groupId, long userId, 1518 long rootFolderId, java.lang.String[] mimeTypes, int status) 1519 throws com.liferay.portal.kernel.exception.PortalException { 1520 return _dlAppService.getGroupFileEntriesCount(groupId, userId, 1521 rootFolderId, mimeTypes, status); 1522 } 1523 1524 /** 1525 * Returns all immediate subfolders of the parent folder that are used for 1526 * mounting third-party repositories. This method is only supported by the 1527 * Liferay repository. 1528 * 1529 * @param repositoryId the primary key of the folder's repository 1530 * @param parentFolderId the primary key of the folder's parent folder 1531 * @return the immediate subfolders of the parent folder that are used for 1532 mounting third-party repositories 1533 * @throws PortalException if the repository or parent folder could not be 1534 found 1535 */ 1536 @Override 1537 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders( 1538 long repositoryId, long parentFolderId) 1539 throws com.liferay.portal.kernel.exception.PortalException { 1540 return _dlAppService.getMountFolders(repositoryId, parentFolderId); 1541 } 1542 1543 /** 1544 * Returns a name-ordered range of all the immediate subfolders of the 1545 * parent folder that are used for mounting third-party repositories. This 1546 * method is only supported by the Liferay repository. 1547 * 1548 * <p> 1549 * Useful when paginating results. Returns a maximum of <code>end - 1550 * start</code> instances. <code>start</code> and <code>end</code> are not 1551 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1552 * refers to the first result in the set. Setting both <code>start</code> 1553 * and <code>end</code> to {@link 1554 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1555 * result set. 1556 * </p> 1557 * 1558 * @param repositoryId the primary key of the repository 1559 * @param parentFolderId the primary key of the parent folder 1560 * @param start the lower bound of the range of results 1561 * @param end the upper bound of the range of results (not inclusive) 1562 * @return the name-ordered range of immediate subfolders of the parent 1563 folder that are used for mounting third-party repositories 1564 * @throws PortalException if the repository or parent folder could not be 1565 found 1566 */ 1567 @Override 1568 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders( 1569 long repositoryId, long parentFolderId, int start, int end) 1570 throws com.liferay.portal.kernel.exception.PortalException { 1571 return _dlAppService.getMountFolders(repositoryId, parentFolderId, 1572 start, end); 1573 } 1574 1575 /** 1576 * Returns an ordered range of all the immediate subfolders of the parent 1577 * folder that are used for mounting third-party repositories. This method 1578 * is only supported by the Liferay repository. 1579 * 1580 * <p> 1581 * Useful when paginating results. Returns a maximum of <code>end - 1582 * start</code> instances. <code>start</code> and <code>end</code> are not 1583 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1584 * refers to the first result in the set. Setting both <code>start</code> 1585 * and <code>end</code> to {@link 1586 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1587 * result set. 1588 * </p> 1589 * 1590 * @param repositoryId the primary key of the folder's repository 1591 * @param parentFolderId the primary key of the folder's parent folder 1592 * @param start the lower bound of the range of results 1593 * @param end the upper bound of the range of results (not inclusive) 1594 * @param obc the comparator to order the folders (optionally 1595 <code>null</code>) 1596 * @return the range of immediate subfolders of the parent folder that are 1597 used for mounting third-party repositories ordered by comparator 1598 <code>obc</code> 1599 * @throws PortalException if the repository or parent folder could not be 1600 found 1601 */ 1602 @Override 1603 public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders( 1604 long repositoryId, long parentFolderId, int start, int end, 1605 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) 1606 throws com.liferay.portal.kernel.exception.PortalException { 1607 return _dlAppService.getMountFolders(repositoryId, parentFolderId, 1608 start, end, obc); 1609 } 1610 1611 /** 1612 * Returns the number of immediate subfolders of the parent folder that are 1613 * used for mounting third-party repositories. This method is only supported 1614 * by the Liferay repository. 1615 * 1616 * @param repositoryId the primary key of the repository 1617 * @param parentFolderId the primary key of the parent folder 1618 * @return the number of folders of the parent folder that are used for 1619 mounting third-party repositories 1620 * @throws PortalException if the repository or parent folder could not be 1621 found 1622 */ 1623 @Override 1624 public int getMountFoldersCount(long repositoryId, long parentFolderId) 1625 throws com.liferay.portal.kernel.exception.PortalException { 1626 return _dlAppService.getMountFoldersCount(repositoryId, parentFolderId); 1627 } 1628 1629 /** 1630 * Returns all the descendant folders of the folder with the primary key. 1631 * 1632 * @param repositoryId the primary key of the repository 1633 * @param folderId the primary key of the folder 1634 * @return the descendant folders of the folder with the primary key 1635 * @throws PortalException if the repository or parent folder could not be 1636 found 1637 */ 1638 @Override 1639 public java.util.List<java.lang.Long> getSubfolderIds(long repositoryId, 1640 long folderId) 1641 throws com.liferay.portal.kernel.exception.PortalException { 1642 return _dlAppService.getSubfolderIds(repositoryId, folderId); 1643 } 1644 1645 /** 1646 * Returns descendant folders of the folder with the primary key, optionally 1647 * limiting to one level deep. 1648 * 1649 * @param repositoryId the primary key of the repository 1650 * @param folderId the primary key of the folder 1651 * @param recurse whether to recurse through each subfolder 1652 * @return the descendant folders of the folder with the primary key 1653 * @throws PortalException if the repository or parent folder could not be 1654 found 1655 */ 1656 @Override 1657 public java.util.List<java.lang.Long> getSubfolderIds(long repositoryId, 1658 long folderId, boolean recurse) 1659 throws com.liferay.portal.kernel.exception.PortalException { 1660 return _dlAppService.getSubfolderIds(repositoryId, folderId, recurse); 1661 } 1662 1663 @Override 1664 public void getSubfolderIds(long repositoryId, 1665 java.util.List<java.lang.Long> folderIds, long folderId) 1666 throws com.liferay.portal.kernel.exception.PortalException { 1667 _dlAppService.getSubfolderIds(repositoryId, folderIds, folderId); 1668 } 1669 1670 /** 1671 * Returns all the temporary file entry names. 1672 * 1673 * @param groupId the primary key of the group 1674 * @param folderId the primary key of the folder where the file entry will 1675 eventually reside 1676 * @param folderName the temporary folder's name 1677 * @return the temporary file entry names 1678 * @throws PortalException if the folder was invalid 1679 * @see #addTempFileEntry(long, long, String, String, File, String) 1680 * @see com.liferay.portal.kernel.util.TempFileEntryUtil 1681 */ 1682 @Override 1683 public java.lang.String[] getTempFileNames(long groupId, long folderId, 1684 java.lang.String folderName) 1685 throws com.liferay.portal.kernel.exception.PortalException { 1686 return _dlAppService.getTempFileNames(groupId, folderId, folderName); 1687 } 1688 1689 /** 1690 * Locks the folder. This method is primarily used by WebDAV. 1691 * 1692 * @param repositoryId the primary key of the repository 1693 * @param folderId the primary key of the folder 1694 * @return the lock object 1695 * @throws PortalException if the repository or folder could not be found 1696 */ 1697 @Override 1698 public com.liferay.portal.kernel.lock.Lock lockFolder(long repositoryId, 1699 long folderId) 1700 throws com.liferay.portal.kernel.exception.PortalException { 1701 return _dlAppService.lockFolder(repositoryId, folderId); 1702 } 1703 1704 /** 1705 * Locks the folder. This method is primarily used by WebDAV. 1706 * 1707 * @param repositoryId the primary key of the repository 1708 * @param folderId the primary key of the folder 1709 * @param owner the owner string for the checkout (optionally 1710 <code>null</code>) 1711 * @param inheritable whether the lock must propagate to descendants 1712 * @param expirationTime the time in milliseconds before the lock expires. 1713 If the value is <code>0</code>, the default expiration time will 1714 be used from <code>portal.properties>. 1715 * @return the lock object 1716 * @throws PortalException if the repository or folder could not be found 1717 */ 1718 @Override 1719 public com.liferay.portal.kernel.lock.Lock lockFolder(long repositoryId, 1720 long folderId, java.lang.String owner, boolean inheritable, 1721 long expirationTime) 1722 throws com.liferay.portal.kernel.exception.PortalException { 1723 return _dlAppService.lockFolder(repositoryId, folderId, owner, 1724 inheritable, expirationTime); 1725 } 1726 1727 /** 1728 * Moves the file entry to the new folder. 1729 * 1730 * @param fileEntryId the primary key of the file entry 1731 * @param newFolderId the primary key of the new folder 1732 * @param serviceContext the service context to be applied 1733 * @return the file entry 1734 * @throws PortalException if the file entry or the new folder could not be 1735 found 1736 */ 1737 @Override 1738 public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry( 1739 long fileEntryId, long newFolderId, 1740 com.liferay.portal.service.ServiceContext serviceContext) 1741 throws com.liferay.portal.kernel.exception.PortalException { 1742 return _dlAppService.moveFileEntry(fileEntryId, newFolderId, 1743 serviceContext); 1744 } 1745 1746 /** 1747 * Moves the file entry from a trashed folder to the new folder. 1748 * 1749 * @param fileEntryId the primary key of the file entry 1750 * @param newFolderId the primary key of the new folder 1751 * @param serviceContext the service context to be applied 1752 * @return the file entry 1753 * @throws PortalException if the file entry or the new folder could not be 1754 found 1755 */ 1756 @Override 1757 public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash( 1758 long fileEntryId, long newFolderId, 1759 com.liferay.portal.service.ServiceContext serviceContext) 1760 throws com.liferay.portal.kernel.exception.PortalException { 1761 return _dlAppService.moveFileEntryFromTrash(fileEntryId, newFolderId, 1762 serviceContext); 1763 } 1764 1765 /** 1766 * Moves the file entry with the primary key to the trash portlet. 1767 * 1768 * @param fileEntryId the primary key of the file entry 1769 * @return the file entry 1770 * @throws PortalException if the file entry could not be found 1771 */ 1772 @Override 1773 public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash( 1774 long fileEntryId) 1775 throws com.liferay.portal.kernel.exception.PortalException { 1776 return _dlAppService.moveFileEntryToTrash(fileEntryId); 1777 } 1778 1779 /** 1780 * Moves the file shortcut from a trashed folder to the new folder. 1781 * 1782 * @param fileShortcutId the primary key of the file shortcut 1783 * @param newFolderId the primary key of the new folder 1784 * @param serviceContext the service context to be applied 1785 * @return the file shortcut 1786 * @throws PortalException if the file entry or the new folder could not be 1787 found 1788 */ 1789 @Override 1790 public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutFromTrash( 1791 long fileShortcutId, long newFolderId, 1792 com.liferay.portal.service.ServiceContext serviceContext) 1793 throws com.liferay.portal.kernel.exception.PortalException { 1794 return _dlAppService.moveFileShortcutFromTrash(fileShortcutId, 1795 newFolderId, serviceContext); 1796 } 1797 1798 /** 1799 * Moves the file shortcut with the primary key to the trash portlet. 1800 * 1801 * @param fileShortcutId the primary key of the file shortcut 1802 * @return the file shortcut 1803 * @throws PortalException if the file shortcut could not be found 1804 */ 1805 @Override 1806 public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutToTrash( 1807 long fileShortcutId) 1808 throws com.liferay.portal.kernel.exception.PortalException { 1809 return _dlAppService.moveFileShortcutToTrash(fileShortcutId); 1810 } 1811 1812 /** 1813 * Moves the folder to the new parent folder with the primary key. 1814 * 1815 * @param folderId the primary key of the folder 1816 * @param parentFolderId the primary key of the new parent folder 1817 * @param serviceContext the service context to be applied 1818 * @return the file entry 1819 * @throws PortalException if the folder could not be found 1820 */ 1821 @Override 1822 public com.liferay.portal.kernel.repository.model.Folder moveFolder( 1823 long folderId, long parentFolderId, 1824 com.liferay.portal.service.ServiceContext serviceContext) 1825 throws com.liferay.portal.kernel.exception.PortalException { 1826 return _dlAppService.moveFolder(folderId, parentFolderId, serviceContext); 1827 } 1828 1829 /** 1830 * Moves the folder with the primary key from the trash portlet to the new 1831 * parent folder with the primary key. 1832 * 1833 * @param folderId the primary key of the folder 1834 * @param parentFolderId the primary key of the new parent folder 1835 * @param serviceContext the service context to be applied 1836 * @return the file entry 1837 * @throws PortalException if the folder could not be found 1838 */ 1839 @Override 1840 public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash( 1841 long folderId, long parentFolderId, 1842 com.liferay.portal.service.ServiceContext serviceContext) 1843 throws com.liferay.portal.kernel.exception.PortalException { 1844 return _dlAppService.moveFolderFromTrash(folderId, parentFolderId, 1845 serviceContext); 1846 } 1847 1848 /** 1849 * Moves the folder with the primary key to the trash portlet. 1850 * 1851 * @param folderId the primary key of the folder 1852 * @return the file entry 1853 * @throws PortalException if the folder could not be found 1854 */ 1855 @Override 1856 public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash( 1857 long folderId) 1858 throws com.liferay.portal.kernel.exception.PortalException { 1859 return _dlAppService.moveFolderToTrash(folderId); 1860 } 1861 1862 /** 1863 * Refreshes the lock for the file entry. This method is primarily used by 1864 * WebDAV. 1865 * 1866 * @param lockUuid the lock's UUID 1867 * @param companyId the primary key of the file entry's company 1868 * @param expirationTime the time in milliseconds before the lock expires. 1869 If the value is <code>0</code>, the default expiration time will 1870 be used from <code>portal.properties>. 1871 * @return the lock object 1872 * @throws PortalException if the file entry or lock could not be found 1873 */ 1874 @Override 1875 public com.liferay.portal.kernel.lock.Lock refreshFileEntryLock( 1876 java.lang.String lockUuid, long companyId, long expirationTime) 1877 throws com.liferay.portal.kernel.exception.PortalException { 1878 return _dlAppService.refreshFileEntryLock(lockUuid, companyId, 1879 expirationTime); 1880 } 1881 1882 /** 1883 * Refreshes the lock for the folder. This method is primarily used by 1884 * WebDAV. 1885 * 1886 * @param lockUuid the lock's UUID 1887 * @param companyId the primary key of the file entry's company 1888 * @param expirationTime the time in milliseconds before the lock expires. 1889 If the value is <code>0</code>, the default expiration time will 1890 be used from <code>portal.properties>. 1891 * @return the lock object 1892 * @throws PortalException if the folder or lock could not be found 1893 */ 1894 @Override 1895 public com.liferay.portal.kernel.lock.Lock refreshFolderLock( 1896 java.lang.String lockUuid, long companyId, long expirationTime) 1897 throws com.liferay.portal.kernel.exception.PortalException { 1898 return _dlAppService.refreshFolderLock(lockUuid, companyId, 1899 expirationTime); 1900 } 1901 1902 /** 1903 * Restores the file entry with the primary key from the trash portlet. 1904 * 1905 * @param fileEntryId the primary key of the file entry 1906 * @throws PortalException if the file entry could not be found 1907 */ 1908 @Override 1909 public void restoreFileEntryFromTrash(long fileEntryId) 1910 throws com.liferay.portal.kernel.exception.PortalException { 1911 _dlAppService.restoreFileEntryFromTrash(fileEntryId); 1912 } 1913 1914 /** 1915 * Restores the file shortcut with the primary key from the trash portlet. 1916 * 1917 * @param fileShortcutId the primary key of the file shortcut 1918 * @throws PortalException if the file shortcut could not be found 1919 */ 1920 @Override 1921 public void restoreFileShortcutFromTrash(long fileShortcutId) 1922 throws com.liferay.portal.kernel.exception.PortalException { 1923 _dlAppService.restoreFileShortcutFromTrash(fileShortcutId); 1924 } 1925 1926 /** 1927 * Restores the folder with the primary key from the trash portlet. 1928 * 1929 * @param folderId the primary key of the folder 1930 * @throws PortalException if the folder could not be found 1931 */ 1932 @Override 1933 public void restoreFolderFromTrash(long folderId) 1934 throws com.liferay.portal.kernel.exception.PortalException { 1935 _dlAppService.restoreFolderFromTrash(folderId); 1936 } 1937 1938 /** 1939 * Reverts the file entry to a previous version. A new version will be 1940 * created based on the previous version and metadata. 1941 * 1942 * @param fileEntryId the primary key of the file entry 1943 * @param version the version to revert back to 1944 * @param serviceContext the service context to be applied 1945 * @throws PortalException if the file entry or version could not be found 1946 */ 1947 @Override 1948 public void revertFileEntry(long fileEntryId, java.lang.String version, 1949 com.liferay.portal.service.ServiceContext serviceContext) 1950 throws com.liferay.portal.kernel.exception.PortalException { 1951 _dlAppService.revertFileEntry(fileEntryId, version, serviceContext); 1952 } 1953 1954 @Override 1955 public com.liferay.portal.kernel.search.Hits search(long repositoryId, 1956 long creatorUserId, long folderId, java.lang.String[] mimeTypes, 1957 int status, int start, int end) 1958 throws com.liferay.portal.kernel.exception.PortalException { 1959 return _dlAppService.search(repositoryId, creatorUserId, folderId, 1960 mimeTypes, status, start, end); 1961 } 1962 1963 @Override 1964 public com.liferay.portal.kernel.search.Hits search(long repositoryId, 1965 long creatorUserId, int status, int start, int end) 1966 throws com.liferay.portal.kernel.exception.PortalException { 1967 return _dlAppService.search(repositoryId, creatorUserId, status, start, 1968 end); 1969 } 1970 1971 @Override 1972 public com.liferay.portal.kernel.search.Hits search(long repositoryId, 1973 com.liferay.portal.kernel.search.SearchContext searchContext) 1974 throws com.liferay.portal.kernel.search.SearchException { 1975 return _dlAppService.search(repositoryId, searchContext); 1976 } 1977 1978 @Override 1979 public com.liferay.portal.kernel.search.Hits search(long repositoryId, 1980 com.liferay.portal.kernel.search.SearchContext searchContext, 1981 com.liferay.portal.kernel.search.Query query) 1982 throws com.liferay.portal.kernel.search.SearchException { 1983 return _dlAppService.search(repositoryId, searchContext, query); 1984 } 1985 1986 /** 1987 * Sets the Spring bean ID for this bean. 1988 * 1989 * @param beanIdentifier the Spring bean ID for this bean 1990 */ 1991 @Override 1992 public void setBeanIdentifier(java.lang.String beanIdentifier) { 1993 _dlAppService.setBeanIdentifier(beanIdentifier); 1994 } 1995 1996 /** 1997 * Subscribe the user to changes in documents of the file entry type. This 1998 * method is only supported by the Liferay repository. 1999 * 2000 * @param groupId the primary key of the file entry type's group 2001 * @param fileEntryTypeId the primary key of the file entry type 2002 * @throws PortalException if the user or group could not be found, or if 2003 subscribing was not permissible 2004 */ 2005 @Override 2006 public void subscribeFileEntryType(long groupId, long fileEntryTypeId) 2007 throws com.liferay.portal.kernel.exception.PortalException { 2008 _dlAppService.subscribeFileEntryType(groupId, fileEntryTypeId); 2009 } 2010 2011 /** 2012 * Subscribe the user to document changes in the folder. This method is only 2013 * supported by the Liferay repository. 2014 * 2015 * @param groupId the primary key of the folder's group 2016 * @param folderId the primary key of the folder 2017 * @throws PortalException if the user or group could not be found, or if 2018 subscribing was not permissible 2019 */ 2020 @Override 2021 public void subscribeFolder(long groupId, long folderId) 2022 throws com.liferay.portal.kernel.exception.PortalException { 2023 _dlAppService.subscribeFolder(groupId, folderId); 2024 } 2025 2026 /** 2027 * @deprecated As of 6.2.0, replaced by {@link #checkInFileEntry(long, 2028 boolean, String, ServiceContext)}. 2029 */ 2030 @Deprecated 2031 @Override 2032 public void unlockFileEntry(long fileEntryId) 2033 throws com.liferay.portal.kernel.exception.PortalException { 2034 _dlAppService.unlockFileEntry(fileEntryId); 2035 } 2036 2037 /** 2038 * @deprecated As of 6.2.0, replaced by {@link #checkInFileEntry(long, 2039 String)}. 2040 */ 2041 @Deprecated 2042 @Override 2043 public void unlockFileEntry(long fileEntryId, java.lang.String lockUuid) 2044 throws com.liferay.portal.kernel.exception.PortalException { 2045 _dlAppService.unlockFileEntry(fileEntryId, lockUuid); 2046 } 2047 2048 /** 2049 * Unlocks the folder. This method is primarily used by WebDAV. 2050 * 2051 * @param repositoryId the primary key of the repository 2052 * @param folderId the primary key of the folder 2053 * @param lockUuid the lock's UUID 2054 * @throws PortalException if the repository or folder could not be found 2055 */ 2056 @Override 2057 public void unlockFolder(long repositoryId, long folderId, 2058 java.lang.String lockUuid) 2059 throws com.liferay.portal.kernel.exception.PortalException { 2060 _dlAppService.unlockFolder(repositoryId, folderId, lockUuid); 2061 } 2062 2063 /** 2064 * Unlocks the folder. This method is primarily used by WebDAV. 2065 * 2066 * @param repositoryId the primary key of the repository 2067 * @param parentFolderId the primary key of the parent folder 2068 * @param name the folder's name 2069 * @param lockUuid the lock's UUID 2070 * @throws PortalException if the repository or folder could not be found 2071 */ 2072 @Override 2073 public void unlockFolder(long repositoryId, long parentFolderId, 2074 java.lang.String name, java.lang.String lockUuid) 2075 throws com.liferay.portal.kernel.exception.PortalException { 2076 _dlAppService.unlockFolder(repositoryId, parentFolderId, name, lockUuid); 2077 } 2078 2079 /** 2080 * Unsubscribe the user from changes in documents of the file entry type. 2081 * This method is only supported by the Liferay repository. 2082 * 2083 * @param groupId the primary key of the file entry type's group 2084 * @param fileEntryTypeId the primary key of the file entry type 2085 * @throws PortalException if the user or group could not be found, or if 2086 unsubscribing was not permissible 2087 */ 2088 @Override 2089 public void unsubscribeFileEntryType(long groupId, long fileEntryTypeId) 2090 throws com.liferay.portal.kernel.exception.PortalException { 2091 _dlAppService.unsubscribeFileEntryType(groupId, fileEntryTypeId); 2092 } 2093 2094 /** 2095 * Unsubscribe the user from document changes in the folder. This method is 2096 * only supported by the Liferay repository. 2097 * 2098 * @param groupId the primary key of the folder's group 2099 * @param folderId the primary key of the folder 2100 * @throws PortalException if the user or group could not be found, or if 2101 unsubscribing was not permissible 2102 */ 2103 @Override 2104 public void unsubscribeFolder(long groupId, long folderId) 2105 throws com.liferay.portal.kernel.exception.PortalException { 2106 _dlAppService.unsubscribeFolder(groupId, folderId); 2107 } 2108 2109 /** 2110 * Updates a file entry and associated metadata based on a byte array 2111 * object. If the file data is <code>null</code>, then only the associated 2112 * metadata (i.e., <code>title</code>, <code>description</code>, and 2113 * parameters in the <code>serviceContext</code>) will be updated. 2114 * 2115 * <p> 2116 * This method takes two file names, the <code>sourceFileName</code> and the 2117 * <code>title</code>. The <code>sourceFileName</code> corresponds to the 2118 * name of the actual file being uploaded. The <code>title</code> 2119 * corresponds to a name the client wishes to assign this file after it has 2120 * been uploaded to the portal. 2121 * </p> 2122 * 2123 * @param fileEntryId the primary key of the file entry 2124 * @param sourceFileName the original file's name (optionally 2125 <code>null</code>) 2126 * @param mimeType the file's MIME type (optionally <code>null</code>) 2127 * @param title the new name to be assigned to the file (optionally <code> 2128 <code>null</code></code>) 2129 * @param description the file's new description 2130 * @param changeLog the file's version change log (optionally 2131 <code>null</code>) 2132 * @param majorVersion whether the new file version is a major version 2133 * @param bytes the file's data (optionally <code>null</code>) 2134 * @param serviceContext the service context to be applied. Can set the 2135 asset category IDs, asset tag names, and expando bridge 2136 attributes for the file entry. In a Liferay repository, it may 2137 include: <ul> <li> fileEntryTypeId - ID for a custom file entry 2138 type </li> <li> fieldsMap - mapping for fields associated with a 2139 custom file entry type </li> </ul> 2140 * @return the file entry 2141 * @throws PortalException if the file entry could not be found 2142 */ 2143 @Override 2144 public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry( 2145 long fileEntryId, java.lang.String sourceFileName, 2146 java.lang.String mimeType, java.lang.String title, 2147 java.lang.String description, java.lang.String changeLog, 2148 boolean majorVersion, byte[] bytes, 2149 com.liferay.portal.service.ServiceContext serviceContext) 2150 throws com.liferay.portal.kernel.exception.PortalException { 2151 return _dlAppService.updateFileEntry(fileEntryId, sourceFileName, 2152 mimeType, title, description, changeLog, majorVersion, bytes, 2153 serviceContext); 2154 } 2155 2156 /** 2157 * Updates a file entry and associated metadata based on a {@link 2158 * java.io.File} object. If the file data is <code>null</code>, then only 2159 * the associated metadata (i.e., <code>title</code>, 2160 * <code>description</code>, and parameters in the 2161 * <code>serviceContext</code>) will be updated. 2162 * 2163 * <p> 2164 * This method takes two file names, the <code>sourceFileName</code> and the 2165 * <code>title</code>. The <code>sourceFileName</code> corresponds to the 2166 * name of the actual file being uploaded. The <code>title</code> 2167 * corresponds to a name the client wishes to assign this file after it has 2168 * been uploaded to the portal. 2169 * </p> 2170 * 2171 * @param fileEntryId the primary key of the file entry 2172 * @param sourceFileName the original file's name (optionally 2173 <code>null</code>) 2174 * @param mimeType the file's MIME type (optionally <code>null</code>) 2175 * @param title the new name to be assigned to the file (optionally <code> 2176 <code>null</code></code>) 2177 * @param description the file's new description 2178 * @param changeLog the file's version change log (optionally 2179 <code>null</code>) 2180 * @param majorVersion whether the new file version is a major version 2181 * @param file the file's data (optionally <code>null</code>) 2182 * @param serviceContext the service context to be applied. Can set the 2183 asset category IDs, asset tag names, and expando bridge 2184 attributes for the file entry. In a Liferay repository, it may 2185 include: <ul> <li> fileEntryTypeId - ID for a custom file entry 2186 type </li> <li> fieldsMap - mapping for fields associated with a 2187 custom file entry type </li> </ul> 2188 * @return the file entry 2189 * @throws PortalException if the file entry could not be found 2190 */ 2191 @Override 2192 public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry( 2193 long fileEntryId, java.lang.String sourceFileName, 2194 java.lang.String mimeType, java.lang.String title, 2195 java.lang.String description, java.lang.String changeLog, 2196 boolean majorVersion, java.io.File file, 2197 com.liferay.portal.service.ServiceContext serviceContext) 2198 throws com.liferay.portal.kernel.exception.PortalException { 2199 return _dlAppService.updateFileEntry(fileEntryId, sourceFileName, 2200 mimeType, title, description, changeLog, majorVersion, file, 2201 serviceContext); 2202 } 2203 2204 /** 2205 * Updates a file entry and associated metadata based on an {@link 2206 * InputStream} object. If the file data is <code>null</code>, then only the 2207 * associated metadata (i.e., <code>title</code>, <code>description</code>, 2208 * and parameters in the <code>serviceContext</code>) will be updated. 2209 * 2210 * <p> 2211 * This method takes two file names, the <code>sourceFileName</code> and the 2212 * <code>title</code>. The <code>sourceFileName</code> corresponds to the 2213 * name of the actual file being uploaded. The <code>title</code> 2214 * corresponds to a name the client wishes to assign this file after it has 2215 * been uploaded to the portal. 2216 * </p> 2217 * 2218 * @param fileEntryId the primary key of the file entry 2219 * @param sourceFileName the original file's name (optionally 2220 <code>null</code>) 2221 * @param mimeType the file's MIME type (optionally <code>null</code>) 2222 * @param title the new name to be assigned to the file (optionally <code> 2223 <code>null</code></code>) 2224 * @param description the file's new description 2225 * @param changeLog the file's version change log (optionally 2226 <code>null</code>) 2227 * @param majorVersion whether the new file version is a major version 2228 * @param is the file's data (optionally <code>null</code>) 2229 * @param size the file's size (optionally <code>0</code>) 2230 * @param serviceContext the service context to be applied. Can set the 2231 asset category IDs, asset tag names, and expando bridge 2232 attributes for the file entry. In a Liferay repository, it may 2233 include: <ul> <li> fileEntryTypeId - ID for a custom file entry 2234 type </li> <li> fieldsMap - mapping for fields associated with a 2235 custom file entry type </li> </ul> 2236 * @return the file entry 2237 * @throws PortalException if the file entry could not be found 2238 */ 2239 @Override 2240 public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry( 2241 long fileEntryId, java.lang.String sourceFileName, 2242 java.lang.String mimeType, java.lang.String title, 2243 java.lang.String description, java.lang.String changeLog, 2244 boolean majorVersion, java.io.InputStream is, long size, 2245 com.liferay.portal.service.ServiceContext serviceContext) 2246 throws com.liferay.portal.kernel.exception.PortalException { 2247 return _dlAppService.updateFileEntry(fileEntryId, sourceFileName, 2248 mimeType, title, description, changeLog, majorVersion, is, size, 2249 serviceContext); 2250 } 2251 2252 @Override 2253 public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntryAndCheckIn( 2254 long fileEntryId, java.lang.String sourceFileName, 2255 java.lang.String mimeType, java.lang.String title, 2256 java.lang.String description, java.lang.String changeLog, 2257 boolean majorVersion, java.io.File file, 2258 com.liferay.portal.service.ServiceContext serviceContext) 2259 throws com.liferay.portal.kernel.exception.PortalException { 2260 return _dlAppService.updateFileEntryAndCheckIn(fileEntryId, 2261 sourceFileName, mimeType, title, description, changeLog, 2262 majorVersion, file, serviceContext); 2263 } 2264 2265 @Override 2266 public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntryAndCheckIn( 2267 long fileEntryId, java.lang.String sourceFileName, 2268 java.lang.String mimeType, java.lang.String title, 2269 java.lang.String description, java.lang.String changeLog, 2270 boolean majorVersion, java.io.InputStream is, long size, 2271 com.liferay.portal.service.ServiceContext serviceContext) 2272 throws com.liferay.portal.kernel.exception.PortalException { 2273 return _dlAppService.updateFileEntryAndCheckIn(fileEntryId, 2274 sourceFileName, mimeType, title, description, changeLog, 2275 majorVersion, is, size, serviceContext); 2276 } 2277 2278 /** 2279 * Updates a file shortcut to the existing file entry. This method is only 2280 * supported by the Liferay repository. 2281 * 2282 * @param fileShortcutId the primary key of the file shortcut 2283 * @param folderId the primary key of the file shortcut's parent folder 2284 * @param toFileEntryId the primary key of the file shortcut's file entry 2285 * @param serviceContext the service context to be applied. Can set the 2286 asset category IDs, asset tag names, and expando bridge 2287 attributes for the file entry. 2288 * @return the file shortcut 2289 * @throws PortalException if the file shortcut, folder, or file entry could 2290 not be found 2291 */ 2292 @Override 2293 public com.liferay.portal.kernel.repository.model.FileShortcut updateFileShortcut( 2294 long fileShortcutId, long folderId, long toFileEntryId, 2295 com.liferay.portal.service.ServiceContext serviceContext) 2296 throws com.liferay.portal.kernel.exception.PortalException { 2297 return _dlAppService.updateFileShortcut(fileShortcutId, folderId, 2298 toFileEntryId, serviceContext); 2299 } 2300 2301 /** 2302 * Updates the folder. 2303 * 2304 * @param folderId the primary key of the folder 2305 * @param name the folder's new name 2306 * @param description the folder's new description 2307 * @param serviceContext the service context to be applied. In a Liferay 2308 repository, it may include: <ul> <li> defaultFileEntryTypeId - 2309 the file entry type to default all Liferay file entries to </li> 2310 <li> dlFileEntryTypesSearchContainerPrimaryKeys - a 2311 comma-delimited list of file entry type primary keys allowed in 2312 the given folder and all descendants </li> <li> restrictionType - 2313 specifying restriction type of file entry types allowed </li> 2314 <li> workflowDefinitionXYZ - the workflow definition name 2315 specified per file entry type. The parameter name must be the 2316 string <code>workflowDefinition</code> appended by the 2317 <code>fileEntryTypeId</code> (optionally <code>0</code>).</li> 2318 </ul> 2319 * @return the folder 2320 * @throws PortalException if the current or new parent folder could not be 2321 found or if the new parent folder's information was invalid 2322 */ 2323 @Override 2324 public com.liferay.portal.kernel.repository.model.Folder updateFolder( 2325 long folderId, java.lang.String name, java.lang.String description, 2326 com.liferay.portal.service.ServiceContext serviceContext) 2327 throws com.liferay.portal.kernel.exception.PortalException { 2328 return _dlAppService.updateFolder(folderId, name, description, 2329 serviceContext); 2330 } 2331 2332 /** 2333 * Returns <code>true</code> if the file entry is checked out. This method 2334 * is primarily used by WebDAV. 2335 * 2336 * @param repositoryId the primary key for the repository 2337 * @param fileEntryId the primary key for the file entry 2338 * @param lockUuid the lock's UUID 2339 * @return <code>true</code> if the file entry is checked out; 2340 <code>false</code> otherwise 2341 * @throws PortalException if the file entry could not be found 2342 */ 2343 @Override 2344 public boolean verifyFileEntryCheckOut(long repositoryId, long fileEntryId, 2345 java.lang.String lockUuid) 2346 throws com.liferay.portal.kernel.exception.PortalException { 2347 return _dlAppService.verifyFileEntryCheckOut(repositoryId, fileEntryId, 2348 lockUuid); 2349 } 2350 2351 @Override 2352 public boolean verifyFileEntryLock(long repositoryId, long fileEntryId, 2353 java.lang.String lockUuid) 2354 throws com.liferay.portal.kernel.exception.PortalException { 2355 return _dlAppService.verifyFileEntryLock(repositoryId, fileEntryId, 2356 lockUuid); 2357 } 2358 2359 /** 2360 * Returns <code>true</code> if the inheritable lock exists. This method is 2361 * primarily used by WebDAV. 2362 * 2363 * @param repositoryId the primary key for the repository 2364 * @param folderId the primary key for the folder 2365 * @param lockUuid the lock's UUID 2366 * @return <code>true</code> if the inheritable lock exists; 2367 <code>false</code> otherwise 2368 * @throws PortalException if the folder could not be found 2369 */ 2370 @Override 2371 public boolean verifyInheritableLock(long repositoryId, long folderId, 2372 java.lang.String lockUuid) 2373 throws com.liferay.portal.kernel.exception.PortalException { 2374 return _dlAppService.verifyInheritableLock(repositoryId, folderId, 2375 lockUuid); 2376 } 2377 2378 /** 2379 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 2380 */ 2381 @Deprecated 2382 public DLAppService getWrappedDLAppService() { 2383 return _dlAppService; 2384 } 2385 2386 /** 2387 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 2388 */ 2389 @Deprecated 2390 public void setWrappedDLAppService(DLAppService dlAppService) { 2391 _dlAppService = dlAppService; 2392 } 2393 2394 @Override 2395 public DLAppService getWrappedService() { 2396 return _dlAppService; 2397 } 2398 2399 @Override 2400 public void setWrappedService(DLAppService dlAppService) { 2401 _dlAppService = dlAppService; 2402 } 2403 2404 private DLAppService _dlAppService; 2405 }