001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class AssetTagLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.asset.model.AssetTag addAssetTag(
048 com.liferay.portlet.asset.model.AssetTag assetTag)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addAssetTag(assetTag);
051 }
052
053
059 public static com.liferay.portlet.asset.model.AssetTag createAssetTag(
060 long tagId) {
061 return getService().createAssetTag(tagId);
062 }
063
064
072 public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
073 long tagId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteAssetTag(tagId);
077 }
078
079
086 public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
087 com.liferay.portlet.asset.model.AssetTag assetTag)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteAssetTag(assetTag);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.asset.model.AssetTag fetchAssetTag(
168 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
169 return getService().fetchAssetTag(tagId);
170 }
171
172
180 public static com.liferay.portlet.asset.model.AssetTag getAssetTag(
181 long tagId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getAssetTag(tagId);
185 }
186
187 public static com.liferay.portal.model.PersistedModel getPersistedModel(
188 java.io.Serializable primaryKeyObj)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().getPersistedModel(primaryKeyObj);
192 }
193
194
206 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
207 int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getAssetTags(start, end);
210 }
211
212
218 public static int getAssetTagsCount()
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getService().getAssetTagsCount();
221 }
222
223
230 public static com.liferay.portlet.asset.model.AssetTag updateAssetTag(
231 com.liferay.portlet.asset.model.AssetTag assetTag)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().updateAssetTag(assetTag);
234 }
235
236
239 public static void addAssetEntryAssetTag(long entryId, long tagId)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 getService().addAssetEntryAssetTag(entryId, tagId);
242 }
243
244
247 public static void addAssetEntryAssetTag(long entryId,
248 com.liferay.portlet.asset.model.AssetTag assetTag)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 getService().addAssetEntryAssetTag(entryId, assetTag);
251 }
252
253
256 public static void addAssetEntryAssetTags(long entryId, long[] tagIds)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 getService().addAssetEntryAssetTags(entryId, tagIds);
259 }
260
261
264 public static void addAssetEntryAssetTags(long entryId,
265 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 getService().addAssetEntryAssetTags(entryId, AssetTags);
268 }
269
270
273 public static void clearAssetEntryAssetTags(long entryId)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getService().clearAssetEntryAssetTags(entryId);
276 }
277
278
281 public static void deleteAssetEntryAssetTag(long entryId, long tagId)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getService().deleteAssetEntryAssetTag(entryId, tagId);
284 }
285
286
289 public static void deleteAssetEntryAssetTag(long entryId,
290 com.liferay.portlet.asset.model.AssetTag assetTag)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getService().deleteAssetEntryAssetTag(entryId, assetTag);
293 }
294
295
298 public static void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteAssetEntryAssetTags(entryId, tagIds);
301 }
302
303
306 public static void deleteAssetEntryAssetTags(long entryId,
307 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getService().deleteAssetEntryAssetTags(entryId, AssetTags);
310 }
311
312
315 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
316 long entryId)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().getAssetEntryAssetTags(entryId);
319 }
320
321
324 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
325 long entryId, int start, int end)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getService().getAssetEntryAssetTags(entryId, start, end);
328 }
329
330
333 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
334 long entryId, int start, int end,
335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getService()
338 .getAssetEntryAssetTags(entryId, start, end,
339 orderByComparator);
340 }
341
342
345 public static int getAssetEntryAssetTagsCount(long entryId)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getService().getAssetEntryAssetTagsCount(entryId);
348 }
349
350
353 public static boolean hasAssetEntryAssetTag(long entryId, long tagId)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 return getService().hasAssetEntryAssetTag(entryId, tagId);
356 }
357
358
361 public static boolean hasAssetEntryAssetTags(long entryId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getService().hasAssetEntryAssetTags(entryId);
364 }
365
366
369 public static void setAssetEntryAssetTags(long entryId, long[] tagIds)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 getService().setAssetEntryAssetTags(entryId, tagIds);
372 }
373
374
379 public static java.lang.String getBeanIdentifier() {
380 return getService().getBeanIdentifier();
381 }
382
383
388 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
389 getService().setBeanIdentifier(beanIdentifier);
390 }
391
392 public static com.liferay.portlet.asset.model.AssetTag addTag(long userId,
393 java.lang.String name, java.lang.String[] tagProperties,
394 com.liferay.portal.service.ServiceContext serviceContext)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException {
397 return getService().addTag(userId, name, tagProperties, serviceContext);
398 }
399
400 public static void addTagResources(
401 com.liferay.portlet.asset.model.AssetTag tag,
402 boolean addGroupPermissions, boolean addGuestPermissions)
403 throws com.liferay.portal.kernel.exception.PortalException,
404 com.liferay.portal.kernel.exception.SystemException {
405 getService()
406 .addTagResources(tag, addGroupPermissions, addGuestPermissions);
407 }
408
409 public static void addTagResources(
410 com.liferay.portlet.asset.model.AssetTag tag,
411 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException {
414 getService().addTagResources(tag, groupPermissions, guestPermissions);
415 }
416
417 public static void checkTags(long userId, long groupId,
418 java.lang.String[] names)
419 throws com.liferay.portal.kernel.exception.PortalException,
420 com.liferay.portal.kernel.exception.SystemException {
421 getService().checkTags(userId, groupId, names);
422 }
423
424 public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
425 long tagId, long classNameId)
426 throws com.liferay.portal.kernel.exception.PortalException,
427 com.liferay.portal.kernel.exception.SystemException {
428 return getService().decrementAssetCount(tagId, classNameId);
429 }
430
431 public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
432 throws com.liferay.portal.kernel.exception.PortalException,
433 com.liferay.portal.kernel.exception.SystemException {
434 getService().deleteTag(tag);
435 }
436
437 public static void deleteTag(long tagId)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException {
440 getService().deleteTag(tagId);
441 }
442
443 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
444 long entryId)
445 throws com.liferay.portal.kernel.exception.SystemException {
446 return getService().getEntryTags(entryId);
447 }
448
449 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
450 long[] groupIds)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 return getService().getGroupsTags(groupIds);
453 }
454
455 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
456 long groupId)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getService().getGroupTags(groupId);
459 }
460
461 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
462 long groupId, int start, int end)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService().getGroupTags(groupId, start, end);
465 }
466
467 public static int getGroupTagsCount(long groupId)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 return getService().getGroupTagsCount(groupId);
470 }
471
472 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
473 long groupId, java.lang.String socialActivityCounterName,
474 int startOffset, int endOffset)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 return getService()
477 .getSocialActivityCounterOffsetTags(groupId,
478 socialActivityCounterName, startOffset, endOffset);
479 }
480
481 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
482 long groupId, java.lang.String socialActivityCounterName,
483 int startPeriod, int endPeriod)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 return getService()
486 .getSocialActivityCounterPeriodTags(groupId,
487 socialActivityCounterName, startPeriod, endPeriod);
488 }
489
490 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
491 throws com.liferay.portal.kernel.exception.PortalException,
492 com.liferay.portal.kernel.exception.SystemException {
493 return getService().getTag(tagId);
494 }
495
496 public static com.liferay.portlet.asset.model.AssetTag getTag(
497 long groupId, java.lang.String name)
498 throws com.liferay.portal.kernel.exception.PortalException,
499 com.liferay.portal.kernel.exception.SystemException {
500 return getService().getTag(groupId, name);
501 }
502
503 public static long[] getTagIds(long groupId, java.lang.String[] names)
504 throws com.liferay.portal.kernel.exception.PortalException,
505 com.liferay.portal.kernel.exception.SystemException {
506 return getService().getTagIds(groupId, names);
507 }
508
509 public static long[] getTagIds(long[] groupIds, java.lang.String name)
510 throws com.liferay.portal.kernel.exception.PortalException,
511 com.liferay.portal.kernel.exception.SystemException {
512 return getService().getTagIds(groupIds, name);
513 }
514
515 public static long[] getTagIds(long[] groupIds, java.lang.String[] names)
516 throws com.liferay.portal.kernel.exception.PortalException,
517 com.liferay.portal.kernel.exception.SystemException {
518 return getService().getTagIds(groupIds, names);
519 }
520
521 public static java.lang.String[] getTagNames()
522 throws com.liferay.portal.kernel.exception.SystemException {
523 return getService().getTagNames();
524 }
525
526 public static java.lang.String[] getTagNames(long classNameId, long classPK)
527 throws com.liferay.portal.kernel.exception.SystemException {
528 return getService().getTagNames(classNameId, classPK);
529 }
530
531 public static java.lang.String[] getTagNames(java.lang.String className,
532 long classPK)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getService().getTagNames(className, classPK);
535 }
536
537 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
538 throws com.liferay.portal.kernel.exception.SystemException {
539 return getService().getTags();
540 }
541
542 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
543 long classNameId, long classPK)
544 throws com.liferay.portal.kernel.exception.SystemException {
545 return getService().getTags(classNameId, classPK);
546 }
547
548 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
549 long groupId, long classNameId, java.lang.String name)
550 throws com.liferay.portal.kernel.exception.SystemException {
551 return getService().getTags(groupId, classNameId, name);
552 }
553
554 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
555 long groupId, long classNameId, java.lang.String name, int start,
556 int end) throws com.liferay.portal.kernel.exception.SystemException {
557 return getService().getTags(groupId, classNameId, name, start, end);
558 }
559
560 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
561 java.lang.String className, long classPK)
562 throws com.liferay.portal.kernel.exception.SystemException {
563 return getService().getTags(className, classPK);
564 }
565
566 public static int getTagsSize(long groupId, long classNameId,
567 java.lang.String name)
568 throws com.liferay.portal.kernel.exception.SystemException {
569 return getService().getTagsSize(groupId, classNameId, name);
570 }
571
572 public static boolean hasTag(long groupId, java.lang.String name)
573 throws com.liferay.portal.kernel.exception.PortalException,
574 com.liferay.portal.kernel.exception.SystemException {
575 return getService().hasTag(groupId, name);
576 }
577
578 public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
579 long tagId, long classNameId)
580 throws com.liferay.portal.kernel.exception.PortalException,
581 com.liferay.portal.kernel.exception.SystemException {
582 return getService().incrementAssetCount(tagId, classNameId);
583 }
584
585 public static void mergeTags(long fromTagId, long toTagId,
586 boolean overrideProperties)
587 throws com.liferay.portal.kernel.exception.PortalException,
588 com.liferay.portal.kernel.exception.SystemException {
589 getService().mergeTags(fromTagId, toTagId, overrideProperties);
590 }
591
592 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
593 long groupId, java.lang.String name, java.lang.String[] tagProperties,
594 int start, int end)
595 throws com.liferay.portal.kernel.exception.SystemException {
596 return getService().search(groupId, name, tagProperties, start, end);
597 }
598
599 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
600 long[] groupIds, java.lang.String name,
601 java.lang.String[] tagProperties, int start, int end)
602 throws com.liferay.portal.kernel.exception.SystemException {
603 return getService().search(groupIds, name, tagProperties, start, end);
604 }
605
606 public static com.liferay.portlet.asset.model.AssetTag updateTag(
607 long userId, long tagId, java.lang.String name,
608 java.lang.String[] tagProperties,
609 com.liferay.portal.service.ServiceContext serviceContext)
610 throws com.liferay.portal.kernel.exception.PortalException,
611 com.liferay.portal.kernel.exception.SystemException {
612 return getService()
613 .updateTag(userId, tagId, name, tagProperties, serviceContext);
614 }
615
616 public static AssetTagLocalService getService() {
617 if (_service == null) {
618 _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
619
620 ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class,
621 "_service");
622 }
623
624 return _service;
625 }
626
627
630 public void setService(AssetTagLocalService service) {
631 }
632
633 private static AssetTagLocalService _service;
634 }