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
034 public class AssetTagLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.asset.model.AssetTag addAssetTag(
049 com.liferay.portlet.asset.model.AssetTag assetTag)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addAssetTag(assetTag);
052 }
053
054
060 public static com.liferay.portlet.asset.model.AssetTag createAssetTag(
061 long tagId) {
062 return getService().createAssetTag(tagId);
063 }
064
065
073 public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
074 long tagId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteAssetTag(tagId);
078 }
079
080
087 public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
088 com.liferay.portlet.asset.model.AssetTag assetTag)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteAssetTag(assetTag);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetTag fetchAssetTag(
184 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().fetchAssetTag(tagId);
186 }
187
188
196 public static com.liferay.portlet.asset.model.AssetTag getAssetTag(
197 long tagId)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException {
200 return getService().getAssetTag(tagId);
201 }
202
203 public static com.liferay.portal.model.PersistedModel getPersistedModel(
204 java.io.Serializable primaryKeyObj)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getService().getPersistedModel(primaryKeyObj);
208 }
209
210
222 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
223 int start, int end)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().getAssetTags(start, end);
226 }
227
228
234 public static int getAssetTagsCount()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().getAssetTagsCount();
237 }
238
239
246 public static com.liferay.portlet.asset.model.AssetTag updateAssetTag(
247 com.liferay.portlet.asset.model.AssetTag assetTag)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateAssetTag(assetTag);
250 }
251
252
255 public static void addAssetEntryAssetTag(long entryId, long tagId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getService().addAssetEntryAssetTag(entryId, tagId);
258 }
259
260
263 public static void addAssetEntryAssetTag(long entryId,
264 com.liferay.portlet.asset.model.AssetTag assetTag)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getService().addAssetEntryAssetTag(entryId, assetTag);
267 }
268
269
272 public static void addAssetEntryAssetTags(long entryId, long[] tagIds)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 getService().addAssetEntryAssetTags(entryId, tagIds);
275 }
276
277
280 public static void addAssetEntryAssetTags(long entryId,
281 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getService().addAssetEntryAssetTags(entryId, AssetTags);
284 }
285
286
289 public static void clearAssetEntryAssetTags(long entryId)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 getService().clearAssetEntryAssetTags(entryId);
292 }
293
294
297 public static void deleteAssetEntryAssetTag(long entryId, long tagId)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getService().deleteAssetEntryAssetTag(entryId, tagId);
300 }
301
302
305 public static void deleteAssetEntryAssetTag(long entryId,
306 com.liferay.portlet.asset.model.AssetTag assetTag)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 getService().deleteAssetEntryAssetTag(entryId, assetTag);
309 }
310
311
314 public static void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 getService().deleteAssetEntryAssetTags(entryId, tagIds);
317 }
318
319
322 public static void deleteAssetEntryAssetTags(long entryId,
323 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 getService().deleteAssetEntryAssetTags(entryId, AssetTags);
326 }
327
328
331 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
332 long entryId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().getAssetEntryAssetTags(entryId);
335 }
336
337
340 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
341 long entryId, int start, int end)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getService().getAssetEntryAssetTags(entryId, start, end);
344 }
345
346
349 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
350 long entryId, int start, int end,
351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return getService()
354 .getAssetEntryAssetTags(entryId, start, end,
355 orderByComparator);
356 }
357
358
361 public static int getAssetEntryAssetTagsCount(long entryId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getService().getAssetEntryAssetTagsCount(entryId);
364 }
365
366
369 public static boolean hasAssetEntryAssetTag(long entryId, long tagId)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 return getService().hasAssetEntryAssetTag(entryId, tagId);
372 }
373
374
377 public static boolean hasAssetEntryAssetTags(long entryId)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 return getService().hasAssetEntryAssetTags(entryId);
380 }
381
382
385 public static void setAssetEntryAssetTags(long entryId, long[] tagIds)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 getService().setAssetEntryAssetTags(entryId, tagIds);
388 }
389
390
395 public static java.lang.String getBeanIdentifier() {
396 return getService().getBeanIdentifier();
397 }
398
399
404 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
405 getService().setBeanIdentifier(beanIdentifier);
406 }
407
408 public static com.liferay.portlet.asset.model.AssetTag addTag(long userId,
409 java.lang.String name, java.lang.String[] tagProperties,
410 com.liferay.portal.service.ServiceContext serviceContext)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 return getService().addTag(userId, name, tagProperties, serviceContext);
414 }
415
416 public static void addTagResources(
417 com.liferay.portlet.asset.model.AssetTag tag,
418 boolean addGroupPermissions, boolean addGuestPermissions)
419 throws com.liferay.portal.kernel.exception.PortalException,
420 com.liferay.portal.kernel.exception.SystemException {
421 getService()
422 .addTagResources(tag, addGroupPermissions, addGuestPermissions);
423 }
424
425 public static void addTagResources(
426 com.liferay.portlet.asset.model.AssetTag tag,
427 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException {
430 getService().addTagResources(tag, groupPermissions, guestPermissions);
431 }
432
433
454 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
455 long userId, com.liferay.portal.model.Group group,
456 java.lang.String[] names)
457 throws com.liferay.portal.kernel.exception.PortalException,
458 com.liferay.portal.kernel.exception.SystemException {
459 return getService().checkTags(userId, group, names);
460 }
461
462 public static void checkTags(long userId, long groupId,
463 java.lang.String[] names)
464 throws com.liferay.portal.kernel.exception.PortalException,
465 com.liferay.portal.kernel.exception.SystemException {
466 getService().checkTags(userId, groupId, names);
467 }
468
469 public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
470 long tagId, long classNameId)
471 throws com.liferay.portal.kernel.exception.PortalException,
472 com.liferay.portal.kernel.exception.SystemException {
473 return getService().decrementAssetCount(tagId, classNameId);
474 }
475
476 public static void deleteGroupTags(long groupId)
477 throws com.liferay.portal.kernel.exception.PortalException,
478 com.liferay.portal.kernel.exception.SystemException {
479 getService().deleteGroupTags(groupId);
480 }
481
482 public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException {
485 getService().deleteTag(tag);
486 }
487
488 public static void deleteTag(long tagId)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException {
491 getService().deleteTag(tagId);
492 }
493
494 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
495 long entryId)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 return getService().getEntryTags(entryId);
498 }
499
500 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
501 long[] groupIds)
502 throws com.liferay.portal.kernel.exception.SystemException {
503 return getService().getGroupsTags(groupIds);
504 }
505
506 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
507 long groupId)
508 throws com.liferay.portal.kernel.exception.SystemException {
509 return getService().getGroupTags(groupId);
510 }
511
512 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
513 long groupId, int start, int end)
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return getService().getGroupTags(groupId, start, end);
516 }
517
518 public static int getGroupTagsCount(long groupId)
519 throws com.liferay.portal.kernel.exception.SystemException {
520 return getService().getGroupTagsCount(groupId);
521 }
522
523 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
524 long groupId, java.lang.String socialActivityCounterName,
525 int startOffset, int endOffset)
526 throws com.liferay.portal.kernel.exception.SystemException {
527 return getService()
528 .getSocialActivityCounterOffsetTags(groupId,
529 socialActivityCounterName, startOffset, endOffset);
530 }
531
532 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
533 long groupId, java.lang.String socialActivityCounterName,
534 int startPeriod, int endPeriod)
535 throws com.liferay.portal.kernel.exception.SystemException {
536 return getService()
537 .getSocialActivityCounterPeriodTags(groupId,
538 socialActivityCounterName, startPeriod, endPeriod);
539 }
540
541 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException {
544 return getService().getTag(tagId);
545 }
546
547 public static com.liferay.portlet.asset.model.AssetTag getTag(
548 long groupId, java.lang.String name)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException {
551 return getService().getTag(groupId, name);
552 }
553
554 public static long[] getTagIds(long groupId, java.lang.String[] names)
555 throws com.liferay.portal.kernel.exception.PortalException,
556 com.liferay.portal.kernel.exception.SystemException {
557 return getService().getTagIds(groupId, names);
558 }
559
560 public static long[] getTagIds(long[] groupIds, java.lang.String name)
561 throws com.liferay.portal.kernel.exception.PortalException,
562 com.liferay.portal.kernel.exception.SystemException {
563 return getService().getTagIds(groupIds, name);
564 }
565
566 public static long[] getTagIds(long[] groupIds, java.lang.String[] names)
567 throws com.liferay.portal.kernel.exception.PortalException,
568 com.liferay.portal.kernel.exception.SystemException {
569 return getService().getTagIds(groupIds, names);
570 }
571
572 public static java.lang.String[] getTagNames()
573 throws com.liferay.portal.kernel.exception.SystemException {
574 return getService().getTagNames();
575 }
576
577 public static java.lang.String[] getTagNames(long classNameId, long classPK)
578 throws com.liferay.portal.kernel.exception.SystemException {
579 return getService().getTagNames(classNameId, classPK);
580 }
581
582 public static java.lang.String[] getTagNames(java.lang.String className,
583 long classPK)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 return getService().getTagNames(className, classPK);
586 }
587
588 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
589 throws com.liferay.portal.kernel.exception.SystemException {
590 return getService().getTags();
591 }
592
593 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
594 long classNameId, long classPK)
595 throws com.liferay.portal.kernel.exception.SystemException {
596 return getService().getTags(classNameId, classPK);
597 }
598
599 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
600 long groupId, long classNameId, java.lang.String name)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 return getService().getTags(groupId, classNameId, name);
603 }
604
605 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
606 long groupId, long classNameId, java.lang.String name, int start,
607 int end) throws com.liferay.portal.kernel.exception.SystemException {
608 return getService().getTags(groupId, classNameId, name, start, end);
609 }
610
611 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
612 java.lang.String className, long classPK)
613 throws com.liferay.portal.kernel.exception.SystemException {
614 return getService().getTags(className, classPK);
615 }
616
617 public static int getTagsSize(long groupId, long classNameId,
618 java.lang.String name)
619 throws com.liferay.portal.kernel.exception.SystemException {
620 return getService().getTagsSize(groupId, classNameId, name);
621 }
622
623 public static boolean hasTag(long groupId, java.lang.String name)
624 throws com.liferay.portal.kernel.exception.PortalException,
625 com.liferay.portal.kernel.exception.SystemException {
626 return getService().hasTag(groupId, name);
627 }
628
629 public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
630 long tagId, long classNameId)
631 throws com.liferay.portal.kernel.exception.PortalException,
632 com.liferay.portal.kernel.exception.SystemException {
633 return getService().incrementAssetCount(tagId, classNameId);
634 }
635
636 public static void mergeTags(long fromTagId, long toTagId,
637 boolean overrideProperties)
638 throws com.liferay.portal.kernel.exception.PortalException,
639 com.liferay.portal.kernel.exception.SystemException {
640 getService().mergeTags(fromTagId, toTagId, overrideProperties);
641 }
642
643 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
644 long groupId, java.lang.String name, java.lang.String[] tagProperties,
645 int start, int end)
646 throws com.liferay.portal.kernel.exception.SystemException {
647 return getService().search(groupId, name, tagProperties, start, end);
648 }
649
650 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
651 long[] groupIds, java.lang.String name,
652 java.lang.String[] tagProperties, int start, int end)
653 throws com.liferay.portal.kernel.exception.SystemException {
654 return getService().search(groupIds, name, tagProperties, start, end);
655 }
656
657 public static com.liferay.portlet.asset.model.AssetTag updateTag(
658 long userId, long tagId, java.lang.String name,
659 java.lang.String[] tagProperties,
660 com.liferay.portal.service.ServiceContext serviceContext)
661 throws com.liferay.portal.kernel.exception.PortalException,
662 com.liferay.portal.kernel.exception.SystemException {
663 return getService()
664 .updateTag(userId, tagId, name, tagProperties, serviceContext);
665 }
666
667 public static AssetTagLocalService getService() {
668 if (_service == null) {
669 _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
670
671 ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class,
672 "_service");
673 }
674
675 return _service;
676 }
677
678
681 public void setService(AssetTagLocalService service) {
682 }
683
684 private static AssetTagLocalService _service;
685 }