001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class AssetTagLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.asset.model.AssetTag addAssetTag(
052 com.liferay.portlet.asset.model.AssetTag assetTag)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addAssetTag(assetTag);
055 }
056
057
063 public static com.liferay.portlet.asset.model.AssetTag createAssetTag(
064 long tagId) {
065 return getService().createAssetTag(tagId);
066 }
067
068
076 public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
077 long tagId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteAssetTag(tagId);
081 }
082
083
090 public static com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
091 com.liferay.portlet.asset.model.AssetTag assetTag)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteAssetTag(assetTag);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.asset.model.AssetTag fetchAssetTag(
187 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
188 return getService().fetchAssetTag(tagId);
189 }
190
191
199 public static com.liferay.portlet.asset.model.AssetTag getAssetTag(
200 long tagId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 return getService().getAssetTag(tagId);
204 }
205
206 public static com.liferay.portal.model.PersistedModel getPersistedModel(
207 java.io.Serializable primaryKeyObj)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException {
210 return getService().getPersistedModel(primaryKeyObj);
211 }
212
213
225 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
226 int start, int end)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().getAssetTags(start, end);
229 }
230
231
237 public static int getAssetTagsCount()
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getService().getAssetTagsCount();
240 }
241
242
249 public static com.liferay.portlet.asset.model.AssetTag updateAssetTag(
250 com.liferay.portlet.asset.model.AssetTag assetTag)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getService().updateAssetTag(assetTag);
253 }
254
255
258 public static void addAssetEntryAssetTag(long entryId, long tagId)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 getService().addAssetEntryAssetTag(entryId, tagId);
261 }
262
263
266 public static void addAssetEntryAssetTag(long entryId,
267 com.liferay.portlet.asset.model.AssetTag assetTag)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 getService().addAssetEntryAssetTag(entryId, assetTag);
270 }
271
272
275 public static void addAssetEntryAssetTags(long entryId, long[] tagIds)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getService().addAssetEntryAssetTags(entryId, tagIds);
278 }
279
280
283 public static void addAssetEntryAssetTags(long entryId,
284 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().addAssetEntryAssetTags(entryId, AssetTags);
287 }
288
289
292 public static void clearAssetEntryAssetTags(long entryId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().clearAssetEntryAssetTags(entryId);
295 }
296
297
300 public static void deleteAssetEntryAssetTag(long entryId, long tagId)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 getService().deleteAssetEntryAssetTag(entryId, tagId);
303 }
304
305
308 public static void deleteAssetEntryAssetTag(long entryId,
309 com.liferay.portlet.asset.model.AssetTag assetTag)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 getService().deleteAssetEntryAssetTag(entryId, assetTag);
312 }
313
314
317 public static void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 getService().deleteAssetEntryAssetTags(entryId, tagIds);
320 }
321
322
325 public static void deleteAssetEntryAssetTags(long entryId,
326 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 getService().deleteAssetEntryAssetTags(entryId, AssetTags);
329 }
330
331
334 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
335 long entryId)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getService().getAssetEntryAssetTags(entryId);
338 }
339
340
343 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
344 long entryId, int start, int end)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getService().getAssetEntryAssetTags(entryId, start, end);
347 }
348
349
352 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
353 long entryId, int start, int end,
354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getService()
357 .getAssetEntryAssetTags(entryId, start, end,
358 orderByComparator);
359 }
360
361
364 public static int getAssetEntryAssetTagsCount(long entryId)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 return getService().getAssetEntryAssetTagsCount(entryId);
367 }
368
369
372 public static boolean hasAssetEntryAssetTag(long entryId, long tagId)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getService().hasAssetEntryAssetTag(entryId, tagId);
375 }
376
377
380 public static boolean hasAssetEntryAssetTags(long entryId)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getService().hasAssetEntryAssetTags(entryId);
383 }
384
385
388 public static void setAssetEntryAssetTags(long entryId, long[] tagIds)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 getService().setAssetEntryAssetTags(entryId, tagIds);
391 }
392
393
398 public static java.lang.String getBeanIdentifier() {
399 return getService().getBeanIdentifier();
400 }
401
402
407 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
408 getService().setBeanIdentifier(beanIdentifier);
409 }
410
411 public static com.liferay.portlet.asset.model.AssetTag addTag(long userId,
412 java.lang.String name, java.lang.String[] tagProperties,
413 com.liferay.portal.service.ServiceContext serviceContext)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 return getService().addTag(userId, name, tagProperties, serviceContext);
417 }
418
419 public static void addTagResources(
420 com.liferay.portlet.asset.model.AssetTag tag,
421 boolean addGroupPermissions, boolean addGuestPermissions)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException {
424 getService()
425 .addTagResources(tag, addGroupPermissions, addGuestPermissions);
426 }
427
428 public static void addTagResources(
429 com.liferay.portlet.asset.model.AssetTag tag,
430 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
431 throws com.liferay.portal.kernel.exception.PortalException,
432 com.liferay.portal.kernel.exception.SystemException {
433 getService().addTagResources(tag, groupPermissions, guestPermissions);
434 }
435
436
457 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
458 long userId, com.liferay.portal.model.Group group,
459 java.lang.String[] names)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException {
462 return getService().checkTags(userId, group, names);
463 }
464
465 public static void checkTags(long userId, long groupId,
466 java.lang.String[] names)
467 throws com.liferay.portal.kernel.exception.PortalException,
468 com.liferay.portal.kernel.exception.SystemException {
469 getService().checkTags(userId, groupId, names);
470 }
471
472 public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
473 long tagId, long classNameId)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException {
476 return getService().decrementAssetCount(tagId, classNameId);
477 }
478
479 public static void deleteGroupTags(long groupId)
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 getService().deleteGroupTags(groupId);
483 }
484
485 public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException {
488 getService().deleteTag(tag);
489 }
490
491 public static void deleteTag(long tagId)
492 throws com.liferay.portal.kernel.exception.PortalException,
493 com.liferay.portal.kernel.exception.SystemException {
494 getService().deleteTag(tagId);
495 }
496
497 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
498 long entryId)
499 throws com.liferay.portal.kernel.exception.SystemException {
500 return getService().getEntryTags(entryId);
501 }
502
503 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
504 long[] groupIds)
505 throws com.liferay.portal.kernel.exception.SystemException {
506 return getService().getGroupsTags(groupIds);
507 }
508
509 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
510 long groupId)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 return getService().getGroupTags(groupId);
513 }
514
515 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
516 long groupId, int start, int end)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 return getService().getGroupTags(groupId, start, end);
519 }
520
521 public static int getGroupTagsCount(long groupId)
522 throws com.liferay.portal.kernel.exception.SystemException {
523 return getService().getGroupTagsCount(groupId);
524 }
525
526 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
527 long groupId, java.lang.String socialActivityCounterName,
528 int startOffset, int endOffset)
529 throws com.liferay.portal.kernel.exception.SystemException {
530 return getService()
531 .getSocialActivityCounterOffsetTags(groupId,
532 socialActivityCounterName, startOffset, endOffset);
533 }
534
535 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
536 long groupId, java.lang.String socialActivityCounterName,
537 int startPeriod, int endPeriod)
538 throws com.liferay.portal.kernel.exception.SystemException {
539 return getService()
540 .getSocialActivityCounterPeriodTags(groupId,
541 socialActivityCounterName, startPeriod, endPeriod);
542 }
543
544 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
545 throws com.liferay.portal.kernel.exception.PortalException,
546 com.liferay.portal.kernel.exception.SystemException {
547 return getService().getTag(tagId);
548 }
549
550 public static com.liferay.portlet.asset.model.AssetTag getTag(
551 long groupId, java.lang.String name)
552 throws com.liferay.portal.kernel.exception.PortalException,
553 com.liferay.portal.kernel.exception.SystemException {
554 return getService().getTag(groupId, name);
555 }
556
557 public static long[] getTagIds(long groupId, java.lang.String[] names)
558 throws com.liferay.portal.kernel.exception.PortalException,
559 com.liferay.portal.kernel.exception.SystemException {
560 return getService().getTagIds(groupId, names);
561 }
562
563 public static long[] getTagIds(long[] groupIds, java.lang.String name)
564 throws com.liferay.portal.kernel.exception.PortalException,
565 com.liferay.portal.kernel.exception.SystemException {
566 return getService().getTagIds(groupIds, name);
567 }
568
569 public static long[] getTagIds(long[] groupIds, java.lang.String[] names)
570 throws com.liferay.portal.kernel.exception.PortalException,
571 com.liferay.portal.kernel.exception.SystemException {
572 return getService().getTagIds(groupIds, names);
573 }
574
575 public static java.lang.String[] getTagNames()
576 throws com.liferay.portal.kernel.exception.SystemException {
577 return getService().getTagNames();
578 }
579
580 public static java.lang.String[] getTagNames(long classNameId, long classPK)
581 throws com.liferay.portal.kernel.exception.SystemException {
582 return getService().getTagNames(classNameId, classPK);
583 }
584
585 public static java.lang.String[] getTagNames(java.lang.String className,
586 long classPK)
587 throws com.liferay.portal.kernel.exception.SystemException {
588 return getService().getTagNames(className, classPK);
589 }
590
591 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
592 throws com.liferay.portal.kernel.exception.SystemException {
593 return getService().getTags();
594 }
595
596 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
597 long classNameId, long classPK)
598 throws com.liferay.portal.kernel.exception.SystemException {
599 return getService().getTags(classNameId, classPK);
600 }
601
602 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
603 long groupId, long classNameId, java.lang.String name)
604 throws com.liferay.portal.kernel.exception.SystemException {
605 return getService().getTags(groupId, classNameId, name);
606 }
607
608 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
609 long groupId, long classNameId, java.lang.String name, int start,
610 int end) throws com.liferay.portal.kernel.exception.SystemException {
611 return getService().getTags(groupId, classNameId, name, start, end);
612 }
613
614 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
615 java.lang.String className, long classPK)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 return getService().getTags(className, classPK);
618 }
619
620 public static int getTagsSize(long groupId, long classNameId,
621 java.lang.String name)
622 throws com.liferay.portal.kernel.exception.SystemException {
623 return getService().getTagsSize(groupId, classNameId, name);
624 }
625
626 public static boolean hasTag(long groupId, java.lang.String name)
627 throws com.liferay.portal.kernel.exception.PortalException,
628 com.liferay.portal.kernel.exception.SystemException {
629 return getService().hasTag(groupId, name);
630 }
631
632 public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
633 long tagId, long classNameId)
634 throws com.liferay.portal.kernel.exception.PortalException,
635 com.liferay.portal.kernel.exception.SystemException {
636 return getService().incrementAssetCount(tagId, classNameId);
637 }
638
639 public static void mergeTags(long fromTagId, long toTagId,
640 boolean overrideProperties)
641 throws com.liferay.portal.kernel.exception.PortalException,
642 com.liferay.portal.kernel.exception.SystemException {
643 getService().mergeTags(fromTagId, toTagId, overrideProperties);
644 }
645
646 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
647 long groupId, java.lang.String name, java.lang.String[] tagProperties,
648 int start, int end)
649 throws com.liferay.portal.kernel.exception.SystemException {
650 return getService().search(groupId, name, tagProperties, start, end);
651 }
652
653 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
654 long[] groupIds, java.lang.String name,
655 java.lang.String[] tagProperties, int start, int end)
656 throws com.liferay.portal.kernel.exception.SystemException {
657 return getService().search(groupIds, name, tagProperties, start, end);
658 }
659
660 public static com.liferay.portlet.asset.model.AssetTag updateTag(
661 long userId, long tagId, java.lang.String name,
662 java.lang.String[] tagProperties,
663 com.liferay.portal.service.ServiceContext serviceContext)
664 throws com.liferay.portal.kernel.exception.PortalException,
665 com.liferay.portal.kernel.exception.SystemException {
666 return getService()
667 .updateTag(userId, tagId, name, tagProperties, serviceContext);
668 }
669
670 public static AssetTagLocalService getService() {
671 if (_service == null) {
672 _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
673
674 ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class,
675 "_service");
676 }
677
678 return _service;
679 }
680
681
684 public void setService(AssetTagLocalService service) {
685 }
686
687 private static AssetTagLocalService _service;
688 }