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