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