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 @Override 225 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 226 return _trashVersionLocalService.getIndexableActionableDynamicQuery(); 227 } 228 229 /** 230 * Returns the OSGi service identifier. 231 * 232 * @return the OSGi service identifier 233 */ 234 @Override 235 public java.lang.String getOSGiServiceIdentifier() { 236 return _trashVersionLocalService.getOSGiServiceIdentifier(); 237 } 238 239 @Override 240 public com.liferay.portal.model.PersistedModel getPersistedModel( 241 java.io.Serializable primaryKeyObj) 242 throws com.liferay.portal.kernel.exception.PortalException { 243 return _trashVersionLocalService.getPersistedModel(primaryKeyObj); 244 } 245 246 /** 247 * Returns the trash version with the primary key. 248 * 249 * @param versionId the primary key of the trash version 250 * @return the trash version 251 * @throws PortalException if a trash version with the primary key could not be found 252 */ 253 @Override 254 public com.liferay.portlet.trash.model.TrashVersion getTrashVersion( 255 long versionId) 256 throws com.liferay.portal.kernel.exception.PortalException { 257 return _trashVersionLocalService.getTrashVersion(versionId); 258 } 259 260 /** 261 * Returns a range of all the trash versions. 262 * 263 * <p> 264 * 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. 265 * </p> 266 * 267 * @param start the lower bound of the range of trash versions 268 * @param end the upper bound of the range of trash versions (not inclusive) 269 * @return the range of trash versions 270 */ 271 @Override 272 public java.util.List<com.liferay.portlet.trash.model.TrashVersion> getTrashVersions( 273 int start, int end) { 274 return _trashVersionLocalService.getTrashVersions(start, end); 275 } 276 277 /** 278 * Returns the number of trash versions. 279 * 280 * @return the number of trash versions 281 */ 282 @Override 283 public int getTrashVersionsCount() { 284 return _trashVersionLocalService.getTrashVersionsCount(); 285 } 286 287 @Override 288 public java.util.List<com.liferay.portlet.trash.model.TrashVersion> getVersions( 289 long entryId) { 290 return _trashVersionLocalService.getVersions(entryId); 291 } 292 293 @Override 294 public java.util.List<com.liferay.portlet.trash.model.TrashVersion> getVersions( 295 long entryId, java.lang.String className) { 296 return _trashVersionLocalService.getVersions(entryId, className); 297 } 298 299 /** 300 * Updates the trash version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 301 * 302 * @param trashVersion the trash version 303 * @return the trash version that was updated 304 */ 305 @Override 306 public com.liferay.portlet.trash.model.TrashVersion updateTrashVersion( 307 com.liferay.portlet.trash.model.TrashVersion trashVersion) { 308 return _trashVersionLocalService.updateTrashVersion(trashVersion); 309 } 310 311 @Override 312 public TrashVersionLocalService getWrappedService() { 313 return _trashVersionLocalService; 314 } 315 316 @Override 317 public void setWrappedService( 318 TrashVersionLocalService trashVersionLocalService) { 319 _trashVersionLocalService = trashVersionLocalService; 320 } 321 322 private TrashVersionLocalService _trashVersionLocalService; 323 }