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