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 parentEntryName, java.lang.String name,
42          java.lang.String vocabularyName, java.lang.String[] properties,
43          com.liferay.portal.service.ServiceContext serviceContext)
44          throws com.liferay.portal.PortalException,
45              com.liferay.portal.SystemException {
46          return getService()
47                     .addEntry(parentEntryName, name, vocabularyName, properties,
48              serviceContext);
49      }
50  
51      public static void deleteEntry(long entryId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteEntry(entryId);
55      }
56  
57      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
58          long groupId, long classNameId, java.lang.String name)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          return getService().getEntries(groupId, classNameId, name);
62      }
63  
64      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
65          java.lang.String className, long classPK)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException {
68          return getService().getEntries(className, classPK);
69      }
70  
71      public static com.liferay.portlet.tags.model.TagsEntry getEntry(
72          long entryId)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException {
75          return getService().getEntry(entryId);
76      }
77  
78      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
79          long groupId, java.lang.String vocabularyName)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return getService().getGroupVocabularyEntries(groupId, vocabularyName);
83      }
84  
85      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
86          long groupId, java.lang.String parentEntryName,
87          java.lang.String vocabularyName)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException {
90          return getService()
91                     .getGroupVocabularyEntries(groupId, parentEntryName,
92              vocabularyName);
93      }
94  
95      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
96          long groupId, java.lang.String vocabularyName)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService()
100                    .getGroupVocabularyRootEntries(groupId, vocabularyName);
101     }
102 
103     public static void mergeEntries(long fromEntryId, long toEntryId)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         getService().mergeEntries(fromEntryId, toEntryId);
107     }
108 
109     public static com.liferay.portal.kernel.json.JSONArray search(
110         long groupId, java.lang.String name, java.lang.String[] properties,
111         int start, int end) throws com.liferay.portal.SystemException {
112         return getService().search(groupId, name, properties, start, end);
113     }
114 
115     public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
116         long entryId, java.lang.String parentEntryName, java.lang.String name,
117         java.lang.String vocabularyName, java.lang.String[] properties)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return getService()
121                    .updateEntry(entryId, parentEntryName, name, vocabularyName,
122             properties);
123     }
124 
125     public static TagsEntryService getService() {
126         if (_service == null) {
127             _service = (TagsEntryService)PortalBeanLocatorUtil.locate(TagsEntryService.class.getName());
128         }
129 
130         return _service;
131     }
132 
133     public void setService(TagsEntryService service) {
134         _service = service;
135     }
136 
137     private static TagsEntryService _service;
138 }