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