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