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