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