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.asset.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link AssetTagStatsLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see AssetTagStatsLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class AssetTagStatsLocalServiceWrapper 030 implements AssetTagStatsLocalService, 031 ServiceWrapper<AssetTagStatsLocalService> { 032 public AssetTagStatsLocalServiceWrapper( 033 AssetTagStatsLocalService assetTagStatsLocalService) { 034 _assetTagStatsLocalService = assetTagStatsLocalService; 035 } 036 037 /** 038 * Adds the asset tag stats to the database. Also notifies the appropriate model listeners. 039 * 040 * @param assetTagStats the asset tag stats 041 * @return the asset tag stats that was added 042 */ 043 @Override 044 public com.liferay.portlet.asset.model.AssetTagStats addAssetTagStats( 045 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) { 046 return _assetTagStatsLocalService.addAssetTagStats(assetTagStats); 047 } 048 049 /** 050 * Adds an asset tag statistics instance. 051 * 052 * @param tagId the primary key of the tag 053 * @param classNameId the asset entry's class name ID 054 * @return the asset tag statistics instance 055 */ 056 @Override 057 public com.liferay.portlet.asset.model.AssetTagStats addTagStats( 058 long tagId, long classNameId) { 059 return _assetTagStatsLocalService.addTagStats(tagId, classNameId); 060 } 061 062 /** 063 * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database. 064 * 065 * @param tagStatsId the primary key for the new asset tag stats 066 * @return the new asset tag stats 067 */ 068 @Override 069 public com.liferay.portlet.asset.model.AssetTagStats createAssetTagStats( 070 long tagStatsId) { 071 return _assetTagStatsLocalService.createAssetTagStats(tagStatsId); 072 } 073 074 /** 075 * Deletes the asset tag stats from the database. Also notifies the appropriate model listeners. 076 * 077 * @param assetTagStats the asset tag stats 078 * @return the asset tag stats that was removed 079 */ 080 @Override 081 public com.liferay.portlet.asset.model.AssetTagStats deleteAssetTagStats( 082 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) { 083 return _assetTagStatsLocalService.deleteAssetTagStats(assetTagStats); 084 } 085 086 /** 087 * Deletes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners. 088 * 089 * @param tagStatsId the primary key of the asset tag stats 090 * @return the asset tag stats that was removed 091 * @throws PortalException if a asset tag stats with the primary key could not be found 092 */ 093 @Override 094 public com.liferay.portlet.asset.model.AssetTagStats deleteAssetTagStats( 095 long tagStatsId) 096 throws com.liferay.portal.kernel.exception.PortalException { 097 return _assetTagStatsLocalService.deleteAssetTagStats(tagStatsId); 098 } 099 100 /** 101 * @throws PortalException 102 */ 103 @Override 104 public com.liferay.portal.model.PersistedModel deletePersistedModel( 105 com.liferay.portal.model.PersistedModel persistedModel) 106 throws com.liferay.portal.kernel.exception.PortalException { 107 return _assetTagStatsLocalService.deletePersistedModel(persistedModel); 108 } 109 110 /** 111 * Deletes the asset tag statistics instance. 112 * 113 * @param tagStats the asset tag statistics instance 114 */ 115 @Override 116 public void deleteTagStats( 117 com.liferay.portlet.asset.model.AssetTagStats tagStats) { 118 _assetTagStatsLocalService.deleteTagStats(tagStats); 119 } 120 121 /** 122 * Deletes the asset tag statistics instance matching the tag statistics ID. 123 * 124 * @param tagStatsId the primary key of the asset tag statistics instance 125 * @throws PortalException if the assetTagStats with the primary key could 126 not be found 127 */ 128 @Override 129 public void deleteTagStats(long tagStatsId) 130 throws com.liferay.portal.kernel.exception.PortalException { 131 _assetTagStatsLocalService.deleteTagStats(tagStatsId); 132 } 133 134 /** 135 * Deletes all asset tag statistics instances associated with the asset 136 * entry matching the class name ID. 137 * 138 * @param classNameId the asset entry's class name ID 139 */ 140 @Override 141 public void deleteTagStatsByClassNameId(long classNameId) { 142 _assetTagStatsLocalService.deleteTagStatsByClassNameId(classNameId); 143 } 144 145 /** 146 * Deletes all asset tag statistics instances associated with the tag. 147 * 148 * @param tagId the primary key of the tag 149 */ 150 @Override 151 public void deleteTagStatsByTagId(long tagId) { 152 _assetTagStatsLocalService.deleteTagStatsByTagId(tagId); 153 } 154 155 @Override 156 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 157 return _assetTagStatsLocalService.dynamicQuery(); 158 } 159 160 /** 161 * Performs a dynamic query on the database and returns the matching rows. 162 * 163 * @param dynamicQuery the dynamic query 164 * @return the matching rows 165 */ 166 @Override 167 public <T> java.util.List<T> dynamicQuery( 168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 169 return _assetTagStatsLocalService.dynamicQuery(dynamicQuery); 170 } 171 172 /** 173 * Performs a dynamic query on the database and returns a range of the matching rows. 174 * 175 * <p> 176 * 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.asset.model.impl.AssetTagStatsModelImpl}. 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. 177 * </p> 178 * 179 * @param dynamicQuery the dynamic query 180 * @param start the lower bound of the range of model instances 181 * @param end the upper bound of the range of model instances (not inclusive) 182 * @return the range of matching rows 183 */ 184 @Override 185 public <T> java.util.List<T> dynamicQuery( 186 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 187 int end) { 188 return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, end); 189 } 190 191 /** 192 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 193 * 194 * <p> 195 * 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.asset.model.impl.AssetTagStatsModelImpl}. 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. 196 * </p> 197 * 198 * @param dynamicQuery the dynamic query 199 * @param start the lower bound of the range of model instances 200 * @param end the upper bound of the range of model instances (not inclusive) 201 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 202 * @return the ordered range of matching rows 203 */ 204 @Override 205 public <T> java.util.List<T> dynamicQuery( 206 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 207 int end, 208 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 209 return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, 210 end, orderByComparator); 211 } 212 213 /** 214 * Returns the number of rows matching the dynamic query. 215 * 216 * @param dynamicQuery the dynamic query 217 * @return the number of rows matching the dynamic query 218 */ 219 @Override 220 public long dynamicQueryCount( 221 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 222 return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery); 223 } 224 225 /** 226 * Returns the number of rows matching the dynamic query. 227 * 228 * @param dynamicQuery the dynamic query 229 * @param projection the projection to apply to the query 230 * @return the number of rows matching the dynamic query 231 */ 232 @Override 233 public long dynamicQueryCount( 234 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 235 com.liferay.portal.kernel.dao.orm.Projection projection) { 236 return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery, 237 projection); 238 } 239 240 @Override 241 public com.liferay.portlet.asset.model.AssetTagStats fetchAssetTagStats( 242 long tagStatsId) { 243 return _assetTagStatsLocalService.fetchAssetTagStats(tagStatsId); 244 } 245 246 @Override 247 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 248 return _assetTagStatsLocalService.getActionableDynamicQuery(); 249 } 250 251 /** 252 * Returns the asset tag stats with the primary key. 253 * 254 * @param tagStatsId the primary key of the asset tag stats 255 * @return the asset tag stats 256 * @throws PortalException if a asset tag stats with the primary key could not be found 257 */ 258 @Override 259 public com.liferay.portlet.asset.model.AssetTagStats getAssetTagStats( 260 long tagStatsId) 261 throws com.liferay.portal.kernel.exception.PortalException { 262 return _assetTagStatsLocalService.getAssetTagStats(tagStatsId); 263 } 264 265 /** 266 * Returns a range of all the asset tag statses. 267 * 268 * <p> 269 * 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.asset.model.impl.AssetTagStatsModelImpl}. 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. 270 * </p> 271 * 272 * @param start the lower bound of the range of asset tag statses 273 * @param end the upper bound of the range of asset tag statses (not inclusive) 274 * @return the range of asset tag statses 275 */ 276 @Override 277 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getAssetTagStatses( 278 int start, int end) { 279 return _assetTagStatsLocalService.getAssetTagStatses(start, end); 280 } 281 282 /** 283 * Returns the number of asset tag statses. 284 * 285 * @return the number of asset tag statses 286 */ 287 @Override 288 public int getAssetTagStatsesCount() { 289 return _assetTagStatsLocalService.getAssetTagStatsesCount(); 290 } 291 292 /** 293 * Returns the Spring bean ID for this bean. 294 * 295 * @return the Spring bean ID for this bean 296 */ 297 @Override 298 public java.lang.String getBeanIdentifier() { 299 return _assetTagStatsLocalService.getBeanIdentifier(); 300 } 301 302 @Override 303 public com.liferay.portal.model.PersistedModel getPersistedModel( 304 java.io.Serializable primaryKeyObj) 305 throws com.liferay.portal.kernel.exception.PortalException { 306 return _assetTagStatsLocalService.getPersistedModel(primaryKeyObj); 307 } 308 309 /** 310 * Returns a range of all the asset tag statistics instances associated with 311 * the asset entry matching the class name ID. 312 * 313 * <p> 314 * Useful when paginating results. Returns a maximum of <code>end - 315 * start</code> instances. <code>start</code> and <code>end</code> are not 316 * primary keys, they are indexes in the result set. Thus, <code>0</code> 317 * refers to the first result in the set. Setting both <code>start</code> 318 * and <code>end</code> to {@link 319 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 320 * result set. 321 * </p> 322 * 323 * @param classNameId the asset entry's class name ID 324 * @param start the lower bound of the range of results 325 * @param end the upper bound of the range of results (not inclusive) 326 * @return the range of asset tag statistics associated with the asset entry 327 matching the class name ID 328 */ 329 @Override 330 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getTagStats( 331 long classNameId, int start, int end) { 332 return _assetTagStatsLocalService.getTagStats(classNameId, start, end); 333 } 334 335 /** 336 * Returns the asset tag statistics instance with the tag and asset entry 337 * matching the class name ID 338 * 339 * @param tagId the primary key of the tag 340 * @param classNameId the asset entry's class name ID 341 * @return Returns the asset tag statistics instance with the tag and asset 342 entry matching the class name ID 343 */ 344 @Override 345 public com.liferay.portlet.asset.model.AssetTagStats getTagStats( 346 long tagId, long classNameId) { 347 return _assetTagStatsLocalService.getTagStats(tagId, classNameId); 348 } 349 350 /** 351 * Sets the Spring bean ID for this bean. 352 * 353 * @param beanIdentifier the Spring bean ID for this bean 354 */ 355 @Override 356 public void setBeanIdentifier(java.lang.String beanIdentifier) { 357 _assetTagStatsLocalService.setBeanIdentifier(beanIdentifier); 358 } 359 360 /** 361 * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 362 * 363 * @param assetTagStats the asset tag stats 364 * @return the asset tag stats that was updated 365 */ 366 @Override 367 public com.liferay.portlet.asset.model.AssetTagStats updateAssetTagStats( 368 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) { 369 return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats); 370 } 371 372 /** 373 * Updates the asset tag statistics instance. 374 * 375 * @param tagId the primary key of the tag 376 * @param classNameId the asset entry's class name ID 377 * @return the updated asset tag statistics instance 378 * @throws PortalException if an asset tag with the tag ID could not be 379 found 380 */ 381 @Override 382 public com.liferay.portlet.asset.model.AssetTagStats updateTagStats( 383 long tagId, long classNameId) 384 throws com.liferay.portal.kernel.exception.PortalException { 385 return _assetTagStatsLocalService.updateTagStats(tagId, classNameId); 386 } 387 388 /** 389 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 390 */ 391 @Deprecated 392 public AssetTagStatsLocalService getWrappedAssetTagStatsLocalService() { 393 return _assetTagStatsLocalService; 394 } 395 396 /** 397 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 398 */ 399 @Deprecated 400 public void setWrappedAssetTagStatsLocalService( 401 AssetTagStatsLocalService assetTagStatsLocalService) { 402 _assetTagStatsLocalService = assetTagStatsLocalService; 403 } 404 405 @Override 406 public AssetTagStatsLocalService getWrappedService() { 407 return _assetTagStatsLocalService; 408 } 409 410 @Override 411 public void setWrappedService( 412 AssetTagStatsLocalService assetTagStatsLocalService) { 413 _assetTagStatsLocalService = assetTagStatsLocalService; 414 } 415 416 private AssetTagStatsLocalService _assetTagStatsLocalService; 417 }