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.portal.kernel.json.JSONObject getJSONGroupTags(
103 long groupId, java.lang.String name, int start, int end)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 return getService().getJSONGroupTags(groupId, name, start, end);
107 }
108
109 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return getService().getTag(tagId);
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 throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().getTags(groupId, classNameId, name);
119 }
120
121 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
122 long groupId, long classNameId, java.lang.String name, int start,
123 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.kernel.exception.SystemException {
125 return getService().getTags(groupId, classNameId, name, start, end, obc);
126 }
127
128 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
129 long groupId, java.lang.String name, java.lang.String[] tagProperties,
130 int start, int end)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getService().getTags(groupId, name, tagProperties, start, end);
133 }
134
135 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
136 long[] groupIds, java.lang.String name,
137 java.lang.String[] tagProperties, int start, int end)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getService().getTags(groupIds, name, tagProperties, start, end);
140 }
141
142 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
143 java.lang.String className, long classPK)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getService().getTags(className, classPK);
147 }
148
149 public static int getTagsCount(long groupId, long classNameId,
150 java.lang.String name)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().getTagsCount(groupId, classNameId, name);
153 }
154
155 public static int getTagsCount(long groupId, java.lang.String name)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getService().getTagsCount(groupId, name);
158 }
159
160 public static int getTagsCount(long groupId, java.lang.String name,
161 java.lang.String[] tagProperties)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().getTagsCount(groupId, name, tagProperties);
164 }
165
166 public static void mergeTags(long fromTagId, long toTagId,
167 boolean overrideProperties)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException {
170 getService().mergeTags(fromTagId, toTagId, overrideProperties);
171 }
172
173 public static void mergeTags(long[] fromTagIds, long toTagId,
174 boolean overrideProperties)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException {
177 getService().mergeTags(fromTagIds, toTagId, overrideProperties);
178 }
179
180 public static com.liferay.portal.kernel.json.JSONArray search(
181 long groupId, java.lang.String name, java.lang.String[] tagProperties,
182 int start, int end)
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getService().search(groupId, name, tagProperties, start, end);
185 }
186
187 public static com.liferay.portal.kernel.json.JSONArray search(
188 long[] groupIds, java.lang.String name,
189 java.lang.String[] tagProperties, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getService().search(groupIds, name, tagProperties, start, end);
192 }
193
194 public static com.liferay.portlet.asset.model.AssetTag updateTag(
195 long tagId, java.lang.String name, java.lang.String[] tagProperties,
196 com.liferay.portal.service.ServiceContext serviceContext)
197 throws com.liferay.portal.kernel.exception.PortalException,
198 com.liferay.portal.kernel.exception.SystemException {
199 return getService().updateTag(tagId, name, tagProperties, serviceContext);
200 }
201
202 public static AssetTagService getService() {
203 if (_service == null) {
204 _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
205
206 ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
207 "_service");
208 }
209
210 return _service;
211 }
212
213
216 public void setService(AssetTagService service) {
217 }
218
219 private static AssetTagService _service;
220 }