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