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