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 AssetTagServiceUtil {
038
043 public static com.liferay.portlet.asset.model.AssetTag addTag(
044 long groupId, java.lang.String name,
045 com.liferay.portal.service.ServiceContext serviceContext)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService().addTag(groupId, name, serviceContext);
048 }
049
050 public static void deleteTag(long tagId)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 getService().deleteTag(tagId);
053 }
054
055 public static void deleteTags(long[] tagIds)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 getService().deleteTags(tagIds);
058 }
059
060 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
061 long groupId) {
062 return getService().getGroupTags(groupId);
063 }
064
065 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
066 long groupId, int start, int end,
067 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
068 return getService().getGroupTags(groupId, start, end, obc);
069 }
070
071 public static int getGroupTagsCount(long groupId) {
072 return getService().getGroupTagsCount(groupId);
073 }
074
075 public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
076 long groupId, java.lang.String name, int start, int end) {
077 return getService().getGroupTagsDisplay(groupId, name, start, end);
078 }
079
080 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
081 long[] groupIds) {
082 return getService().getGroupsTags(groupIds);
083 }
084
085
089 @Deprecated
090 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
091 long groupId, java.lang.String name, int start, int end)
092 throws com.liferay.portal.kernel.exception.PortalException {
093 return getService().getJSONGroupTags(groupId, name, start, end);
094 }
095
096
101 public static java.lang.String getOSGiServiceIdentifier() {
102 return getService().getOSGiServiceIdentifier();
103 }
104
105 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
106 throws com.liferay.portal.kernel.exception.PortalException {
107 return getService().getTag(tagId);
108 }
109
110 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
111 java.lang.String className, long classPK) {
112 return getService().getTags(className, classPK);
113 }
114
115 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
116 long groupId, long classNameId, java.lang.String name) {
117 return getService().getTags(groupId, classNameId, name);
118 }
119
120 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
121 long groupId, long classNameId, java.lang.String name, int start,
122 int end,
123 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
124 return getService().getTags(groupId, classNameId, name, start, end, obc);
125 }
126
127 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
128 long groupId, java.lang.String name, int start, int end) {
129 return getService().getTags(groupId, name, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
133 long groupId, java.lang.String name, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
135 return getService().getTags(groupId, name, start, end, obc);
136 }
137
138 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
139 long[] groupIds, java.lang.String name, int start, int end) {
140 return getService().getTags(groupIds, name, start, end);
141 }
142
143 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
144 long[] groupIds, java.lang.String name, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
146 return getService().getTags(groupIds, name, start, end, obc);
147 }
148
149 public static int getTagsCount(long groupId, java.lang.String name) {
150 return getService().getTagsCount(groupId, name);
151 }
152
153 public static int getVisibleAssetsTagsCount(long groupId, long classNameId,
154 java.lang.String name) {
155 return getService().getVisibleAssetsTagsCount(groupId, classNameId, name);
156 }
157
158 public static int getVisibleAssetsTagsCount(long groupId,
159 java.lang.String name) {
160 return getService().getVisibleAssetsTagsCount(groupId, name);
161 }
162
163 public static void mergeTags(long fromTagId, long toTagId)
164 throws com.liferay.portal.kernel.exception.PortalException {
165 getService().mergeTags(fromTagId, toTagId);
166 }
167
168 public static void mergeTags(long[] fromTagIds, long toTagId)
169 throws com.liferay.portal.kernel.exception.PortalException {
170 getService().mergeTags(fromTagIds, toTagId);
171 }
172
173 public static com.liferay.portal.kernel.json.JSONArray search(
174 long groupId, java.lang.String name, int start, int end) {
175 return getService().search(groupId, name, start, end);
176 }
177
178 public static com.liferay.portal.kernel.json.JSONArray search(
179 long[] groupIds, java.lang.String name, int start, int end) {
180 return getService().search(groupIds, name, start, end);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetTag updateTag(
184 long tagId, java.lang.String name,
185 com.liferay.portal.service.ServiceContext serviceContext)
186 throws com.liferay.portal.kernel.exception.PortalException {
187 return getService().updateTag(tagId, name, serviceContext);
188 }
189
190 public static AssetTagService getService() {
191 if (_service == null) {
192 _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
193
194 ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
195 "_service");
196 }
197
198 return _service;
199 }
200
201 private static AssetTagService _service;
202 }