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.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.util.ReferenceRegistry; 021 022 /** 023 * Provides the local service utility for AssetTagProperty. This utility wraps 024 * {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyLocalServiceImpl} and is the 025 * primary access point for service operations in application layer code running 026 * on the local server. Methods of this service will not have security checks 027 * based on the propagated JAAS credentials because this service can only be 028 * accessed from within the same VM. 029 * 030 * @author Brian Wing Shun Chan 031 * @see AssetTagPropertyLocalService 032 * @see com.liferay.portlet.asset.service.base.AssetTagPropertyLocalServiceBaseImpl 033 * @see com.liferay.portlet.asset.service.impl.AssetTagPropertyLocalServiceImpl 034 * @generated 035 */ 036 @ProviderType 037 public class AssetTagPropertyLocalServiceUtil { 038 /* 039 * NOTE FOR DEVELOPERS: 040 * 041 * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. 042 */ 043 044 /** 045 * Adds the asset tag property to the database. Also notifies the appropriate model listeners. 046 * 047 * @param assetTagProperty the asset tag property 048 * @return the asset tag property that was added 049 */ 050 public static com.liferay.portlet.asset.model.AssetTagProperty addAssetTagProperty( 051 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) { 052 return getService().addAssetTagProperty(assetTagProperty); 053 } 054 055 /** 056 * Adds an asset tag property. 057 * 058 * @param userId the primary key of the user 059 * @param tagId the primary key of the tag 060 * @param key the key to be associated to the value 061 * @param value the value to which the key will refer 062 * @return the created asset tag property 063 * @throws PortalException if a user with the primary key could not be 064 found, or if the key or value were invalid 065 */ 066 public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty( 067 long userId, long tagId, java.lang.String key, java.lang.String value) 068 throws com.liferay.portal.kernel.exception.PortalException { 069 return getService().addTagProperty(userId, tagId, key, value); 070 } 071 072 /** 073 * Creates a new asset tag property with the primary key. Does not add the asset tag property to the database. 074 * 075 * @param tagPropertyId the primary key for the new asset tag property 076 * @return the new asset tag property 077 */ 078 public static com.liferay.portlet.asset.model.AssetTagProperty createAssetTagProperty( 079 long tagPropertyId) { 080 return getService().createAssetTagProperty(tagPropertyId); 081 } 082 083 /** 084 * Deletes the asset tag property from the database. Also notifies the appropriate model listeners. 085 * 086 * @param assetTagProperty the asset tag property 087 * @return the asset tag property that was removed 088 */ 089 public static com.liferay.portlet.asset.model.AssetTagProperty deleteAssetTagProperty( 090 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) { 091 return getService().deleteAssetTagProperty(assetTagProperty); 092 } 093 094 /** 095 * Deletes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners. 096 * 097 * @param tagPropertyId the primary key of the asset tag property 098 * @return the asset tag property that was removed 099 * @throws PortalException if a asset tag property with the primary key could not be found 100 */ 101 public static com.liferay.portlet.asset.model.AssetTagProperty deleteAssetTagProperty( 102 long tagPropertyId) 103 throws com.liferay.portal.kernel.exception.PortalException { 104 return getService().deleteAssetTagProperty(tagPropertyId); 105 } 106 107 /** 108 * @throws PortalException 109 */ 110 public static com.liferay.portal.model.PersistedModel deletePersistedModel( 111 com.liferay.portal.model.PersistedModel persistedModel) 112 throws com.liferay.portal.kernel.exception.PortalException { 113 return getService().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 public static void deleteTagProperties(long tagId) { 122 getService().deleteTagProperties(tagId); 123 } 124 125 /** 126 * Deletes the asset tag property instance. 127 * 128 * @param tagProperty the asset tag property instance 129 */ 130 public static void deleteTagProperty( 131 com.liferay.portlet.asset.model.AssetTagProperty tagProperty) { 132 getService().deleteTagProperty(tagProperty); 133 } 134 135 /** 136 * Deletes the asset tag property with the specified ID. 137 * 138 * @param tagPropertyId the primary key of the asset tag property instance 139 * @throws PortalException if an asset tag property with the primary key 140 could not be found 141 */ 142 public static void deleteTagProperty(long tagPropertyId) 143 throws com.liferay.portal.kernel.exception.PortalException { 144 getService().deleteTagProperty(tagPropertyId); 145 } 146 147 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 148 return getService().dynamicQuery(); 149 } 150 151 /** 152 * Performs a dynamic query on the database and returns the matching rows. 153 * 154 * @param dynamicQuery the dynamic query 155 * @return the matching rows 156 */ 157 public static <T> java.util.List<T> dynamicQuery( 158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 159 return getService().dynamicQuery(dynamicQuery); 160 } 161 162 /** 163 * Performs a dynamic query on the database and returns a range of the matching rows. 164 * 165 * <p> 166 * 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. 167 * </p> 168 * 169 * @param dynamicQuery the dynamic query 170 * @param start the lower bound of the range of model instances 171 * @param end the upper bound of the range of model instances (not inclusive) 172 * @return the range of matching rows 173 */ 174 public static <T> java.util.List<T> dynamicQuery( 175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 176 int end) { 177 return getService().dynamicQuery(dynamicQuery, start, end); 178 } 179 180 /** 181 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 182 * 183 * <p> 184 * 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. 185 * </p> 186 * 187 * @param dynamicQuery the dynamic query 188 * @param start the lower bound of the range of model instances 189 * @param end the upper bound of the range of model instances (not inclusive) 190 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 191 * @return the ordered range of matching rows 192 */ 193 public static <T> java.util.List<T> dynamicQuery( 194 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 195 int end, 196 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 197 return getService() 198 .dynamicQuery(dynamicQuery, start, end, orderByComparator); 199 } 200 201 /** 202 * Returns the number of rows matching the dynamic query. 203 * 204 * @param dynamicQuery the dynamic query 205 * @return the number of rows matching the dynamic query 206 */ 207 public static long dynamicQueryCount( 208 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 209 return getService().dynamicQueryCount(dynamicQuery); 210 } 211 212 /** 213 * Returns the number of rows matching the dynamic query. 214 * 215 * @param dynamicQuery the dynamic query 216 * @param projection the projection to apply to the query 217 * @return the number of rows matching the dynamic query 218 */ 219 public static long dynamicQueryCount( 220 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 221 com.liferay.portal.kernel.dao.orm.Projection projection) { 222 return getService().dynamicQueryCount(dynamicQuery, projection); 223 } 224 225 public static com.liferay.portlet.asset.model.AssetTagProperty fetchAssetTagProperty( 226 long tagPropertyId) { 227 return getService().fetchAssetTagProperty(tagPropertyId); 228 } 229 230 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 231 return getService().getActionableDynamicQuery(); 232 } 233 234 /** 235 * Returns a range of all the asset tag properties. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param start the lower bound of the range of asset tag properties 242 * @param end the upper bound of the range of asset tag properties (not inclusive) 243 * @return the range of asset tag properties 244 */ 245 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getAssetTagProperties( 246 int start, int end) { 247 return getService().getAssetTagProperties(start, end); 248 } 249 250 /** 251 * Returns the number of asset tag properties. 252 * 253 * @return the number of asset tag properties 254 */ 255 public static int getAssetTagPropertiesCount() { 256 return getService().getAssetTagPropertiesCount(); 257 } 258 259 /** 260 * Returns the asset tag property with the primary key. 261 * 262 * @param tagPropertyId the primary key of the asset tag property 263 * @return the asset tag property 264 * @throws PortalException if a asset tag property with the primary key could not be found 265 */ 266 public static com.liferay.portlet.asset.model.AssetTagProperty getAssetTagProperty( 267 long tagPropertyId) 268 throws com.liferay.portal.kernel.exception.PortalException { 269 return getService().getAssetTagProperty(tagPropertyId); 270 } 271 272 /** 273 * Returns the Spring bean ID for this bean. 274 * 275 * @return the Spring bean ID for this bean 276 */ 277 public static java.lang.String getBeanIdentifier() { 278 return getService().getBeanIdentifier(); 279 } 280 281 public static com.liferay.portal.model.PersistedModel getPersistedModel( 282 java.io.Serializable primaryKeyObj) 283 throws com.liferay.portal.kernel.exception.PortalException { 284 return getService().getPersistedModel(primaryKeyObj); 285 } 286 287 /** 288 * Returns all the asset tag property instances. 289 * 290 * @return the asset tag property instances 291 */ 292 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties() { 293 return getService().getTagProperties(); 294 } 295 296 /** 297 * Returns all the asset tag property instances with the specified tag ID. 298 * 299 * @param tagId the primary key of the tag 300 * @return the matching asset tag properties 301 */ 302 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties( 303 long tagId) { 304 return getService().getTagProperties(tagId); 305 } 306 307 /** 308 * Returns the asset tag property with the specified tag ID and key. 309 * 310 * @param tagId the primary key of the tag 311 * @param key the key that refers to some value 312 * @return the matching asset tag property 313 * @throws PortalException if an asset tag property with the tag ID and key 314 could not be found 315 */ 316 public static com.liferay.portlet.asset.model.AssetTagProperty getTagProperty( 317 long tagId, java.lang.String key) 318 throws com.liferay.portal.kernel.exception.PortalException { 319 return getService().getTagProperty(tagId, key); 320 } 321 322 /** 323 * Returns the asset tag property with the specified ID. 324 * 325 * @param tagPropertyId the primary key of the asset tag property 326 * @return the matching asset tag property 327 * @throws PortalException if an asset tag property with the primary key 328 could not be found 329 */ 330 public static com.liferay.portlet.asset.model.AssetTagProperty getTagProperty( 331 long tagPropertyId) 332 throws com.liferay.portal.kernel.exception.PortalException { 333 return getService().getTagProperty(tagPropertyId); 334 } 335 336 /** 337 * Returns asset tag property keys with the specified group 338 * 339 * @param groupId the primary key of the group 340 * @return the matching asset tag property keys 341 */ 342 public static java.lang.String[] getTagPropertyKeys(long groupId) { 343 return getService().getTagPropertyKeys(groupId); 344 } 345 346 /** 347 * Returns asset tag properties with the specified group and key. 348 * 349 * @param groupId the primary key of the group 350 * @param key the key that refers to some value 351 * @return the matching asset tag properties 352 */ 353 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues( 354 long groupId, java.lang.String key) { 355 return getService().getTagPropertyValues(groupId, key); 356 } 357 358 /** 359 * Sets the Spring bean ID for this bean. 360 * 361 * @param beanIdentifier the Spring bean ID for this bean 362 */ 363 public static void setBeanIdentifier(java.lang.String beanIdentifier) { 364 getService().setBeanIdentifier(beanIdentifier); 365 } 366 367 /** 368 * Updates the asset tag property in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 369 * 370 * @param assetTagProperty the asset tag property 371 * @return the asset tag property that was updated 372 */ 373 public static com.liferay.portlet.asset.model.AssetTagProperty updateAssetTagProperty( 374 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) { 375 return getService().updateAssetTagProperty(assetTagProperty); 376 } 377 378 /** 379 * Updates the asset tag property. 380 * 381 * @param tagPropertyId the primary key of the asset tag property 382 * @param key the new key to be associated to the value 383 * @param value the new value to which the key will refer 384 * @return the updated asset tag property 385 * @throws PortalException if an asset tag property with the primary key 386 could not be found, or if the key or value were invalid 387 */ 388 public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty( 389 long tagPropertyId, java.lang.String key, java.lang.String value) 390 throws com.liferay.portal.kernel.exception.PortalException { 391 return getService().updateTagProperty(tagPropertyId, key, value); 392 } 393 394 public static AssetTagPropertyLocalService getService() { 395 if (_service == null) { 396 _service = (AssetTagPropertyLocalService)PortalBeanLocatorUtil.locate(AssetTagPropertyLocalService.class.getName()); 397 398 ReferenceRegistry.registerReference(AssetTagPropertyLocalServiceUtil.class, 399 "_service"); 400 } 401 402 return _service; 403 } 404 405 /** 406 * @deprecated As of 6.2.0 407 */ 408 @Deprecated 409 public void setService(AssetTagPropertyLocalService service) { 410 } 411 412 private static AssetTagPropertyLocalService _service; 413 }