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