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