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.trash.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 TrashEntryLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see TrashEntryLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class TrashEntryLocalServiceWrapper implements TrashEntryLocalService, 030 ServiceWrapper<TrashEntryLocalService> { 031 public TrashEntryLocalServiceWrapper( 032 TrashEntryLocalService trashEntryLocalService) { 033 _trashEntryLocalService = trashEntryLocalService; 034 } 035 036 @Override 037 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 038 return _trashEntryLocalService.getActionableDynamicQuery(); 039 } 040 041 @Override 042 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 043 return _trashEntryLocalService.dynamicQuery(); 044 } 045 046 @Override 047 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 048 return _trashEntryLocalService.getIndexableActionableDynamicQuery(); 049 } 050 051 /** 052 * @throws PortalException 053 */ 054 @Override 055 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 056 com.liferay.portal.kernel.model.PersistedModel persistedModel) 057 throws com.liferay.portal.kernel.exception.PortalException { 058 return _trashEntryLocalService.deletePersistedModel(persistedModel); 059 } 060 061 @Override 062 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 063 java.io.Serializable primaryKeyObj) 064 throws com.liferay.portal.kernel.exception.PortalException { 065 return _trashEntryLocalService.getPersistedModel(primaryKeyObj); 066 } 067 068 @Override 069 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.trash.kernel.model.TrashEntry> searchTrashEntries( 070 long companyId, long groupId, long userId, java.lang.String keywords, 071 int start, int end, com.liferay.portal.kernel.search.Sort sort) { 072 return _trashEntryLocalService.searchTrashEntries(companyId, groupId, 073 userId, keywords, start, end, sort); 074 } 075 076 @Override 077 public com.liferay.portal.kernel.search.Hits search(long companyId, 078 long groupId, long userId, java.lang.String keywords, int start, 079 int end, com.liferay.portal.kernel.search.Sort sort) { 080 return _trashEntryLocalService.search(companyId, groupId, userId, 081 keywords, start, end, sort); 082 } 083 084 /** 085 * Adds the trash entry to the database. Also notifies the appropriate model listeners. 086 * 087 * @param trashEntry the trash entry 088 * @return the trash entry that was added 089 */ 090 @Override 091 public com.liferay.trash.kernel.model.TrashEntry addTrashEntry( 092 com.liferay.trash.kernel.model.TrashEntry trashEntry) { 093 return _trashEntryLocalService.addTrashEntry(trashEntry); 094 } 095 096 /** 097 * Moves an entry to trash. 098 * 099 * @param userId the primary key of the user removing the entity 100 * @param groupId the primary key of the entry's group 101 * @param className the class name of the entity 102 * @param classPK the primary key of the entity 103 * @param classUuid the UUID of the entity's class 104 * @param referrerClassName the referrer class name used to add a deletion 105 {@link SystemEvent} 106 * @param status the status of the entity prior to being moved to trash 107 * @param statusOVPs the primary keys and statuses of any of the entry's 108 versions (e.g., {@link 109 com.liferay.portlet.documentlibrary.model.DLFileVersion}) 110 * @param typeSettingsProperties the type settings properties 111 * @return the trashEntry 112 */ 113 @Override 114 public com.liferay.trash.kernel.model.TrashEntry addTrashEntry( 115 long userId, long groupId, java.lang.String className, long classPK, 116 java.lang.String classUuid, java.lang.String referrerClassName, 117 int status, 118 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.Integer>> statusOVPs, 119 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) 120 throws com.liferay.portal.kernel.exception.PortalException { 121 return _trashEntryLocalService.addTrashEntry(userId, groupId, 122 className, classPK, classUuid, referrerClassName, status, 123 statusOVPs, typeSettingsProperties); 124 } 125 126 /** 127 * Creates a new trash entry with the primary key. Does not add the trash entry to the database. 128 * 129 * @param entryId the primary key for the new trash entry 130 * @return the new trash entry 131 */ 132 @Override 133 public com.liferay.trash.kernel.model.TrashEntry createTrashEntry( 134 long entryId) { 135 return _trashEntryLocalService.createTrashEntry(entryId); 136 } 137 138 @Override 139 public com.liferay.trash.kernel.model.TrashEntry deleteEntry( 140 com.liferay.trash.kernel.model.TrashEntry trashEntry) { 141 return _trashEntryLocalService.deleteEntry(trashEntry); 142 } 143 144 /** 145 * Deletes the trash entry with the entity class name and primary key. 146 * 147 * @param className the class name of entity 148 * @param classPK the primary key of the entry 149 * @return the trash entry with the entity class name and primary key 150 */ 151 @Override 152 public com.liferay.trash.kernel.model.TrashEntry deleteEntry( 153 java.lang.String className, long classPK) { 154 return _trashEntryLocalService.deleteEntry(className, classPK); 155 } 156 157 /** 158 * Deletes the trash entry with the primary key. 159 * 160 * @param entryId the primary key of the trash entry 161 * @return the trash entry with the primary key 162 */ 163 @Override 164 public com.liferay.trash.kernel.model.TrashEntry deleteEntry(long entryId) { 165 return _trashEntryLocalService.deleteEntry(entryId); 166 } 167 168 /** 169 * Deletes the trash entry from the database. Also notifies the appropriate model listeners. 170 * 171 * @param trashEntry the trash entry 172 * @return the trash entry that was removed 173 */ 174 @Override 175 public com.liferay.trash.kernel.model.TrashEntry deleteTrashEntry( 176 com.liferay.trash.kernel.model.TrashEntry trashEntry) { 177 return _trashEntryLocalService.deleteTrashEntry(trashEntry); 178 } 179 180 /** 181 * Deletes the trash entry with the primary key from the database. Also notifies the appropriate model listeners. 182 * 183 * @param entryId the primary key of the trash entry 184 * @return the trash entry that was removed 185 * @throws PortalException if a trash entry with the primary key could not be found 186 */ 187 @Override 188 public com.liferay.trash.kernel.model.TrashEntry deleteTrashEntry( 189 long entryId) 190 throws com.liferay.portal.kernel.exception.PortalException { 191 return _trashEntryLocalService.deleteTrashEntry(entryId); 192 } 193 194 /** 195 * Returns the trash entry with the entity class name and primary key. 196 * 197 * @param className the class name of the entity 198 * @param classPK the primary key of the entity 199 * @return the trash entry with the entity class name and primary key 200 */ 201 @Override 202 public com.liferay.trash.kernel.model.TrashEntry fetchEntry( 203 java.lang.String className, long classPK) { 204 return _trashEntryLocalService.fetchEntry(className, classPK); 205 } 206 207 /** 208 * Returns the trash entry with the primary key. 209 * 210 * @param entryId the primary key of the entry 211 * @return the trash entry with the primary key 212 */ 213 @Override 214 public com.liferay.trash.kernel.model.TrashEntry fetchEntry(long entryId) { 215 return _trashEntryLocalService.fetchEntry(entryId); 216 } 217 218 @Override 219 public com.liferay.trash.kernel.model.TrashEntry fetchTrashEntry( 220 long entryId) { 221 return _trashEntryLocalService.fetchTrashEntry(entryId); 222 } 223 224 /** 225 * Returns the entry with the entity class name and primary key. 226 * 227 * @param className the class name of the entity 228 * @param classPK the primary key of the entity 229 * @return the trash entry with the entity class name and primary key 230 */ 231 @Override 232 public com.liferay.trash.kernel.model.TrashEntry getEntry( 233 java.lang.String className, long classPK) 234 throws com.liferay.portal.kernel.exception.PortalException { 235 return _trashEntryLocalService.getEntry(className, classPK); 236 } 237 238 /** 239 * Returns the trash entry with the primary key. 240 * 241 * @param entryId the primary key of the trash entry 242 * @return the trash entry with the primary key 243 */ 244 @Override 245 public com.liferay.trash.kernel.model.TrashEntry getEntry(long entryId) 246 throws com.liferay.portal.kernel.exception.PortalException { 247 return _trashEntryLocalService.getEntry(entryId); 248 } 249 250 /** 251 * Returns the trash entry with the primary key. 252 * 253 * @param entryId the primary key of the trash entry 254 * @return the trash entry 255 * @throws PortalException if a trash entry with the primary key could not be found 256 */ 257 @Override 258 public com.liferay.trash.kernel.model.TrashEntry getTrashEntry(long entryId) 259 throws com.liferay.portal.kernel.exception.PortalException { 260 return _trashEntryLocalService.getTrashEntry(entryId); 261 } 262 263 /** 264 * Updates the trash entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 265 * 266 * @param trashEntry the trash entry 267 * @return the trash entry that was updated 268 */ 269 @Override 270 public com.liferay.trash.kernel.model.TrashEntry updateTrashEntry( 271 com.liferay.trash.kernel.model.TrashEntry trashEntry) { 272 return _trashEntryLocalService.updateTrashEntry(trashEntry); 273 } 274 275 /** 276 * Returns the number of trash entries with the group ID. 277 * 278 * @param groupId the primary key of the group 279 * @return the number of matching trash entries 280 */ 281 @Override 282 public int getEntriesCount(long groupId) { 283 return _trashEntryLocalService.getEntriesCount(groupId); 284 } 285 286 /** 287 * Returns the number of trash entries. 288 * 289 * @return the number of trash entries 290 */ 291 @Override 292 public int getTrashEntriesCount() { 293 return _trashEntryLocalService.getTrashEntriesCount(); 294 } 295 296 /** 297 * Returns the OSGi service identifier. 298 * 299 * @return the OSGi service identifier 300 */ 301 @Override 302 public java.lang.String getOSGiServiceIdentifier() { 303 return _trashEntryLocalService.getOSGiServiceIdentifier(); 304 } 305 306 /** 307 * Performs a dynamic query on the database and returns the matching rows. 308 * 309 * @param dynamicQuery the dynamic query 310 * @return the matching rows 311 */ 312 @Override 313 public <T> java.util.List<T> dynamicQuery( 314 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 315 return _trashEntryLocalService.dynamicQuery(dynamicQuery); 316 } 317 318 /** 319 * Performs a dynamic query on the database and returns a range of the matching rows. 320 * 321 * <p> 322 * 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.trash.model.impl.TrashEntryModelImpl}. 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. 323 * </p> 324 * 325 * @param dynamicQuery the dynamic query 326 * @param start the lower bound of the range of model instances 327 * @param end the upper bound of the range of model instances (not inclusive) 328 * @return the range of matching rows 329 */ 330 @Override 331 public <T> java.util.List<T> dynamicQuery( 332 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 333 int end) { 334 return _trashEntryLocalService.dynamicQuery(dynamicQuery, start, end); 335 } 336 337 /** 338 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 339 * 340 * <p> 341 * 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.trash.model.impl.TrashEntryModelImpl}. 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. 342 * </p> 343 * 344 * @param dynamicQuery the dynamic query 345 * @param start the lower bound of the range of model instances 346 * @param end the upper bound of the range of model instances (not inclusive) 347 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 348 * @return the ordered range of matching rows 349 */ 350 @Override 351 public <T> java.util.List<T> dynamicQuery( 352 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 353 int end, 354 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 355 return _trashEntryLocalService.dynamicQuery(dynamicQuery, start, end, 356 orderByComparator); 357 } 358 359 /** 360 * Returns the trash entries with the matching group ID. 361 * 362 * @param groupId the primary key of the group 363 * @return the trash entries with the group ID 364 */ 365 @Override 366 public java.util.List<com.liferay.trash.kernel.model.TrashEntry> getEntries( 367 long groupId) { 368 return _trashEntryLocalService.getEntries(groupId); 369 } 370 371 /** 372 * Returns a range of all the trash entries matching the group ID. 373 * 374 * @param groupId the primary key of the group 375 * @param start the lower bound of the range of trash entries to return 376 * @param end the upper bound of the range of trash entries to return (not 377 inclusive) 378 * @return the range of matching trash entries 379 */ 380 @Override 381 public java.util.List<com.liferay.trash.kernel.model.TrashEntry> getEntries( 382 long groupId, int start, int end) { 383 return _trashEntryLocalService.getEntries(groupId, start, end); 384 } 385 386 /** 387 * Returns a range of all the trash entries matching the group ID. 388 * 389 * @param groupId the primary key of the group 390 * @param start the lower bound of the range of trash entries to return 391 * @param end the upper bound of the range of trash entries to return (not 392 inclusive) 393 * @param obc the comparator to order the trash entries (optionally 394 <code>null</code>) 395 * @return the range of matching trash entries ordered by comparator 396 <code>obc</code> 397 */ 398 @Override 399 public java.util.List<com.liferay.trash.kernel.model.TrashEntry> getEntries( 400 long groupId, int start, int end, 401 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.trash.kernel.model.TrashEntry> obc) { 402 return _trashEntryLocalService.getEntries(groupId, start, end, obc); 403 } 404 405 @Override 406 public java.util.List<com.liferay.trash.kernel.model.TrashEntry> getEntries( 407 long groupId, java.lang.String className) { 408 return _trashEntryLocalService.getEntries(groupId, className); 409 } 410 411 /** 412 * Returns a range of all the trash entries. 413 * 414 * <p> 415 * 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.trash.model.impl.TrashEntryModelImpl}. 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. 416 * </p> 417 * 418 * @param start the lower bound of the range of trash entries 419 * @param end the upper bound of the range of trash entries (not inclusive) 420 * @return the range of trash entries 421 */ 422 @Override 423 public java.util.List<com.liferay.trash.kernel.model.TrashEntry> getTrashEntries( 424 int start, int end) { 425 return _trashEntryLocalService.getTrashEntries(start, end); 426 } 427 428 /** 429 * Returns the number of rows matching the dynamic query. 430 * 431 * @param dynamicQuery the dynamic query 432 * @return the number of rows matching the dynamic query 433 */ 434 @Override 435 public long dynamicQueryCount( 436 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 437 return _trashEntryLocalService.dynamicQueryCount(dynamicQuery); 438 } 439 440 /** 441 * Returns the number of rows matching the dynamic query. 442 * 443 * @param dynamicQuery the dynamic query 444 * @param projection the projection to apply to the query 445 * @return the number of rows matching the dynamic query 446 */ 447 @Override 448 public long dynamicQueryCount( 449 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 450 com.liferay.portal.kernel.dao.orm.Projection projection) { 451 return _trashEntryLocalService.dynamicQueryCount(dynamicQuery, 452 projection); 453 } 454 455 @Override 456 public void checkEntries() 457 throws com.liferay.portal.kernel.exception.PortalException { 458 _trashEntryLocalService.checkEntries(); 459 } 460 461 @Override 462 public void deleteEntries(long groupId) { 463 _trashEntryLocalService.deleteEntries(groupId); 464 } 465 466 @Override 467 public TrashEntryLocalService getWrappedService() { 468 return _trashEntryLocalService; 469 } 470 471 @Override 472 public void setWrappedService(TrashEntryLocalService trashEntryLocalService) { 473 _trashEntryLocalService = trashEntryLocalService; 474 } 475 476 private TrashEntryLocalService _trashEntryLocalService; 477 }