1
14
15 package com.liferay.portlet.asset.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class AssetTagLocalServiceUtil {
40 public static com.liferay.portlet.asset.model.AssetTag addAssetTag(
41 com.liferay.portlet.asset.model.AssetTag assetTag)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addAssetTag(assetTag);
44 }
45
46 public static com.liferay.portlet.asset.model.AssetTag createAssetTag(
47 long tagId) {
48 return getService().createAssetTag(tagId);
49 }
50
51 public static void deleteAssetTag(long tagId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteAssetTag(tagId);
55 }
56
57 public static void deleteAssetTag(
58 com.liferay.portlet.asset.model.AssetTag assetTag)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteAssetTag(assetTag);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.asset.model.AssetTag getAssetTag(
76 long tagId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getAssetTag(tagId);
80 }
81
82 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getAssetTags(start, end);
86 }
87
88 public static int getAssetTagsCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getAssetTagsCount();
91 }
92
93 public static com.liferay.portlet.asset.model.AssetTag updateAssetTag(
94 com.liferay.portlet.asset.model.AssetTag assetTag)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updateAssetTag(assetTag);
97 }
98
99 public static com.liferay.portlet.asset.model.AssetTag updateAssetTag(
100 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().updateAssetTag(assetTag, merge);
103 }
104
105 public static com.liferay.portlet.asset.model.AssetTag addTag(long userId,
106 java.lang.String name, java.lang.String[] tagProperties,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 return getService().addTag(userId, name, tagProperties, serviceContext);
111 }
112
113 public static void addTagResources(
114 com.liferay.portlet.asset.model.AssetTag tag,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 getService()
119 .addTagResources(tag, addCommunityPermissions, addGuestPermissions);
120 }
121
122 public static void addTagResources(
123 com.liferay.portlet.asset.model.AssetTag tag,
124 java.lang.String[] communityPermissions,
125 java.lang.String[] guestPermissions)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException {
128 getService().addTagResources(tag, communityPermissions, guestPermissions);
129 }
130
131 public static void checkTags(long userId, long groupId,
132 java.lang.String[] names)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 getService().checkTags(userId, groupId, names);
136 }
137
138 public static com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
139 long tagId, long classNameId)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getService().decrementAssetCount(tagId, classNameId);
143 }
144
145 public static void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 getService().deleteTag(tag);
149 }
150
151 public static void deleteTag(long tagId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException {
154 getService().deleteTag(tagId);
155 }
156
157 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
158 long entryId)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().getEntryTags(entryId);
161 }
162
163 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
164 long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().getGroupTags(groupId);
167 }
168
169 public static com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException {
172 return getService().getTag(tagId);
173 }
174
175 public static com.liferay.portlet.asset.model.AssetTag getTag(
176 long groupId, java.lang.String name)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getTag(groupId, name);
180 }
181
182 public static long[] getTagIds(long groupId, java.lang.String[] names)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getTagIds(groupId, names);
186 }
187
188 public static java.lang.String[] getTagNames()
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getService().getTagNames();
191 }
192
193 public static java.lang.String[] getTagNames(long classNameId, long classPK)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getTagNames(classNameId, classPK);
196 }
197
198 public static java.lang.String[] getTagNames(java.lang.String className,
199 long classPK)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getService().getTagNames(className, classPK);
202 }
203
204 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getTags();
207 }
208
209 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
210 long classNameId, long classPK)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().getTags(classNameId, classPK);
213 }
214
215 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
216 long groupId, long classNameId, java.lang.String name)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getService().getTags(groupId, classNameId, name);
219 }
220
221 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
222 long groupId, long classNameId, java.lang.String name, int start,
223 int end) throws com.liferay.portal.kernel.exception.SystemException {
224 return getService().getTags(groupId, classNameId, name, start, end);
225 }
226
227 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
228 java.lang.String className, long classPK)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getTags(className, classPK);
231 }
232
233 public static int getTagsSize(long groupId, long classNameId,
234 java.lang.String name)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().getTagsSize(groupId, classNameId, name);
237 }
238
239 public static boolean hasTag(long groupId, java.lang.String name)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException {
242 return getService().hasTag(groupId, name);
243 }
244
245 public static com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
246 long tagId, long classNameId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException {
249 return getService().incrementAssetCount(tagId, classNameId);
250 }
251
252 public static void mergeTags(long fromTagId, long toTagId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 getService().mergeTags(fromTagId, toTagId);
256 }
257
258 public static com.liferay.portal.kernel.json.JSONArray search(
259 long groupId, java.lang.String name, java.lang.String[] tagProperties,
260 int start, int end)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getService().search(groupId, name, tagProperties, start, end);
263 }
264
265 public static com.liferay.portlet.asset.model.AssetTag updateTag(
266 long userId, long tagId, java.lang.String name,
267 java.lang.String[] tagProperties,
268 com.liferay.portal.service.ServiceContext serviceContext)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService()
272 .updateTag(userId, tagId, name, tagProperties, serviceContext);
273 }
274
275 public static AssetTagLocalService getService() {
276 if (_service == null) {
277 _service = (AssetTagLocalService)PortalBeanLocatorUtil.locate(AssetTagLocalService.class.getName());
278 }
279
280 return _service;
281 }
282
283 public void setService(AssetTagLocalService service) {
284 _service = service;
285 }
286
287 private static AssetTagLocalService _service;
288 }