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 public static void checkTags(long userId, long groupId,
434 java.lang.String[] names)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException {
437 getService().checkTags(userId, groupId, names);
438 }
439
440 public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
441 long tagId, long classNameId)
442 throws com.liferay.portal.kernel.exception.PortalException,
443 com.liferay.portal.kernel.exception.SystemException {
444 return getService().decrementAssetCount(tagId, classNameId);
445 }
446
447 public static void deleteGroupTags(long groupId)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException {
450 getService().deleteGroupTags(groupId);
451 }
452
453 public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException {
456 getService().deleteTag(tag);
457 }
458
459 public static void deleteTag(long tagId)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException {
462 getService().deleteTag(tagId);
463 }
464
465 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
466 long entryId)
467 throws com.liferay.portal.kernel.exception.SystemException {
468 return getService().getEntryTags(entryId);
469 }
470
471 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
472 long[] groupIds)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return getService().getGroupsTags(groupIds);
475 }
476
477 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
478 long groupId)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getService().getGroupTags(groupId);
481 }
482
483 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
484 long groupId, int start, int end)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getService().getGroupTags(groupId, start, end);
487 }
488
489 public static int getGroupTagsCount(long groupId)
490 throws com.liferay.portal.kernel.exception.SystemException {
491 return getService().getGroupTagsCount(groupId);
492 }
493
494 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
495 long groupId, java.lang.String socialActivityCounterName,
496 int startOffset, int endOffset)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getService()
499 .getSocialActivityCounterOffsetTags(groupId,
500 socialActivityCounterName, startOffset, endOffset);
501 }
502
503 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
504 long groupId, java.lang.String socialActivityCounterName,
505 int startPeriod, int endPeriod)
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return getService()
508 .getSocialActivityCounterPeriodTags(groupId,
509 socialActivityCounterName, startPeriod, endPeriod);
510 }
511
512 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
513 throws com.liferay.portal.kernel.exception.PortalException,
514 com.liferay.portal.kernel.exception.SystemException {
515 return getService().getTag(tagId);
516 }
517
518 public static com.liferay.portlet.asset.model.AssetTag getTag(
519 long groupId, java.lang.String name)
520 throws com.liferay.portal.kernel.exception.PortalException,
521 com.liferay.portal.kernel.exception.SystemException {
522 return getService().getTag(groupId, name);
523 }
524
525 public static long[] getTagIds(long groupId, java.lang.String[] names)
526 throws com.liferay.portal.kernel.exception.PortalException,
527 com.liferay.portal.kernel.exception.SystemException {
528 return getService().getTagIds(groupId, names);
529 }
530
531 public static long[] getTagIds(long[] groupIds, java.lang.String name)
532 throws com.liferay.portal.kernel.exception.PortalException,
533 com.liferay.portal.kernel.exception.SystemException {
534 return getService().getTagIds(groupIds, name);
535 }
536
537 public static long[] getTagIds(long[] groupIds, java.lang.String[] names)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException {
540 return getService().getTagIds(groupIds, names);
541 }
542
543 public static java.lang.String[] getTagNames()
544 throws com.liferay.portal.kernel.exception.SystemException {
545 return getService().getTagNames();
546 }
547
548 public static java.lang.String[] getTagNames(long classNameId, long classPK)
549 throws com.liferay.portal.kernel.exception.SystemException {
550 return getService().getTagNames(classNameId, classPK);
551 }
552
553 public static java.lang.String[] getTagNames(java.lang.String className,
554 long classPK)
555 throws com.liferay.portal.kernel.exception.SystemException {
556 return getService().getTagNames(className, classPK);
557 }
558
559 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
560 throws com.liferay.portal.kernel.exception.SystemException {
561 return getService().getTags();
562 }
563
564 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
565 long classNameId, long classPK)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 return getService().getTags(classNameId, classPK);
568 }
569
570 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
571 long groupId, long classNameId, java.lang.String name)
572 throws com.liferay.portal.kernel.exception.SystemException {
573 return getService().getTags(groupId, classNameId, name);
574 }
575
576 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
577 long groupId, long classNameId, java.lang.String name, int start,
578 int end) throws com.liferay.portal.kernel.exception.SystemException {
579 return getService().getTags(groupId, classNameId, name, start, end);
580 }
581
582 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
583 java.lang.String className, long classPK)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 return getService().getTags(className, classPK);
586 }
587
588 public static int getTagsSize(long groupId, long classNameId,
589 java.lang.String name)
590 throws com.liferay.portal.kernel.exception.SystemException {
591 return getService().getTagsSize(groupId, classNameId, name);
592 }
593
594 public static boolean hasTag(long groupId, java.lang.String name)
595 throws com.liferay.portal.kernel.exception.PortalException,
596 com.liferay.portal.kernel.exception.SystemException {
597 return getService().hasTag(groupId, name);
598 }
599
600 public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
601 long tagId, long classNameId)
602 throws com.liferay.portal.kernel.exception.PortalException,
603 com.liferay.portal.kernel.exception.SystemException {
604 return getService().incrementAssetCount(tagId, classNameId);
605 }
606
607 public static void mergeTags(long fromTagId, long toTagId,
608 boolean overrideProperties)
609 throws com.liferay.portal.kernel.exception.PortalException,
610 com.liferay.portal.kernel.exception.SystemException {
611 getService().mergeTags(fromTagId, toTagId, overrideProperties);
612 }
613
614 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
615 long groupId, java.lang.String name, java.lang.String[] tagProperties,
616 int start, int end)
617 throws com.liferay.portal.kernel.exception.SystemException {
618 return getService().search(groupId, name, tagProperties, start, end);
619 }
620
621 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
622 long[] groupIds, java.lang.String name,
623 java.lang.String[] tagProperties, int start, int end)
624 throws com.liferay.portal.kernel.exception.SystemException {
625 return getService().search(groupIds, name, tagProperties, start, end);
626 }
627
628 public static com.liferay.portlet.asset.model.AssetTag updateTag(
629 long userId, long tagId, java.lang.String name,
630 java.lang.String[] tagProperties,
631 com.liferay.portal.service.ServiceContext serviceContext)
632 throws com.liferay.portal.kernel.exception.PortalException,
633 com.liferay.portal.kernel.exception.SystemException {
634 return getService()
635 .updateTag(userId, tagId, name, tagProperties, serviceContext);
636 }
637
638 public static AssetTagLocalService getService() {
639 if (_service == null) {
640 _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
641
642 ReferenceRegistry.registerReference(AssetTagLocalServiceUtil.class,
643 "_service");
644 }
645
646 return _service;
647 }
648
649
652 public void setService(AssetTagLocalService service) {
653 }
654
655 private static AssetTagLocalService _service;
656 }