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