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