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="TagsPropertyLocalServiceUtil.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 TagsPropertyLocalService} 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       TagsPropertyLocalService
39   * @generated
40   */
41  public class TagsPropertyLocalServiceUtil {
42      public static com.liferay.portlet.tags.model.TagsProperty addTagsProperty(
43          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
44          throws com.liferay.portal.SystemException {
45          return getService().addTagsProperty(tagsProperty);
46      }
47  
48      public static com.liferay.portlet.tags.model.TagsProperty createTagsProperty(
49          long propertyId) {
50          return getService().createTagsProperty(propertyId);
51      }
52  
53      public static void deleteTagsProperty(long propertyId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteTagsProperty(propertyId);
57      }
58  
59      public static void deleteTagsProperty(
60          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
61          throws com.liferay.portal.SystemException {
62          getService().deleteTagsProperty(tagsProperty);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.tags.model.TagsProperty getTagsProperty(
96          long propertyId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getTagsProperty(propertyId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getTagsProperties(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getTagsProperties(start, end);
105     }
106 
107     public static int getTagsPropertiesCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getTagsPropertiesCount();
110     }
111 
112     public static com.liferay.portlet.tags.model.TagsProperty updateTagsProperty(
113         com.liferay.portlet.tags.model.TagsProperty tagsProperty)
114         throws com.liferay.portal.SystemException {
115         return getService().updateTagsProperty(tagsProperty);
116     }
117 
118     public static com.liferay.portlet.tags.model.TagsProperty updateTagsProperty(
119         com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
120         throws com.liferay.portal.SystemException {
121         return getService().updateTagsProperty(tagsProperty, merge);
122     }
123 
124     public static com.liferay.portlet.tags.model.TagsProperty addProperty(
125         long userId, long entryId, java.lang.String key, java.lang.String value)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return getService().addProperty(userId, entryId, key, value);
129     }
130 
131     public static void deleteProperties(long entryId)
132         throws com.liferay.portal.SystemException {
133         getService().deleteProperties(entryId);
134     }
135 
136     public static void deleteProperty(long propertyId)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         getService().deleteProperty(propertyId);
140     }
141 
142     public static void deleteProperty(
143         com.liferay.portlet.tags.model.TagsProperty property)
144         throws com.liferay.portal.SystemException {
145         getService().deleteProperty(property);
146     }
147 
148     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getProperties()
149         throws com.liferay.portal.SystemException {
150         return getService().getProperties();
151     }
152 
153     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getProperties(
154         long entryId) throws com.liferay.portal.SystemException {
155         return getService().getProperties(entryId);
156     }
157 
158     public static com.liferay.portlet.tags.model.TagsProperty getProperty(
159         long propertyId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         return getService().getProperty(propertyId);
163     }
164 
165     public static com.liferay.portlet.tags.model.TagsProperty getProperty(
166         long entryId, java.lang.String key)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException {
169         return getService().getProperty(entryId, key);
170     }
171 
172     public static java.lang.String[] getPropertyKeys(long groupId)
173         throws com.liferay.portal.SystemException {
174         return getService().getPropertyKeys(groupId);
175     }
176 
177     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getPropertyValues(
178         long groupId, java.lang.String key)
179         throws com.liferay.portal.SystemException {
180         return getService().getPropertyValues(groupId, key);
181     }
182 
183     public static com.liferay.portlet.tags.model.TagsProperty updateProperty(
184         long propertyId, java.lang.String key, java.lang.String value)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException {
187         return getService().updateProperty(propertyId, key, value);
188     }
189 
190     public static TagsPropertyLocalService getService() {
191         if (_service == null) {
192             _service = (TagsPropertyLocalService)PortalBeanLocatorUtil.locate(TagsPropertyLocalService.class.getName());
193 
194             ReferenceRegistry.registerReference(TagsPropertyLocalServiceUtil.class,
195                 "_service");
196             MethodCache.remove(TagsPropertyLocalService.class);
197         }
198 
199         return _service;
200     }
201 
202     public void setService(TagsPropertyLocalService service) {
203         MethodCache.remove(TagsPropertyLocalService.class);
204 
205         _service = service;
206 
207         ReferenceRegistry.registerReference(TagsPropertyLocalServiceUtil.class,
208             "_service");
209         MethodCache.remove(TagsPropertyLocalService.class);
210     }
211 
212     private static TagsPropertyLocalService _service;
213 }