1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
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 }