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.trash.service; 016 017 import com.liferay.portal.service.ServiceWrapper; 018 019 /** 020 * <p> 021 * This class is a wrapper for {@link TrashEntryService}. 022 * </p> 023 * 024 * @author Brian Wing Shun Chan 025 * @see TrashEntryService 026 * @generated 027 */ 028 public class TrashEntryServiceWrapper implements TrashEntryService, 029 ServiceWrapper<TrashEntryService> { 030 public TrashEntryServiceWrapper(TrashEntryService trashEntryService) { 031 _trashEntryService = trashEntryService; 032 } 033 034 /** 035 * Returns the Spring bean ID for this bean. 036 * 037 * @return the Spring bean ID for this bean 038 */ 039 public java.lang.String getBeanIdentifier() { 040 return _trashEntryService.getBeanIdentifier(); 041 } 042 043 /** 044 * Sets the Spring bean ID for this bean. 045 * 046 * @param beanIdentifier the Spring bean ID for this bean 047 */ 048 public void setBeanIdentifier(java.lang.String beanIdentifier) { 049 _trashEntryService.setBeanIdentifier(beanIdentifier); 050 } 051 052 /** 053 * Deletes the trash entries with the matching group ID considering 054 * permissions. 055 * 056 * @param groupId the primary key of the group 057 * @throws PrincipalException if a principal exception occurred 058 * @throws SystemException if a system exception occurred 059 */ 060 public void deleteEntries(long groupId) 061 throws com.liferay.portal.kernel.exception.SystemException, 062 com.liferay.portal.security.auth.PrincipalException { 063 _trashEntryService.deleteEntries(groupId); 064 } 065 066 /** 067 * Returns the trash entries with the matching group ID. 068 * 069 * @param groupId the primary key of the group 070 * @return the matching trash entries 071 * @throws PrincipalException if a principal exception occurred 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.trash.model.TrashEntryList getEntries( 075 long groupId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portal.security.auth.PrincipalException { 078 return _trashEntryService.getEntries(groupId); 079 } 080 081 /** 082 * Returns a range of all the trash entries matching the group ID. 083 * 084 * @param groupId the primary key of the group 085 * @param start the lower bound of the range of trash entries to return 086 * @param end the upper bound of the range of trash entries to return (not 087 inclusive) 088 * @param obc the comparator to order the trash entries (optionally 089 <code>null</code>) 090 * @return the range of matching trash entries ordered by comparator 091 <code>obc</code> 092 * @throws PrincipalException if a system exception occurred 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.trash.model.TrashEntryList getEntries( 096 long groupId, int start, int end, 097 com.liferay.portal.kernel.util.OrderByComparator obc) 098 throws com.liferay.portal.kernel.exception.SystemException, 099 com.liferay.portal.security.auth.PrincipalException { 100 return _trashEntryService.getEntries(groupId, start, end, obc); 101 } 102 103 /** 104 * @deprecated Renamed to {@link #getWrappedService} 105 */ 106 public TrashEntryService getWrappedTrashEntryService() { 107 return _trashEntryService; 108 } 109 110 /** 111 * @deprecated Renamed to {@link #setWrappedService} 112 */ 113 public void setWrappedTrashEntryService(TrashEntryService trashEntryService) { 114 _trashEntryService = trashEntryService; 115 } 116 117 public TrashEntryService getWrappedService() { 118 return _trashEntryService; 119 } 120 121 public void setWrappedService(TrashEntryService trashEntryService) { 122 _trashEntryService = trashEntryService; 123 } 124 125 private TrashEntryService _trashEntryService; 126 }