1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class TagsAssetLocalServiceUtil {
42 public static com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
43 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
44 throws com.liferay.portal.SystemException {
45 return getService().addTagsAsset(tagsAsset);
46 }
47
48 public static com.liferay.portlet.tags.model.TagsAsset createTagsAsset(
49 long assetId) {
50 return getService().createTagsAsset(assetId);
51 }
52
53 public static void deleteTagsAsset(long assetId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteTagsAsset(assetId);
57 }
58
59 public static void deleteTagsAsset(
60 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
61 throws com.liferay.portal.SystemException {
62 getService().deleteTagsAsset(tagsAsset);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.tags.model.TagsAsset getTagsAsset(
96 long assetId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getTagsAsset(assetId);
100 }
101
102 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getTagsAssets(start, end);
105 }
106
107 public static int getTagsAssetsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getTagsAssetsCount();
110 }
111
112 public static com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
113 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
114 throws com.liferay.portal.SystemException {
115 return getService().updateTagsAsset(tagsAsset);
116 }
117
118 public static com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
119 com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updateTagsAsset(tagsAsset, merge);
122 }
123
124 public static void deleteAsset(long assetId)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 getService().deleteAsset(assetId);
128 }
129
130 public static void deleteAsset(java.lang.String className, long classPK)
131 throws com.liferay.portal.SystemException {
132 getService().deleteAsset(className, classPK);
133 }
134
135 public static void deleteAsset(
136 com.liferay.portlet.tags.model.TagsAsset asset)
137 throws com.liferay.portal.SystemException {
138 getService().deleteAsset(asset);
139 }
140
141 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
142 long assetId)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 return getService().getAsset(assetId);
146 }
147
148 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
149 java.lang.String className, long classPK)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException {
152 return getService().getAsset(className, classPK);
153 }
154
155 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
156 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
157 boolean andOperator, boolean excludeZeroViewCount,
158 java.util.Date publishDate, java.util.Date expirationDate, int start,
159 int end) throws com.liferay.portal.SystemException {
160 return getService()
161 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
162 andOperator, excludeZeroViewCount, publishDate, expirationDate,
163 start, end);
164 }
165
166 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
167 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
168 boolean andOperator, boolean excludeZeroViewCount, int start, int end)
169 throws com.liferay.portal.SystemException {
170 return getService()
171 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
172 andOperator, excludeZeroViewCount, start, end);
173 }
174
175 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
176 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
177 boolean andOperator, java.lang.String orderByCol1,
178 java.lang.String orderByCol2, java.lang.String orderByType1,
179 java.lang.String orderByType2, boolean excludeZeroViewCount,
180 java.util.Date publishDate, java.util.Date expirationDate, int start,
181 int end) throws com.liferay.portal.SystemException {
182 return getService()
183 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
184 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
185 excludeZeroViewCount, publishDate, expirationDate, start, end);
186 }
187
188 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
189 long[] entryIds, long[] notEntryIds, boolean andOperator,
190 boolean excludeZeroViewCount, java.util.Date publishDate,
191 java.util.Date expirationDate, int start, int end)
192 throws com.liferay.portal.SystemException {
193 return getService()
194 .getAssets(entryIds, notEntryIds, andOperator,
195 excludeZeroViewCount, publishDate, expirationDate, start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
199 long[] entryIds, long[] notEntryIds, boolean andOperator,
200 boolean excludeZeroViewCount, int start, int end)
201 throws com.liferay.portal.SystemException {
202 return getService()
203 .getAssets(entryIds, notEntryIds, andOperator,
204 excludeZeroViewCount, start, end);
205 }
206
207 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
208 long[] entryIds, long[] notEntryIds, boolean andOperator,
209 java.lang.String orderByCol1, java.lang.String orderByCol2,
210 java.lang.String orderByType1, java.lang.String orderByType2,
211 boolean excludeZeroViewCount, java.util.Date publishDate,
212 java.util.Date expirationDate, int start, int end)
213 throws com.liferay.portal.SystemException {
214 return getService()
215 .getAssets(entryIds, notEntryIds, andOperator, orderByCol1,
216 orderByCol2, orderByType1, orderByType2, excludeZeroViewCount,
217 publishDate, expirationDate, start, end);
218 }
219
220 public static int getAssetsCount(long groupId, long[] entryIds,
221 long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
222 throws com.liferay.portal.SystemException {
223 return getService()
224 .getAssetsCount(groupId, entryIds, notEntryIds, andOperator,
225 excludeZeroViewCount);
226 }
227
228 public static int getAssetsCount(long groupId, long[] classNameIds,
229 long[] entryIds, long[] notEntryIds, boolean andOperator,
230 boolean excludeZeroViewCount, java.util.Date publishDate,
231 java.util.Date expirationDate)
232 throws com.liferay.portal.SystemException {
233 return getService()
234 .getAssetsCount(groupId, classNameIds, entryIds,
235 notEntryIds, andOperator, excludeZeroViewCount, publishDate,
236 expirationDate);
237 }
238
239 public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
240 boolean andOperator, boolean excludeZeroViewCount)
241 throws com.liferay.portal.SystemException {
242 return getService()
243 .getAssetsCount(entryIds, notEntryIds, andOperator,
244 excludeZeroViewCount);
245 }
246
247 public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
248 boolean andOperator, boolean excludeZeroViewCount,
249 java.util.Date publishDate, java.util.Date expirationDate)
250 throws com.liferay.portal.SystemException {
251 return getService()
252 .getAssetsCount(entryIds, notEntryIds, andOperator,
253 excludeZeroViewCount, publishDate, expirationDate);
254 }
255
256 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
257 java.lang.String languageId) {
258 return getService().getAssetTypes(languageId);
259 }
260
261 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
262 long companyId, int start, int end, java.lang.String languageId)
263 throws com.liferay.portal.SystemException {
264 return getService()
265 .getCompanyAssetDisplays(companyId, start, end, languageId);
266 }
267
268 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
269 long companyId, int start, int end)
270 throws com.liferay.portal.SystemException {
271 return getService().getCompanyAssets(companyId, start, end);
272 }
273
274 public static int getCompanyAssetsCount(long companyId)
275 throws com.liferay.portal.SystemException {
276 return getService().getCompanyAssetsCount(companyId);
277 }
278
279 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
280 java.lang.String className, boolean asc, int start, int end)
281 throws com.liferay.portal.SystemException {
282 return getService().getTopViewedAssets(className, asc, start, end);
283 }
284
285 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
286 java.lang.String[] className, boolean asc, int start, int end)
287 throws com.liferay.portal.SystemException {
288 return getService().getTopViewedAssets(className, asc, start, end);
289 }
290
291 public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
292 java.lang.String className, long classPK)
293 throws com.liferay.portal.SystemException {
294 return getService().incrementViewCounter(className, classPK);
295 }
296
297 public static com.liferay.portal.kernel.search.Hits search(long companyId,
298 java.lang.String portletId, java.lang.String keywords, int start,
299 int end) throws com.liferay.portal.SystemException {
300 return getService().search(companyId, portletId, keywords, start, end);
301 }
302
303 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
304 long companyId, java.lang.String portletId, java.lang.String keywords,
305 java.lang.String languageId, int start, int end)
306 throws com.liferay.portal.SystemException {
307 return getService()
308 .searchAssetDisplays(companyId, portletId, keywords,
309 languageId, start, end);
310 }
311
312 public static int searchAssetDisplaysCount(long companyId,
313 java.lang.String portletId, java.lang.String keywords,
314 java.lang.String languageId) throws com.liferay.portal.SystemException {
315 return getService()
316 .searchAssetDisplaysCount(companyId, portletId, keywords,
317 languageId);
318 }
319
320 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
321 long userId, long groupId, java.lang.String className, long classPK,
322 java.lang.String[] categoryNames, java.lang.String[] entryNames)
323 throws com.liferay.portal.PortalException,
324 com.liferay.portal.SystemException {
325 return getService()
326 .updateAsset(userId, groupId, className, classPK,
327 categoryNames, entryNames);
328 }
329
330 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
331 long userId, long groupId, java.lang.String className, long classPK,
332 java.lang.String[] categoryNames, java.lang.String[] entryNames,
333 boolean visible, java.util.Date startDate, java.util.Date endDate,
334 java.util.Date publishDate, java.util.Date expirationDate,
335 java.lang.String mimeType, java.lang.String title,
336 java.lang.String description, java.lang.String summary,
337 java.lang.String url, int height, int width, java.lang.Integer priority)
338 throws com.liferay.portal.PortalException,
339 com.liferay.portal.SystemException {
340 return getService()
341 .updateAsset(userId, groupId, className, classPK,
342 categoryNames, entryNames, visible, startDate, endDate,
343 publishDate, expirationDate, mimeType, title, description, summary,
344 url, height, width, priority);
345 }
346
347 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
348 long userId, long groupId, java.lang.String className, long classPK,
349 java.lang.String[] categoryNames, java.lang.String[] entryNames,
350 boolean visible, java.util.Date startDate, java.util.Date endDate,
351 java.util.Date publishDate, java.util.Date expirationDate,
352 java.lang.String mimeType, java.lang.String title,
353 java.lang.String description, java.lang.String summary,
354 java.lang.String url, int height, int width,
355 java.lang.Integer priority, boolean sync)
356 throws com.liferay.portal.PortalException,
357 com.liferay.portal.SystemException {
358 return getService()
359 .updateAsset(userId, groupId, className, classPK,
360 categoryNames, entryNames, visible, startDate, endDate,
361 publishDate, expirationDate, mimeType, title, description, summary,
362 url, height, width, priority, sync);
363 }
364
365 public static com.liferay.portlet.tags.model.TagsAsset updateVisible(
366 java.lang.String className, long classPK, boolean visible)
367 throws com.liferay.portal.PortalException,
368 com.liferay.portal.SystemException {
369 return getService().updateVisible(className, classPK, visible);
370 }
371
372 public static void validate(java.lang.String className,
373 java.lang.String[] entryNames)
374 throws com.liferay.portal.PortalException {
375 getService().validate(className, entryNames);
376 }
377
378 public static TagsAssetLocalService getService() {
379 if (_service == null) {
380 _service = (TagsAssetLocalService)PortalBeanLocatorUtil.locate(TagsAssetLocalService.class.getName());
381
382 ReferenceRegistry.registerReference(TagsAssetLocalServiceUtil.class,
383 "_service");
384 MethodCache.remove(TagsAssetLocalService.class);
385 }
386
387 return _service;
388 }
389
390 public void setService(TagsAssetLocalService service) {
391 MethodCache.remove(TagsAssetLocalService.class);
392
393 _service = service;
394
395 ReferenceRegistry.registerReference(TagsAssetLocalServiceUtil.class,
396 "_service");
397 MethodCache.remove(TagsAssetLocalService.class);
398 }
399
400 private static TagsAssetLocalService _service;
401 }