001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link DLFileRankLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DLFileRankLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class DLFileRankLocalServiceWrapper implements DLFileRankLocalService, 030 ServiceWrapper<DLFileRankLocalService> { 031 public DLFileRankLocalServiceWrapper( 032 DLFileRankLocalService dlFileRankLocalService) { 033 _dlFileRankLocalService = dlFileRankLocalService; 034 } 035 036 /** 037 * Adds the document library file rank to the database. Also notifies the appropriate model listeners. 038 * 039 * @param dlFileRank the document library file rank 040 * @return the document library file rank that was added 041 */ 042 @Override 043 public com.liferay.portlet.documentlibrary.model.DLFileRank addDLFileRank( 044 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 045 return _dlFileRankLocalService.addDLFileRank(dlFileRank); 046 } 047 048 @Override 049 public com.liferay.portlet.documentlibrary.model.DLFileRank addFileRank( 050 long groupId, long companyId, long userId, long fileEntryId, 051 com.liferay.portal.service.ServiceContext serviceContext) { 052 return _dlFileRankLocalService.addFileRank(groupId, companyId, userId, 053 fileEntryId, serviceContext); 054 } 055 056 @Override 057 public void checkFileRanks() { 058 _dlFileRankLocalService.checkFileRanks(); 059 } 060 061 /** 062 * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database. 063 * 064 * @param fileRankId the primary key for the new document library file rank 065 * @return the new document library file rank 066 */ 067 @Override 068 public com.liferay.portlet.documentlibrary.model.DLFileRank createDLFileRank( 069 long fileRankId) { 070 return _dlFileRankLocalService.createDLFileRank(fileRankId); 071 } 072 073 /** 074 * Deletes the document library file rank from the database. Also notifies the appropriate model listeners. 075 * 076 * @param dlFileRank the document library file rank 077 * @return the document library file rank that was removed 078 */ 079 @Override 080 public com.liferay.portlet.documentlibrary.model.DLFileRank deleteDLFileRank( 081 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 082 return _dlFileRankLocalService.deleteDLFileRank(dlFileRank); 083 } 084 085 /** 086 * Deletes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners. 087 * 088 * @param fileRankId the primary key of the document library file rank 089 * @return the document library file rank that was removed 090 * @throws PortalException if a document library file rank with the primary key could not be found 091 */ 092 @Override 093 public com.liferay.portlet.documentlibrary.model.DLFileRank deleteDLFileRank( 094 long fileRankId) 095 throws com.liferay.portal.kernel.exception.PortalException { 096 return _dlFileRankLocalService.deleteDLFileRank(fileRankId); 097 } 098 099 @Override 100 public void deleteFileRank( 101 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 102 _dlFileRankLocalService.deleteFileRank(dlFileRank); 103 } 104 105 @Override 106 public void deleteFileRank(long fileRankId) 107 throws com.liferay.portal.kernel.exception.PortalException { 108 _dlFileRankLocalService.deleteFileRank(fileRankId); 109 } 110 111 @Override 112 public void deleteFileRanksByFileEntryId(long fileEntryId) { 113 _dlFileRankLocalService.deleteFileRanksByFileEntryId(fileEntryId); 114 } 115 116 @Override 117 public void deleteFileRanksByUserId(long userId) { 118 _dlFileRankLocalService.deleteFileRanksByUserId(userId); 119 } 120 121 /** 122 * @throws PortalException 123 */ 124 @Override 125 public com.liferay.portal.model.PersistedModel deletePersistedModel( 126 com.liferay.portal.model.PersistedModel persistedModel) 127 throws com.liferay.portal.kernel.exception.PortalException { 128 return _dlFileRankLocalService.deletePersistedModel(persistedModel); 129 } 130 131 @Override 132 public void disableFileRanks(long fileEntryId) { 133 _dlFileRankLocalService.disableFileRanks(fileEntryId); 134 } 135 136 @Override 137 public void disableFileRanksByFolderId(long folderId) 138 throws com.liferay.portal.kernel.exception.PortalException { 139 _dlFileRankLocalService.disableFileRanksByFolderId(folderId); 140 } 141 142 @Override 143 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 144 return _dlFileRankLocalService.dynamicQuery(); 145 } 146 147 /** 148 * Performs a dynamic query on the database and returns the matching rows. 149 * 150 * @param dynamicQuery the dynamic query 151 * @return the matching rows 152 */ 153 @Override 154 public <T> java.util.List<T> dynamicQuery( 155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 156 return _dlFileRankLocalService.dynamicQuery(dynamicQuery); 157 } 158 159 /** 160 * Performs a dynamic query on the database and returns a range of the matching rows. 161 * 162 * <p> 163 * 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.DLFileRankModelImpl}. 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. 164 * </p> 165 * 166 * @param dynamicQuery the dynamic query 167 * @param start the lower bound of the range of model instances 168 * @param end the upper bound of the range of model instances (not inclusive) 169 * @return the range of matching rows 170 */ 171 @Override 172 public <T> java.util.List<T> dynamicQuery( 173 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 174 int end) { 175 return _dlFileRankLocalService.dynamicQuery(dynamicQuery, start, end); 176 } 177 178 /** 179 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 180 * 181 * <p> 182 * 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.DLFileRankModelImpl}. 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. 183 * </p> 184 * 185 * @param dynamicQuery the dynamic query 186 * @param start the lower bound of the range of model instances 187 * @param end the upper bound of the range of model instances (not inclusive) 188 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 189 * @return the ordered range of matching rows 190 */ 191 @Override 192 public <T> java.util.List<T> dynamicQuery( 193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 194 int end, 195 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 196 return _dlFileRankLocalService.dynamicQuery(dynamicQuery, start, end, 197 orderByComparator); 198 } 199 200 /** 201 * Returns the number of rows matching the dynamic query. 202 * 203 * @param dynamicQuery the dynamic query 204 * @return the number of rows matching the dynamic query 205 */ 206 @Override 207 public long dynamicQueryCount( 208 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 209 return _dlFileRankLocalService.dynamicQueryCount(dynamicQuery); 210 } 211 212 /** 213 * Returns the number of rows matching the dynamic query. 214 * 215 * @param dynamicQuery the dynamic query 216 * @param projection the projection to apply to the query 217 * @return the number of rows matching the dynamic query 218 */ 219 @Override 220 public long dynamicQueryCount( 221 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 222 com.liferay.portal.kernel.dao.orm.Projection projection) { 223 return _dlFileRankLocalService.dynamicQueryCount(dynamicQuery, 224 projection); 225 } 226 227 @Override 228 public void enableFileRanks(long fileEntryId) { 229 _dlFileRankLocalService.enableFileRanks(fileEntryId); 230 } 231 232 @Override 233 public void enableFileRanksByFolderId(long folderId) 234 throws com.liferay.portal.kernel.exception.PortalException { 235 _dlFileRankLocalService.enableFileRanksByFolderId(folderId); 236 } 237 238 @Override 239 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchDLFileRank( 240 long fileRankId) { 241 return _dlFileRankLocalService.fetchDLFileRank(fileRankId); 242 } 243 244 @Override 245 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 246 return _dlFileRankLocalService.getActionableDynamicQuery(); 247 } 248 249 /** 250 * Returns the Spring bean ID for this bean. 251 * 252 * @return the Spring bean ID for this bean 253 */ 254 @Override 255 public java.lang.String getBeanIdentifier() { 256 return _dlFileRankLocalService.getBeanIdentifier(); 257 } 258 259 /** 260 * Returns the document library file rank with the primary key. 261 * 262 * @param fileRankId the primary key of the document library file rank 263 * @return the document library file rank 264 * @throws PortalException if a document library file rank with the primary key could not be found 265 */ 266 @Override 267 public com.liferay.portlet.documentlibrary.model.DLFileRank getDLFileRank( 268 long fileRankId) 269 throws com.liferay.portal.kernel.exception.PortalException { 270 return _dlFileRankLocalService.getDLFileRank(fileRankId); 271 } 272 273 /** 274 * Returns a range of all the document library file ranks. 275 * 276 * <p> 277 * 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.DLFileRankModelImpl}. 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. 278 * </p> 279 * 280 * @param start the lower bound of the range of document library file ranks 281 * @param end the upper bound of the range of document library file ranks (not inclusive) 282 * @return the range of document library file ranks 283 */ 284 @Override 285 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> getDLFileRanks( 286 int start, int end) { 287 return _dlFileRankLocalService.getDLFileRanks(start, end); 288 } 289 290 /** 291 * Returns the number of document library file ranks. 292 * 293 * @return the number of document library file ranks 294 */ 295 @Override 296 public int getDLFileRanksCount() { 297 return _dlFileRankLocalService.getDLFileRanksCount(); 298 } 299 300 @Override 301 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> getFileRanks( 302 long groupId, long userId) { 303 return _dlFileRankLocalService.getFileRanks(groupId, userId); 304 } 305 306 @Override 307 public com.liferay.portal.model.PersistedModel getPersistedModel( 308 java.io.Serializable primaryKeyObj) 309 throws com.liferay.portal.kernel.exception.PortalException { 310 return _dlFileRankLocalService.getPersistedModel(primaryKeyObj); 311 } 312 313 /** 314 * Sets the Spring bean ID for this bean. 315 * 316 * @param beanIdentifier the Spring bean ID for this bean 317 */ 318 @Override 319 public void setBeanIdentifier(java.lang.String beanIdentifier) { 320 _dlFileRankLocalService.setBeanIdentifier(beanIdentifier); 321 } 322 323 /** 324 * Updates the document library file rank in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 325 * 326 * @param dlFileRank the document library file rank 327 * @return the document library file rank that was updated 328 */ 329 @Override 330 public com.liferay.portlet.documentlibrary.model.DLFileRank updateDLFileRank( 331 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 332 return _dlFileRankLocalService.updateDLFileRank(dlFileRank); 333 } 334 335 @Override 336 public com.liferay.portlet.documentlibrary.model.DLFileRank updateFileRank( 337 long groupId, long companyId, long userId, long fileEntryId, 338 com.liferay.portal.service.ServiceContext serviceContext) { 339 return _dlFileRankLocalService.updateFileRank(groupId, companyId, 340 userId, fileEntryId, serviceContext); 341 } 342 343 /** 344 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 345 */ 346 @Deprecated 347 public DLFileRankLocalService getWrappedDLFileRankLocalService() { 348 return _dlFileRankLocalService; 349 } 350 351 /** 352 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 353 */ 354 @Deprecated 355 public void setWrappedDLFileRankLocalService( 356 DLFileRankLocalService dlFileRankLocalService) { 357 _dlFileRankLocalService = dlFileRankLocalService; 358 } 359 360 @Override 361 public DLFileRankLocalService getWrappedService() { 362 return _dlFileRankLocalService; 363 } 364 365 @Override 366 public void setWrappedService(DLFileRankLocalService dlFileRankLocalService) { 367 _dlFileRankLocalService = dlFileRankLocalService; 368 } 369 370 private DLFileRankLocalService _dlFileRankLocalService; 371 }