001 /** 002 * Copyright (c) 2000-2013 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 DLFileVersionLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DLFileVersionLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class DLFileVersionLocalServiceWrapper 030 implements DLFileVersionLocalService, 031 ServiceWrapper<DLFileVersionLocalService> { 032 public DLFileVersionLocalServiceWrapper( 033 DLFileVersionLocalService dlFileVersionLocalService) { 034 _dlFileVersionLocalService = dlFileVersionLocalService; 035 } 036 037 /** 038 * Adds the document library file version to the database. Also notifies the appropriate model listeners. 039 * 040 * @param dlFileVersion the document library file version 041 * @return the document library file version that was added 042 * @throws SystemException if a system exception occurred 043 */ 044 @Override 045 public com.liferay.portlet.documentlibrary.model.DLFileVersion addDLFileVersion( 046 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) 047 throws com.liferay.portal.kernel.exception.SystemException { 048 return _dlFileVersionLocalService.addDLFileVersion(dlFileVersion); 049 } 050 051 /** 052 * Creates a new document library file version with the primary key. Does not add the document library file version to the database. 053 * 054 * @param fileVersionId the primary key for the new document library file version 055 * @return the new document library file version 056 */ 057 @Override 058 public com.liferay.portlet.documentlibrary.model.DLFileVersion createDLFileVersion( 059 long fileVersionId) { 060 return _dlFileVersionLocalService.createDLFileVersion(fileVersionId); 061 } 062 063 /** 064 * Deletes the document library file version with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param fileVersionId the primary key of the document library file version 067 * @return the document library file version that was removed 068 * @throws PortalException if a document library file version with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 @Override 072 public com.liferay.portlet.documentlibrary.model.DLFileVersion deleteDLFileVersion( 073 long fileVersionId) 074 throws com.liferay.portal.kernel.exception.PortalException, 075 com.liferay.portal.kernel.exception.SystemException { 076 return _dlFileVersionLocalService.deleteDLFileVersion(fileVersionId); 077 } 078 079 /** 080 * Deletes the document library file version from the database. Also notifies the appropriate model listeners. 081 * 082 * @param dlFileVersion the document library file version 083 * @return the document library file version that was removed 084 * @throws SystemException if a system exception occurred 085 */ 086 @Override 087 public com.liferay.portlet.documentlibrary.model.DLFileVersion deleteDLFileVersion( 088 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) 089 throws com.liferay.portal.kernel.exception.SystemException { 090 return _dlFileVersionLocalService.deleteDLFileVersion(dlFileVersion); 091 } 092 093 @Override 094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 095 return _dlFileVersionLocalService.dynamicQuery(); 096 } 097 098 /** 099 * Performs a dynamic query on the database and returns the matching rows. 100 * 101 * @param dynamicQuery the dynamic query 102 * @return the matching rows 103 * @throws SystemException if a system exception occurred 104 */ 105 @Override 106 @SuppressWarnings("rawtypes") 107 public java.util.List dynamicQuery( 108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 109 throws com.liferay.portal.kernel.exception.SystemException { 110 return _dlFileVersionLocalService.dynamicQuery(dynamicQuery); 111 } 112 113 /** 114 * Performs a dynamic query on the database and returns a range of the matching rows. 115 * 116 * <p> 117 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 118 * </p> 119 * 120 * @param dynamicQuery the dynamic query 121 * @param start the lower bound of the range of model instances 122 * @param end the upper bound of the range of model instances (not inclusive) 123 * @return the range of matching rows 124 * @throws SystemException if a system exception occurred 125 */ 126 @Override 127 @SuppressWarnings("rawtypes") 128 public java.util.List dynamicQuery( 129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 130 int end) throws com.liferay.portal.kernel.exception.SystemException { 131 return _dlFileVersionLocalService.dynamicQuery(dynamicQuery, start, end); 132 } 133 134 /** 135 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 136 * 137 * <p> 138 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 139 * </p> 140 * 141 * @param dynamicQuery the dynamic query 142 * @param start the lower bound of the range of model instances 143 * @param end the upper bound of the range of model instances (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching rows 146 * @throws SystemException if a system exception occurred 147 */ 148 @Override 149 @SuppressWarnings("rawtypes") 150 public java.util.List dynamicQuery( 151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 152 int end, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.kernel.exception.SystemException { 155 return _dlFileVersionLocalService.dynamicQuery(dynamicQuery, start, 156 end, orderByComparator); 157 } 158 159 /** 160 * Returns the number of rows that match the dynamic query. 161 * 162 * @param dynamicQuery the dynamic query 163 * @return the number of rows that match the dynamic query 164 * @throws SystemException if a system exception occurred 165 */ 166 @Override 167 public long dynamicQueryCount( 168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 169 throws com.liferay.portal.kernel.exception.SystemException { 170 return _dlFileVersionLocalService.dynamicQueryCount(dynamicQuery); 171 } 172 173 /** 174 * Returns the number of rows that match the dynamic query. 175 * 176 * @param dynamicQuery the dynamic query 177 * @param projection the projection to apply to the query 178 * @return the number of rows that match the dynamic query 179 * @throws SystemException if a system exception occurred 180 */ 181 @Override 182 public long dynamicQueryCount( 183 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 184 com.liferay.portal.kernel.dao.orm.Projection projection) 185 throws com.liferay.portal.kernel.exception.SystemException { 186 return _dlFileVersionLocalService.dynamicQueryCount(dynamicQuery, 187 projection); 188 } 189 190 @Override 191 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchDLFileVersion( 192 long fileVersionId) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return _dlFileVersionLocalService.fetchDLFileVersion(fileVersionId); 195 } 196 197 /** 198 * Returns the document library file version with the matching UUID and company. 199 * 200 * @param uuid the document library file version's UUID 201 * @param companyId the primary key of the company 202 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 @Override 206 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchDLFileVersionByUuidAndCompanyId( 207 java.lang.String uuid, long companyId) 208 throws com.liferay.portal.kernel.exception.SystemException { 209 return _dlFileVersionLocalService.fetchDLFileVersionByUuidAndCompanyId(uuid, 210 companyId); 211 } 212 213 /** 214 * Returns the document library file version matching the UUID and group. 215 * 216 * @param uuid the document library file version's UUID 217 * @param groupId the primary key of the group 218 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 219 * @throws SystemException if a system exception occurred 220 */ 221 @Override 222 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchDLFileVersionByUuidAndGroupId( 223 java.lang.String uuid, long groupId) 224 throws com.liferay.portal.kernel.exception.SystemException { 225 return _dlFileVersionLocalService.fetchDLFileVersionByUuidAndGroupId(uuid, 226 groupId); 227 } 228 229 /** 230 * Returns the document library file version with the primary key. 231 * 232 * @param fileVersionId the primary key of the document library file version 233 * @return the document library file version 234 * @throws PortalException if a document library file version with the primary key could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 @Override 238 public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersion( 239 long fileVersionId) 240 throws com.liferay.portal.kernel.exception.PortalException, 241 com.liferay.portal.kernel.exception.SystemException { 242 return _dlFileVersionLocalService.getDLFileVersion(fileVersionId); 243 } 244 245 @Override 246 public com.liferay.portal.model.PersistedModel getPersistedModel( 247 java.io.Serializable primaryKeyObj) 248 throws com.liferay.portal.kernel.exception.PortalException, 249 com.liferay.portal.kernel.exception.SystemException { 250 return _dlFileVersionLocalService.getPersistedModel(primaryKeyObj); 251 } 252 253 /** 254 * Returns the document library file version with the matching UUID and company. 255 * 256 * @param uuid the document library file version's UUID 257 * @param companyId the primary key of the company 258 * @return the matching document library file version 259 * @throws PortalException if a matching document library file version could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 @Override 263 public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersionByUuidAndCompanyId( 264 java.lang.String uuid, long companyId) 265 throws com.liferay.portal.kernel.exception.PortalException, 266 com.liferay.portal.kernel.exception.SystemException { 267 return _dlFileVersionLocalService.getDLFileVersionByUuidAndCompanyId(uuid, 268 companyId); 269 } 270 271 /** 272 * Returns the document library file version matching the UUID and group. 273 * 274 * @param uuid the document library file version's UUID 275 * @param groupId the primary key of the group 276 * @return the matching document library file version 277 * @throws PortalException if a matching document library file version could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 @Override 281 public com.liferay.portlet.documentlibrary.model.DLFileVersion getDLFileVersionByUuidAndGroupId( 282 java.lang.String uuid, long groupId) 283 throws com.liferay.portal.kernel.exception.PortalException, 284 com.liferay.portal.kernel.exception.SystemException { 285 return _dlFileVersionLocalService.getDLFileVersionByUuidAndGroupId(uuid, 286 groupId); 287 } 288 289 /** 290 * Returns a range of all the document library file versions. 291 * 292 * <p> 293 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 294 * </p> 295 * 296 * @param start the lower bound of the range of document library file versions 297 * @param end the upper bound of the range of document library file versions (not inclusive) 298 * @return the range of document library file versions 299 * @throws SystemException if a system exception occurred 300 */ 301 @Override 302 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getDLFileVersions( 303 int start, int end) 304 throws com.liferay.portal.kernel.exception.SystemException { 305 return _dlFileVersionLocalService.getDLFileVersions(start, end); 306 } 307 308 /** 309 * Returns the number of document library file versions. 310 * 311 * @return the number of document library file versions 312 * @throws SystemException if a system exception occurred 313 */ 314 @Override 315 public int getDLFileVersionsCount() 316 throws com.liferay.portal.kernel.exception.SystemException { 317 return _dlFileVersionLocalService.getDLFileVersionsCount(); 318 } 319 320 /** 321 * Updates the document library file version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 322 * 323 * @param dlFileVersion the document library file version 324 * @return the document library file version that was updated 325 * @throws SystemException if a system exception occurred 326 */ 327 @Override 328 public com.liferay.portlet.documentlibrary.model.DLFileVersion updateDLFileVersion( 329 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) 330 throws com.liferay.portal.kernel.exception.SystemException { 331 return _dlFileVersionLocalService.updateDLFileVersion(dlFileVersion); 332 } 333 334 /** 335 * Returns the Spring bean ID for this bean. 336 * 337 * @return the Spring bean ID for this bean 338 */ 339 @Override 340 public java.lang.String getBeanIdentifier() { 341 return _dlFileVersionLocalService.getBeanIdentifier(); 342 } 343 344 /** 345 * Sets the Spring bean ID for this bean. 346 * 347 * @param beanIdentifier the Spring bean ID for this bean 348 */ 349 @Override 350 public void setBeanIdentifier(java.lang.String beanIdentifier) { 351 _dlFileVersionLocalService.setBeanIdentifier(beanIdentifier); 352 } 353 354 @Override 355 public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion( 356 long fileVersionId) 357 throws com.liferay.portal.kernel.exception.PortalException, 358 com.liferay.portal.kernel.exception.SystemException { 359 return _dlFileVersionLocalService.getFileVersion(fileVersionId); 360 } 361 362 @Override 363 public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion( 364 long fileEntryId, java.lang.String version) 365 throws com.liferay.portal.kernel.exception.PortalException, 366 com.liferay.portal.kernel.exception.SystemException { 367 return _dlFileVersionLocalService.getFileVersion(fileEntryId, version); 368 } 369 370 @Override 371 public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersionByUuidAndGroupId( 372 java.lang.String uuid, long groupId) 373 throws com.liferay.portal.kernel.exception.SystemException { 374 return _dlFileVersionLocalService.getFileVersionByUuidAndGroupId(uuid, 375 groupId); 376 } 377 378 @Override 379 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions( 380 long fileEntryId, int status) 381 throws com.liferay.portal.kernel.exception.SystemException { 382 return _dlFileVersionLocalService.getFileVersions(fileEntryId, status); 383 } 384 385 @Override 386 public int getFileVersionsCount(long fileEntryId, int status) 387 throws com.liferay.portal.kernel.exception.SystemException { 388 return _dlFileVersionLocalService.getFileVersionsCount(fileEntryId, 389 status); 390 } 391 392 @Override 393 public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion( 394 long fileEntryId, boolean excludeWorkingCopy) 395 throws com.liferay.portal.kernel.exception.PortalException, 396 com.liferay.portal.kernel.exception.SystemException { 397 return _dlFileVersionLocalService.getLatestFileVersion(fileEntryId, 398 excludeWorkingCopy); 399 } 400 401 @Override 402 public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion( 403 long userId, long fileEntryId) 404 throws com.liferay.portal.kernel.exception.PortalException, 405 com.liferay.portal.kernel.exception.SystemException { 406 return _dlFileVersionLocalService.getLatestFileVersion(userId, 407 fileEntryId); 408 } 409 410 @Override 411 public void rebuildTree(long companyId) 412 throws com.liferay.portal.kernel.exception.SystemException { 413 _dlFileVersionLocalService.rebuildTree(companyId); 414 } 415 416 /** 417 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 418 */ 419 public DLFileVersionLocalService getWrappedDLFileVersionLocalService() { 420 return _dlFileVersionLocalService; 421 } 422 423 /** 424 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 425 */ 426 public void setWrappedDLFileVersionLocalService( 427 DLFileVersionLocalService dlFileVersionLocalService) { 428 _dlFileVersionLocalService = dlFileVersionLocalService; 429 } 430 431 @Override 432 public DLFileVersionLocalService getWrappedService() { 433 return _dlFileVersionLocalService; 434 } 435 436 @Override 437 public void setWrappedService( 438 DLFileVersionLocalService dlFileVersionLocalService) { 439 _dlFileVersionLocalService = dlFileVersionLocalService; 440 } 441 442 private DLFileVersionLocalService _dlFileVersionLocalService; 443 }