1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tags.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="TagsPropertyServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link TagsPropertyService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       TagsPropertyService
39   * @generated
40   */
41  public class TagsPropertyServiceUtil {
42      public static com.liferay.portlet.tags.model.TagsProperty addProperty(
43          long entryId, java.lang.String key, java.lang.String value)
44          throws com.liferay.portal.PortalException,
45              com.liferay.portal.SystemException {
46          return getService().addProperty(entryId, key, value);
47      }
48  
49      public static void deleteProperty(long propertyId)
50          throws com.liferay.portal.PortalException,
51              com.liferay.portal.SystemException {
52          getService().deleteProperty(propertyId);
53      }
54  
55      public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getProperties(
56          long entryId) throws com.liferay.portal.SystemException {
57          return getService().getProperties(entryId);
58      }
59  
60      public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getPropertyValues(
61          long companyId, java.lang.String key)
62          throws com.liferay.portal.SystemException {
63          return getService().getPropertyValues(companyId, key);
64      }
65  
66      public static com.liferay.portlet.tags.model.TagsProperty updateProperty(
67          long propertyId, java.lang.String key, java.lang.String value)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException {
70          return getService().updateProperty(propertyId, key, value);
71      }
72  
73      public static TagsPropertyService getService() {
74          if (_service == null) {
75              _service = (TagsPropertyService)PortalBeanLocatorUtil.locate(TagsPropertyService.class.getName());
76  
77              ReferenceRegistry.registerReference(TagsPropertyServiceUtil.class,
78                  "_service");
79              MethodCache.remove(TagsPropertyService.class);
80          }
81  
82          return _service;
83      }
84  
85      public void setService(TagsPropertyService service) {
86          MethodCache.remove(TagsPropertyService.class);
87  
88          _service = service;
89  
90          ReferenceRegistry.registerReference(TagsPropertyServiceUtil.class,
91              "_service");
92          MethodCache.remove(TagsPropertyService.class);
93      }
94  
95      private static TagsPropertyService _service;
96  }