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