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.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 TrashVersionLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see TrashVersionLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class TrashVersionLocalServiceWrapper implements TrashVersionLocalService, 030 ServiceWrapper<TrashVersionLocalService> { 031 public TrashVersionLocalServiceWrapper( 032 TrashVersionLocalService trashVersionLocalService) { 033 _trashVersionLocalService = trashVersionLocalService; 034 } 035 036 @Override 037 public com.liferay.portlet.trash.model.TrashVersion addTrashVersion( 038 long trashEntryId, java.lang.String className, long classPK, 039 int status, 040 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) { 041 return _trashVersionLocalService.addTrashVersion(trashEntryId, 042 className, classPK, status, typeSettingsProperties); 043 } 044 045 /** 046 * Adds the trash version to the database. Also notifies the appropriate model listeners. 047 * 048 * @param trashVersion the trash version 049 * @return the trash version that was added 050 */ 051 @Override 052 public com.liferay.portlet.trash.model.TrashVersion addTrashVersion( 053 com.liferay.portlet.trash.model.TrashVersion trashVersion) { 054 return _trashVersionLocalService.addTrashVersion(trashVersion); 055 } 056 057 /** 058 * Creates a new trash version with the primary key. Does not add the trash version to the database. 059 * 060 * @param versionId the primary key for the new trash version 061 * @return the new trash version 062 */ 063 @Override 064 public com.liferay.portlet.trash.model.TrashVersion createTrashVersion( 065 long versionId) { 066 return _trashVersionLocalService.createTrashVersion(versionId); 067 } 068 069 /** 070 * @throws PortalException 071 */ 072 @Override 073 public com.liferay.portal.model.PersistedModel deletePersistedModel( 074 com.liferay.portal.model.PersistedModel persistedModel) 075 throws com.liferay.portal.kernel.exception.PortalException { 076 return _trashVersionLocalService.deletePersistedModel(persistedModel); 077 } 078 079 @Override 080 public com.liferay.portlet.trash.model.TrashVersion deleteTrashVersion( 081 java.lang.String className, long classPK) { 082 return _trashVersionLocalService.deleteTrashVersion(className, classPK); 083 } 084 085 /** 086 * Deletes the trash version from the database. Also notifies the appropriate model listeners. 087 * 088 * @param trashVersion the trash version 089 * @return the trash version that was removed 090 */ 091 @Override 092 public com.liferay.portlet.trash.model.TrashVersion deleteTrashVersion( 093 com.liferay.portlet.trash.model.TrashVersion trashVersion) { 094 return _trashVersionLocalService.deleteTrashVersion(trashVersion); 095 } 096 097 /** 098 * Deletes the trash version with the primary key from the database. Also notifies the appropriate model listeners. 099 * 100 * @param versionId the primary key of the trash version 101 * @return the trash version that was removed 102 * @throws PortalException if a trash version with the primary key could not be found 103 */ 104 @Override 105 public com.liferay.portlet.trash.model.TrashVersion deleteTrashVersion( 106 long versionId) 107 throws com.liferay.portal.kernel.exception.PortalException { 108 return _trashVersionLocalService.deleteTrashVersion(versionId); 109 } 110 111 @Override 112 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 113 return _trashVersionLocalService.dynamicQuery(); 114 } 115 116 /** 117 * Performs a dynamic query on the database and returns the matching rows. 118 * 119 * @param dynamicQuery the dynamic query 120 * @return the matching rows 121 */ 122 @Override 123 public <T> java.util.List<T> dynamicQuery( 124 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 125 return _trashVersionLocalService.dynamicQuery(dynamicQuery); 126 } 127 128 /** 129 * Performs a dynamic query on the database and returns a range of the matching rows. 130 * 131 * <p> 132 * 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.TrashVersionModelImpl}. 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. 133 * </p> 134 * 135 * @param dynamicQuery the dynamic query 136 * @param start the lower bound of the range of model instances 137 * @param end the upper bound of the range of model instances (not inclusive) 138 * @return the range of matching rows 139 */ 140 @Override 141 public <T> java.util.List<T> dynamicQuery( 142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 143 int end) { 144 return _trashVersionLocalService.dynamicQuery(dynamicQuery, start, end); 145 } 146 147 /** 148 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 149 * 150 * <p> 151 * 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.TrashVersionModelImpl}. 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. 152 * </p> 153 * 154 * @param dynamicQuery the dynamic query 155 * @param start the lower bound of the range of model instances 156 * @param end the upper bound of the range of model instances (not inclusive) 157 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 158 * @return the ordered range of matching rows 159 */ 160 @Override 161 public <T> java.util.List<T> dynamicQuery( 162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 163 int end, 164 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 165 return _trashVersionLocalService.dynamicQuery(dynamicQuery, start, end, 166 orderByComparator); 167 } 168 169 /** 170 * Returns the number of rows matching the dynamic query. 171 * 172 * @param dynamicQuery the dynamic query 173 * @return the number of rows matching the dynamic query 174 */ 175 @Override 176 public long dynamicQueryCount( 177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 178 return _trashVersionLocalService.dynamicQueryCount(dynamicQuery); 179 } 180 181 /** 182 * Returns the number of rows matching the dynamic query. 183 * 184 * @param dynamicQuery the dynamic query 185 * @param projection the projection to apply to the query 186 * @return the number of rows matching the dynamic query 187 */ 188 @Override 189 public long dynamicQueryCount( 190 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 191 com.liferay.portal.kernel.dao.orm.Projection projection) { 192 return _trashVersionLocalService.dynamicQueryCount(dynamicQuery, 193 projection); 194 } 195 196 @Override 197 public com.liferay.portlet.trash.model.TrashVersion fetchTrashVersion( 198 long versionId) { 199 return _trashVersionLocalService.fetchTrashVersion(versionId); 200 } 201 202 @Override 203 public com.liferay.portlet.trash.model.TrashVersion fetchVersion( 204 java.lang.String className, long classPK) { 205 return _trashVersionLocalService.fetchVersion(className, classPK); 206 } 207 208 /** 209 * @deprecated As of 7.0.0, replaced by {@link #fetchVersion(String, long)} 210 */ 211 @Deprecated 212 @Override 213 public com.liferay.portlet.trash.model.TrashVersion fetchVersion( 214 long entryId, java.lang.String className, long classPK) { 215 return _trashVersionLocalService.fetchVersion(entryId, className, 216 classPK); 217 } 218 219 @Override 220 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 221 return _trashVersionLocalService.getActionableDynamicQuery(); 222 } 223 224 /** 225 * Returns the Spring bean ID for this bean. 226 * 227 * @return the Spring bean ID for this bean 228 */ 229 @Override 230 public java.lang.String getBeanIdentifier() { 231 return _trashVersionLocalService.getBeanIdentifier(); 232 } 233 234 @Override 235 public com.liferay.portal.model.PersistedModel getPersistedModel( 236 java.io.Serializable primaryKeyObj) 237 throws com.liferay.portal.kernel.exception.PortalException { 238 return _trashVersionLocalService.getPersistedModel(primaryKeyObj); 239 } 240 241 /** 242 * Returns the trash version with the primary key. 243 * 244 * @param versionId the primary key of the trash version 245 * @return the trash version 246 * @throws PortalException if a trash version with the primary key could not be found 247 */ 248 @Override 249 public com.liferay.portlet.trash.model.TrashVersion getTrashVersion( 250 long versionId) 251 throws com.liferay.portal.kernel.exception.PortalException { 252 return _trashVersionLocalService.getTrashVersion(versionId); 253 } 254 255 /** 256 * Returns a range of all the trash versions. 257 * 258 * <p> 259 * 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.TrashVersionModelImpl}. 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. 260 * </p> 261 * 262 * @param start the lower bound of the range of trash versions 263 * @param end the upper bound of the range of trash versions (not inclusive) 264 * @return the range of trash versions 265 */ 266 @Override 267 public java.util.List<com.liferay.portlet.trash.model.TrashVersion> getTrashVersions( 268 int start, int end) { 269 return _trashVersionLocalService.getTrashVersions(start, end); 270 } 271 272 /** 273 * Returns the number of trash versions. 274 * 275 * @return the number of trash versions 276 */ 277 @Override 278 public int getTrashVersionsCount() { 279 return _trashVersionLocalService.getTrashVersionsCount(); 280 } 281 282 @Override 283 public java.util.List<com.liferay.portlet.trash.model.TrashVersion> getVersions( 284 long entryId) { 285 return _trashVersionLocalService.getVersions(entryId); 286 } 287 288 @Override 289 public java.util.List<com.liferay.portlet.trash.model.TrashVersion> getVersions( 290 long entryId, java.lang.String className) { 291 return _trashVersionLocalService.getVersions(entryId, className); 292 } 293 294 /** 295 * Sets the Spring bean ID for this bean. 296 * 297 * @param beanIdentifier the Spring bean ID for this bean 298 */ 299 @Override 300 public void setBeanIdentifier(java.lang.String beanIdentifier) { 301 _trashVersionLocalService.setBeanIdentifier(beanIdentifier); 302 } 303 304 /** 305 * Updates the trash version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 306 * 307 * @param trashVersion the trash version 308 * @return the trash version that was updated 309 */ 310 @Override 311 public com.liferay.portlet.trash.model.TrashVersion updateTrashVersion( 312 com.liferay.portlet.trash.model.TrashVersion trashVersion) { 313 return _trashVersionLocalService.updateTrashVersion(trashVersion); 314 } 315 316 /** 317 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 318 */ 319 @Deprecated 320 public TrashVersionLocalService getWrappedTrashVersionLocalService() { 321 return _trashVersionLocalService; 322 } 323 324 /** 325 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 326 */ 327 @Deprecated 328 public void setWrappedTrashVersionLocalService( 329 TrashVersionLocalService trashVersionLocalService) { 330 _trashVersionLocalService = trashVersionLocalService; 331 } 332 333 @Override 334 public TrashVersionLocalService getWrappedService() { 335 return _trashVersionLocalService; 336 } 337 338 @Override 339 public void setWrappedService( 340 TrashVersionLocalService trashVersionLocalService) { 341 _trashVersionLocalService = trashVersionLocalService; 342 } 343 344 private TrashVersionLocalService _trashVersionLocalService; 345 }