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 java.lang.String className, long classPK)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService().getTags(className, classPK);
140 }
141
142 public static int getTagsCount(long groupId, long classNameId,
143 java.lang.String name)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getService().getTagsCount(groupId, classNameId, name);
146 }
147
148 public static int getTagsCount(long groupId, java.lang.String name)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService().getTagsCount(groupId, name);
151 }
152
153 public static int getTagsCount(long groupId, java.lang.String name,
154 java.lang.String[] tagProperties)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService().getTagsCount(groupId, name, tagProperties);
157 }
158
159 public static void mergeTags(long fromTagId, long toTagId,
160 boolean overrideProperties)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException {
163 getService().mergeTags(fromTagId, toTagId, overrideProperties);
164 }
165
166 public static void mergeTags(long[] fromTagIds, long toTagId,
167 boolean overrideProperties)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException {
170 getService().mergeTags(fromTagIds, toTagId, overrideProperties);
171 }
172
173 public static com.liferay.portal.kernel.json.JSONArray search(
174 long groupId, java.lang.String name, java.lang.String[] tagProperties,
175 int start, int end)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getService().search(groupId, name, tagProperties, start, end);
178 }
179
180 public static com.liferay.portlet.asset.model.AssetTag updateTag(
181 long tagId, java.lang.String name, java.lang.String[] tagProperties,
182 com.liferay.portal.service.ServiceContext serviceContext)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().updateTag(tagId, name, tagProperties, serviceContext);
186 }
187
188 public static AssetTagService getService() {
189 if (_service == null) {
190 _service = (AssetTagService)PortalBeanLocatorUtil.locate(AssetTagService.class.getName());
191
192 ReferenceRegistry.registerReference(AssetTagServiceUtil.class,
193 "_service");
194 }
195
196 return _service;
197 }
198
199
202 public void setService(AssetTagService service) {
203 }
204
205 private static AssetTagService _service;
206 }