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  
19  /**
20   * <a href="TagsEntryServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link TagsEntryService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       TagsEntryService
37   * @generated
38   */
39  public class TagsEntryServiceUtil {
40      public static com.liferay.portlet.tags.model.TagsEntry addEntry(
41          java.lang.String name)
42          throws com.liferay.portal.PortalException,
43              com.liferay.portal.SystemException, java.rmi.RemoteException {
44          return getService().addEntry(name);
45      }
46  
47      public static com.liferay.portlet.tags.model.TagsEntry addEntry(
48          java.lang.String name, java.lang.String[] properties)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException, java.rmi.RemoteException {
51          return getService().addEntry(name, properties);
52      }
53  
54      public static void deleteEntry(long entryId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException, java.rmi.RemoteException {
57          getService().deleteEntry(entryId);
58      }
59  
60      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
61          long groupId, long companyId, long classNameId, java.lang.String name)
62          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
63          return getService().getEntries(groupId, companyId, classNameId, name);
64      }
65  
66      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
67          java.lang.String className, long classPK)
68          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
69          return getService().getEntries(className, classPK);
70      }
71  
72      public static void mergeEntries(long fromEntryId, long toEntryId)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException, java.rmi.RemoteException {
75          getService().mergeEntries(fromEntryId, toEntryId);
76      }
77  
78      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
79          long companyId, java.lang.String name, java.lang.String[] properties)
80          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
81          return getService().search(companyId, name, properties);
82      }
83  
84      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
85          long companyId, java.lang.String name, java.lang.String[] properties,
86          int start, int end)
87          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
88          return getService().search(companyId, name, properties, start, end);
89      }
90  
91      public static com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
92          long companyId, java.lang.String name, java.lang.String[] properties,
93          int start, int end)
94          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
95          return getService()
96                     .searchAutocomplete(companyId, name, properties, start, end);
97      }
98  
99      public static int searchCount(long companyId, java.lang.String name,
100         java.lang.String[] properties)
101         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
102         return getService().searchCount(companyId, name, properties);
103     }
104 
105     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
106         long entryId, java.lang.String name)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException, java.rmi.RemoteException {
109         return getService().updateEntry(entryId, name);
110     }
111 
112     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
113         long entryId, java.lang.String name, java.lang.String[] properties)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException, java.rmi.RemoteException {
116         return getService().updateEntry(entryId, name, properties);
117     }
118 
119     public static TagsEntryService getService() {
120         if (_service == null) {
121             _service = (TagsEntryService)PortalBeanLocatorUtil.locate(TagsEntryService.class.getName());
122         }
123 
124         return _service;
125     }
126 
127     public void setService(TagsEntryService service) {
128         _service = service;
129     }
130 
131     private static TagsEntryService _service;
132 }