1
22
23 package com.liferay.portlet.tags.service;
24
25 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26
27
47 public class TagsEntryLocalServiceUtil {
48 public static com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
49 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
50 throws com.liferay.portal.SystemException {
51 return getService().addTagsEntry(tagsEntry);
52 }
53
54 public static com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
55 long entryId) {
56 return getService().createTagsEntry(entryId);
57 }
58
59 public static void deleteTagsEntry(long entryId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException {
62 getService().deleteTagsEntry(entryId);
63 }
64
65 public static void deleteTagsEntry(
66 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
67 throws com.liferay.portal.SystemException {
68 getService().deleteTagsEntry(tagsEntry);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery);
75 }
76
77 public static java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException {
80 return getService().dynamicQuery(dynamicQuery, start, end);
81 }
82
83 public static com.liferay.portlet.tags.model.TagsEntry getTagsEntry(
84 long entryId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getTagsEntry(entryId);
88 }
89
90 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
91 int start, int end) throws com.liferay.portal.SystemException {
92 return getService().getTagsEntries(start, end);
93 }
94
95 public static int getTagsEntriesCount()
96 throws com.liferay.portal.SystemException {
97 return getService().getTagsEntriesCount();
98 }
99
100 public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
101 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
102 throws com.liferay.portal.SystemException {
103 return getService().updateTagsEntry(tagsEntry);
104 }
105
106 public static com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
107 com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
108 throws com.liferay.portal.SystemException {
109 return getService().updateTagsEntry(tagsEntry, merge);
110 }
111
112 public static com.liferay.portlet.tags.model.TagsEntry addEntry(
113 long userId, java.lang.String parentEntryName, java.lang.String name,
114 java.lang.String vocabularyName, java.lang.String[] properties,
115 com.liferay.portal.service.ServiceContext serviceContext)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException {
118 return getService()
119 .addEntry(userId, parentEntryName, name, vocabularyName,
120 properties, serviceContext);
121 }
122
123 public static void addEntryResources(
124 com.liferay.portlet.tags.model.TagsEntry entry,
125 boolean addCommunityPermissions, boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 getService()
129 .addEntryResources(entry, addCommunityPermissions,
130 addGuestPermissions);
131 }
132
133 public static void addEntryResources(
134 com.liferay.portlet.tags.model.TagsEntry entry,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 getService()
140 .addEntryResources(entry, communityPermissions, guestPermissions);
141 }
142
143 public static void checkEntries(long userId, long groupId,
144 java.lang.String[] names)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 getService().checkEntries(userId, groupId, names);
148 }
149
150 public static void deleteEntry(long entryId)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 getService().deleteEntry(entryId);
154 }
155
156 public static void deleteEntry(
157 com.liferay.portlet.tags.model.TagsEntry entry)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException {
160 getService().deleteEntry(entry);
161 }
162
163 public static void deleteVocabularyEntries(long vocabularyId)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 getService().deleteVocabularyEntries(vocabularyId);
167 }
168
169 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
170 long assetId, boolean folksonomy)
171 throws com.liferay.portal.SystemException {
172 return getService().getAssetEntries(assetId, folksonomy);
173 }
174
175 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
176 throws com.liferay.portal.SystemException {
177 return getService().getEntries();
178 }
179
180 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
181 boolean folksonomy) throws com.liferay.portal.SystemException {
182 return getService().getEntries(folksonomy);
183 }
184
185 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
186 long classNameId, long classPK)
187 throws com.liferay.portal.SystemException {
188 return getService().getEntries(classNameId, classPK);
189 }
190
191 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
192 long classNameId, long classPK, boolean folksonomy)
193 throws com.liferay.portal.SystemException {
194 return getService().getEntries(classNameId, classPK, folksonomy);
195 }
196
197 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
198 long groupId, long classNameId, java.lang.String name)
199 throws com.liferay.portal.SystemException {
200 return getService().getEntries(groupId, classNameId, name);
201 }
202
203 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
204 long groupId, long classNameId, java.lang.String name, int start,
205 int end) throws com.liferay.portal.SystemException {
206 return getService().getEntries(groupId, classNameId, name, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
210 java.lang.String className, long classPK)
211 throws com.liferay.portal.SystemException {
212 return getService().getEntries(className, classPK);
213 }
214
215 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
216 java.lang.String className, long classPK, boolean folksonomy)
217 throws com.liferay.portal.SystemException {
218 return getService().getEntries(className, classPK, folksonomy);
219 }
220
221 public static int getEntriesSize(long groupId, long classNameId,
222 java.lang.String name) throws com.liferay.portal.SystemException {
223 return getService().getEntriesSize(groupId, classNameId, name);
224 }
225
226 public static com.liferay.portlet.tags.model.TagsEntry getEntry(
227 long entryId)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 return getService().getEntry(entryId);
231 }
232
233 public static com.liferay.portlet.tags.model.TagsEntry getEntry(
234 long groupId, java.lang.String name)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException {
237 return getService().getEntry(groupId, name);
238 }
239
240 public static com.liferay.portlet.tags.model.TagsEntry getEntry(
241 long groupId, java.lang.String name, boolean folksonomy)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 return getService().getEntry(groupId, name, folksonomy);
245 }
246
247 public static long[] getEntryIds(long groupId, java.lang.String[] names)
248 throws com.liferay.portal.PortalException,
249 com.liferay.portal.SystemException {
250 return getService().getEntryIds(groupId, names);
251 }
252
253 public static long[] getEntryIds(long groupId, java.lang.String[] names,
254 boolean folksonomy)
255 throws com.liferay.portal.PortalException,
256 com.liferay.portal.SystemException {
257 return getService().getEntryIds(groupId, names, folksonomy);
258 }
259
260 public static java.lang.String[] getEntryNames()
261 throws com.liferay.portal.SystemException {
262 return getService().getEntryNames();
263 }
264
265 public static java.lang.String[] getEntryNames(boolean folksonomy)
266 throws com.liferay.portal.SystemException {
267 return getService().getEntryNames(folksonomy);
268 }
269
270 public static java.lang.String[] getEntryNames(long classNameId,
271 long classPK) throws com.liferay.portal.SystemException {
272 return getService().getEntryNames(classNameId, classPK);
273 }
274
275 public static java.lang.String[] getEntryNames(long classNameId,
276 long classPK, boolean folksonomy)
277 throws com.liferay.portal.SystemException {
278 return getService().getEntryNames(classNameId, classPK, folksonomy);
279 }
280
281 public static java.lang.String[] getEntryNames(java.lang.String className,
282 long classPK) throws com.liferay.portal.SystemException {
283 return getService().getEntryNames(className, classPK);
284 }
285
286 public static java.lang.String[] getEntryNames(java.lang.String className,
287 long classPK, boolean folksonomy)
288 throws com.liferay.portal.SystemException {
289 return getService().getEntryNames(className, classPK, folksonomy);
290 }
291
292 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
293 long groupId, java.lang.String vocabularyName)
294 throws com.liferay.portal.PortalException,
295 com.liferay.portal.SystemException {
296 return getService().getGroupVocabularyEntries(groupId, vocabularyName);
297 }
298
299 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyEntries(
300 long groupId, java.lang.String parentEntryName,
301 java.lang.String vocabularyName)
302 throws com.liferay.portal.PortalException,
303 com.liferay.portal.SystemException {
304 return getService()
305 .getGroupVocabularyEntries(groupId, parentEntryName,
306 vocabularyName);
307 }
308
309 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getGroupVocabularyRootEntries(
310 long groupId, java.lang.String vocabularyName)
311 throws com.liferay.portal.PortalException,
312 com.liferay.portal.SystemException {
313 return getService()
314 .getGroupVocabularyRootEntries(groupId, vocabularyName);
315 }
316
317 public static boolean hasEntry(long groupId, java.lang.String name,
318 boolean folksonomy)
319 throws com.liferay.portal.PortalException,
320 com.liferay.portal.SystemException {
321 return getService().hasEntry(groupId, name, folksonomy);
322 }
323
324 public static void mergeEntries(long fromEntryId, long toEntryId)
325 throws com.liferay.portal.PortalException,
326 com.liferay.portal.SystemException {
327 getService().mergeEntries(fromEntryId, toEntryId);
328 }
329
330 public static com.liferay.portal.kernel.json.JSONArray search(
331 long groupId, java.lang.String name, java.lang.String[] properties,
332 int start, int end) throws com.liferay.portal.SystemException {
333 return getService().search(groupId, name, properties, start, end);
334 }
335
336 public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
337 long userId, long entryId, java.lang.String parentEntryName,
338 java.lang.String name, java.lang.String vocabularyName,
339 java.lang.String[] properties)
340 throws com.liferay.portal.PortalException,
341 com.liferay.portal.SystemException {
342 return getService()
343 .updateEntry(userId, entryId, parentEntryName, name,
344 vocabularyName, properties);
345 }
346
347 public static TagsEntryLocalService getService() {
348 if (_service == null) {
349 _service = (TagsEntryLocalService)PortalBeanLocatorUtil.locate(TagsEntryLocalService.class.getName());
350 }
351
352 return _service;
353 }
354
355 public void setService(TagsEntryLocalService service) {
356 _service = service;
357 }
358
359 private static TagsEntryLocalService _service;
360 }