001 /** 002 * Copyright (c) 2000-2013 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 com.liferay.portal.service.ServiceWrapper; 018 019 /** 020 * Provides a wrapper for {@link AssetTagPropertyLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see AssetTagPropertyLocalService 024 * @generated 025 */ 026 public class AssetTagPropertyLocalServiceWrapper 027 implements AssetTagPropertyLocalService, 028 ServiceWrapper<AssetTagPropertyLocalService> { 029 public AssetTagPropertyLocalServiceWrapper( 030 AssetTagPropertyLocalService assetTagPropertyLocalService) { 031 _assetTagPropertyLocalService = assetTagPropertyLocalService; 032 } 033 034 /** 035 * Adds the asset tag property to the database. Also notifies the appropriate model listeners. 036 * 037 * @param assetTagProperty the asset tag property 038 * @return the asset tag property that was added 039 * @throws SystemException if a system exception occurred 040 */ 041 @Override 042 public com.liferay.portlet.asset.model.AssetTagProperty addAssetTagProperty( 043 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) 044 throws com.liferay.portal.kernel.exception.SystemException { 045 return _assetTagPropertyLocalService.addAssetTagProperty(assetTagProperty); 046 } 047 048 /** 049 * Creates a new asset tag property with the primary key. Does not add the asset tag property to the database. 050 * 051 * @param tagPropertyId the primary key for the new asset tag property 052 * @return the new asset tag property 053 */ 054 @Override 055 public com.liferay.portlet.asset.model.AssetTagProperty createAssetTagProperty( 056 long tagPropertyId) { 057 return _assetTagPropertyLocalService.createAssetTagProperty(tagPropertyId); 058 } 059 060 /** 061 * Deletes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners. 062 * 063 * @param tagPropertyId the primary key of the asset tag property 064 * @return the asset tag property that was removed 065 * @throws PortalException if a asset tag property with the primary key could not be found 066 * @throws SystemException if a system exception occurred 067 */ 068 @Override 069 public com.liferay.portlet.asset.model.AssetTagProperty deleteAssetTagProperty( 070 long tagPropertyId) 071 throws com.liferay.portal.kernel.exception.PortalException, 072 com.liferay.portal.kernel.exception.SystemException { 073 return _assetTagPropertyLocalService.deleteAssetTagProperty(tagPropertyId); 074 } 075 076 /** 077 * Deletes the asset tag property from the database. Also notifies the appropriate model listeners. 078 * 079 * @param assetTagProperty the asset tag property 080 * @return the asset tag property that was removed 081 * @throws SystemException if a system exception occurred 082 */ 083 @Override 084 public com.liferay.portlet.asset.model.AssetTagProperty deleteAssetTagProperty( 085 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) 086 throws com.liferay.portal.kernel.exception.SystemException { 087 return _assetTagPropertyLocalService.deleteAssetTagProperty(assetTagProperty); 088 } 089 090 @Override 091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 092 return _assetTagPropertyLocalService.dynamicQuery(); 093 } 094 095 /** 096 * Performs a dynamic query on the database and returns the matching rows. 097 * 098 * @param dynamicQuery the dynamic query 099 * @return the matching rows 100 * @throws SystemException if a system exception occurred 101 */ 102 @Override 103 @SuppressWarnings("rawtypes") 104 public java.util.List dynamicQuery( 105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 106 throws com.liferay.portal.kernel.exception.SystemException { 107 return _assetTagPropertyLocalService.dynamicQuery(dynamicQuery); 108 } 109 110 /** 111 * Performs a dynamic query on the database and returns a range of the matching rows. 112 * 113 * <p> 114 * 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.AssetTagPropertyModelImpl}. 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. 115 * </p> 116 * 117 * @param dynamicQuery the dynamic query 118 * @param start the lower bound of the range of model instances 119 * @param end the upper bound of the range of model instances (not inclusive) 120 * @return the range of matching rows 121 * @throws SystemException if a system exception occurred 122 */ 123 @Override 124 @SuppressWarnings("rawtypes") 125 public java.util.List dynamicQuery( 126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 127 int end) throws com.liferay.portal.kernel.exception.SystemException { 128 return _assetTagPropertyLocalService.dynamicQuery(dynamicQuery, start, 129 end); 130 } 131 132 /** 133 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 134 * 135 * <p> 136 * 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.AssetTagPropertyModelImpl}. 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. 137 * </p> 138 * 139 * @param dynamicQuery the dynamic query 140 * @param start the lower bound of the range of model instances 141 * @param end the upper bound of the range of model instances (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching rows 144 * @throws SystemException if a system exception occurred 145 */ 146 @Override 147 @SuppressWarnings("rawtypes") 148 public java.util.List dynamicQuery( 149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 150 int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException { 153 return _assetTagPropertyLocalService.dynamicQuery(dynamicQuery, start, 154 end, orderByComparator); 155 } 156 157 /** 158 * Returns the number of rows that match the dynamic query. 159 * 160 * @param dynamicQuery the dynamic query 161 * @return the number of rows that match the dynamic query 162 * @throws SystemException if a system exception occurred 163 */ 164 @Override 165 public long dynamicQueryCount( 166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 167 throws com.liferay.portal.kernel.exception.SystemException { 168 return _assetTagPropertyLocalService.dynamicQueryCount(dynamicQuery); 169 } 170 171 /** 172 * Returns the number of rows that match the dynamic query. 173 * 174 * @param dynamicQuery the dynamic query 175 * @param projection the projection to apply to the query 176 * @return the number of rows that match the dynamic query 177 * @throws SystemException if a system exception occurred 178 */ 179 @Override 180 public long dynamicQueryCount( 181 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 182 com.liferay.portal.kernel.dao.orm.Projection projection) 183 throws com.liferay.portal.kernel.exception.SystemException { 184 return _assetTagPropertyLocalService.dynamicQueryCount(dynamicQuery, 185 projection); 186 } 187 188 @Override 189 public com.liferay.portlet.asset.model.AssetTagProperty fetchAssetTagProperty( 190 long tagPropertyId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return _assetTagPropertyLocalService.fetchAssetTagProperty(tagPropertyId); 193 } 194 195 /** 196 * Returns the asset tag property with the primary key. 197 * 198 * @param tagPropertyId the primary key of the asset tag property 199 * @return the asset tag property 200 * @throws PortalException if a asset tag property with the primary key could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 @Override 204 public com.liferay.portlet.asset.model.AssetTagProperty getAssetTagProperty( 205 long tagPropertyId) 206 throws com.liferay.portal.kernel.exception.PortalException, 207 com.liferay.portal.kernel.exception.SystemException { 208 return _assetTagPropertyLocalService.getAssetTagProperty(tagPropertyId); 209 } 210 211 @Override 212 public com.liferay.portal.model.PersistedModel getPersistedModel( 213 java.io.Serializable primaryKeyObj) 214 throws com.liferay.portal.kernel.exception.PortalException, 215 com.liferay.portal.kernel.exception.SystemException { 216 return _assetTagPropertyLocalService.getPersistedModel(primaryKeyObj); 217 } 218 219 /** 220 * Returns a range of all the asset tag properties. 221 * 222 * <p> 223 * 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.AssetTagPropertyModelImpl}. 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. 224 * </p> 225 * 226 * @param start the lower bound of the range of asset tag properties 227 * @param end the upper bound of the range of asset tag properties (not inclusive) 228 * @return the range of asset tag properties 229 * @throws SystemException if a system exception occurred 230 */ 231 @Override 232 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getAssetTagProperties( 233 int start, int end) 234 throws com.liferay.portal.kernel.exception.SystemException { 235 return _assetTagPropertyLocalService.getAssetTagProperties(start, end); 236 } 237 238 /** 239 * Returns the number of asset tag properties. 240 * 241 * @return the number of asset tag properties 242 * @throws SystemException if a system exception occurred 243 */ 244 @Override 245 public int getAssetTagPropertiesCount() 246 throws com.liferay.portal.kernel.exception.SystemException { 247 return _assetTagPropertyLocalService.getAssetTagPropertiesCount(); 248 } 249 250 /** 251 * Updates the asset tag property in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 252 * 253 * @param assetTagProperty the asset tag property 254 * @return the asset tag property that was updated 255 * @throws SystemException if a system exception occurred 256 */ 257 @Override 258 public com.liferay.portlet.asset.model.AssetTagProperty updateAssetTagProperty( 259 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) 260 throws com.liferay.portal.kernel.exception.SystemException { 261 return _assetTagPropertyLocalService.updateAssetTagProperty(assetTagProperty); 262 } 263 264 /** 265 * Returns the Spring bean ID for this bean. 266 * 267 * @return the Spring bean ID for this bean 268 */ 269 @Override 270 public java.lang.String getBeanIdentifier() { 271 return _assetTagPropertyLocalService.getBeanIdentifier(); 272 } 273 274 /** 275 * Sets the Spring bean ID for this bean. 276 * 277 * @param beanIdentifier the Spring bean ID for this bean 278 */ 279 @Override 280 public void setBeanIdentifier(java.lang.String beanIdentifier) { 281 _assetTagPropertyLocalService.setBeanIdentifier(beanIdentifier); 282 } 283 284 /** 285 * Adds an asset tag property. 286 * 287 * @param userId the primary key of the user 288 * @param tagId the primary key of the tag 289 * @param key the key to be associated to the value 290 * @param value the value to which the key will refer 291 * @return the created asset tag property 292 * @throws PortalException if a user with the primary key could not be 293 found, or if the key or value were invalid 294 * @throws SystemException if a system exception occurred 295 */ 296 @Override 297 public com.liferay.portlet.asset.model.AssetTagProperty addTagProperty( 298 long userId, long tagId, java.lang.String key, java.lang.String value) 299 throws com.liferay.portal.kernel.exception.PortalException, 300 com.liferay.portal.kernel.exception.SystemException { 301 return _assetTagPropertyLocalService.addTagProperty(userId, tagId, key, 302 value); 303 } 304 305 /** 306 * Deletes the asset tag property with the specified tag ID. 307 * 308 * @param tagId the primary key of the tag 309 * @throws SystemException if a system exception occurred 310 */ 311 @Override 312 public void deleteTagProperties(long tagId) 313 throws com.liferay.portal.kernel.exception.SystemException { 314 _assetTagPropertyLocalService.deleteTagProperties(tagId); 315 } 316 317 /** 318 * Deletes the asset tag property instance. 319 * 320 * @param tagProperty the asset tag property instance 321 * @throws SystemException if a system exception occurred 322 */ 323 @Override 324 public void deleteTagProperty( 325 com.liferay.portlet.asset.model.AssetTagProperty tagProperty) 326 throws com.liferay.portal.kernel.exception.SystemException { 327 _assetTagPropertyLocalService.deleteTagProperty(tagProperty); 328 } 329 330 /** 331 * Deletes the asset tag property with the specified ID. 332 * 333 * @param tagPropertyId the primary key of the asset tag property instance 334 * @throws PortalException if an asset tag property with the primary key 335 could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 @Override 339 public void deleteTagProperty(long tagPropertyId) 340 throws com.liferay.portal.kernel.exception.PortalException, 341 com.liferay.portal.kernel.exception.SystemException { 342 _assetTagPropertyLocalService.deleteTagProperty(tagPropertyId); 343 } 344 345 /** 346 * Returns all the asset tag property instances. 347 * 348 * @return the asset tag property instances 349 * @throws SystemException if a system exception occurred 350 */ 351 @Override 352 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties() 353 throws com.liferay.portal.kernel.exception.SystemException { 354 return _assetTagPropertyLocalService.getTagProperties(); 355 } 356 357 /** 358 * Returns all the asset tag property instances with the specified tag ID. 359 * 360 * @param tagId the primary key of the tag 361 * @return the matching asset tag properties 362 * @throws SystemException if a system exception occurred 363 */ 364 @Override 365 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties( 366 long tagId) throws com.liferay.portal.kernel.exception.SystemException { 367 return _assetTagPropertyLocalService.getTagProperties(tagId); 368 } 369 370 /** 371 * Returns the asset tag property with the specified ID. 372 * 373 * @param tagPropertyId the primary key of the asset tag property 374 * @return the matching asset tag property 375 * @throws PortalException if an asset tag property with the primary key 376 could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 @Override 380 public com.liferay.portlet.asset.model.AssetTagProperty getTagProperty( 381 long tagPropertyId) 382 throws com.liferay.portal.kernel.exception.PortalException, 383 com.liferay.portal.kernel.exception.SystemException { 384 return _assetTagPropertyLocalService.getTagProperty(tagPropertyId); 385 } 386 387 /** 388 * Returns the asset tag property with the specified tag ID and key. 389 * 390 * @param tagId the primary key of the tag 391 * @param key the key that refers to some value 392 * @return the matching asset tag property 393 * @throws PortalException if an asset tag property with the tag ID and key 394 could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 @Override 398 public com.liferay.portlet.asset.model.AssetTagProperty getTagProperty( 399 long tagId, java.lang.String key) 400 throws com.liferay.portal.kernel.exception.PortalException, 401 com.liferay.portal.kernel.exception.SystemException { 402 return _assetTagPropertyLocalService.getTagProperty(tagId, key); 403 } 404 405 /** 406 * Returns asset tag property keys with the specified group 407 * 408 * @param groupId the primary key of the group 409 * @return the matching asset tag property keys 410 * @throws SystemException if a system exception occurred 411 */ 412 @Override 413 public java.lang.String[] getTagPropertyKeys(long groupId) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return _assetTagPropertyLocalService.getTagPropertyKeys(groupId); 416 } 417 418 /** 419 * Returns asset tag properties with the specified group and key. 420 * 421 * @param groupId the primary key of the group 422 * @param key the key that refers to some value 423 * @return the matching asset tag properties 424 * @throws SystemException if a system exception occurred 425 */ 426 @Override 427 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues( 428 long groupId, java.lang.String key) 429 throws com.liferay.portal.kernel.exception.SystemException { 430 return _assetTagPropertyLocalService.getTagPropertyValues(groupId, key); 431 } 432 433 /** 434 * Updates the asset tag property. 435 * 436 * @param tagPropertyId the primary key of the asset tag property 437 * @param key the new key to be associated to the value 438 * @param value the new value to which the key will refer 439 * @return the updated asset tag property 440 * @throws PortalException if an asset tag property with the primary key 441 could not be found, or if the key or value were invalid 442 * @throws SystemException if a system exception occurred 443 */ 444 @Override 445 public com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty( 446 long tagPropertyId, java.lang.String key, java.lang.String value) 447 throws com.liferay.portal.kernel.exception.PortalException, 448 com.liferay.portal.kernel.exception.SystemException { 449 return _assetTagPropertyLocalService.updateTagProperty(tagPropertyId, 450 key, value); 451 } 452 453 /** 454 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 455 */ 456 public AssetTagPropertyLocalService getWrappedAssetTagPropertyLocalService() { 457 return _assetTagPropertyLocalService; 458 } 459 460 /** 461 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 462 */ 463 public void setWrappedAssetTagPropertyLocalService( 464 AssetTagPropertyLocalService assetTagPropertyLocalService) { 465 _assetTagPropertyLocalService = assetTagPropertyLocalService; 466 } 467 468 @Override 469 public AssetTagPropertyLocalService getWrappedService() { 470 return _assetTagPropertyLocalService; 471 } 472 473 @Override 474 public void setWrappedService( 475 AssetTagPropertyLocalService assetTagPropertyLocalService) { 476 _assetTagPropertyLocalService = assetTagPropertyLocalService; 477 } 478 479 private AssetTagPropertyLocalService _assetTagPropertyLocalService; 480 }