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