1
22
23 package com.liferay.portlet.tags.service;
24
25 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26
27
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 java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
144 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
145 boolean andOperator, boolean excludeZeroViewCount,
146 java.util.Date publishDate, java.util.Date expirationDate, int start,
147 int end) throws com.liferay.portal.SystemException {
148 return getService()
149 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
150 andOperator, excludeZeroViewCount, publishDate, expirationDate,
151 start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
155 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
156 boolean andOperator, boolean excludeZeroViewCount, int start, int end)
157 throws com.liferay.portal.SystemException {
158 return getService()
159 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
160 andOperator, excludeZeroViewCount, start, end);
161 }
162
163 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
164 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
165 boolean andOperator, java.lang.String orderByCol1,
166 java.lang.String orderByCol2, java.lang.String orderByType1,
167 java.lang.String orderByType2, boolean excludeZeroViewCount,
168 java.util.Date publishDate, java.util.Date expirationDate, int start,
169 int end) throws com.liferay.portal.SystemException {
170 return getService()
171 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
172 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
173 excludeZeroViewCount, publishDate, expirationDate, start, end);
174 }
175
176 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
177 long[] entryIds, long[] notEntryIds, boolean andOperator,
178 boolean excludeZeroViewCount, java.util.Date publishDate,
179 java.util.Date expirationDate, int start, int end)
180 throws com.liferay.portal.SystemException {
181 return getService()
182 .getAssets(entryIds, notEntryIds, andOperator,
183 excludeZeroViewCount, publishDate, expirationDate, 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 boolean excludeZeroViewCount, int start, int end)
189 throws com.liferay.portal.SystemException {
190 return getService()
191 .getAssets(entryIds, notEntryIds, andOperator,
192 excludeZeroViewCount, start, end);
193 }
194
195 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
196 long[] entryIds, long[] notEntryIds, boolean andOperator,
197 java.lang.String orderByCol1, java.lang.String orderByCol2,
198 java.lang.String orderByType1, java.lang.String orderByType2,
199 boolean excludeZeroViewCount, java.util.Date publishDate,
200 java.util.Date expirationDate, int start, int end)
201 throws com.liferay.portal.SystemException {
202 return getService()
203 .getAssets(entryIds, notEntryIds, andOperator, orderByCol1,
204 orderByCol2, orderByType1, orderByType2, excludeZeroViewCount,
205 publishDate, expirationDate, start, end);
206 }
207
208 public static int getAssetsCount(long groupId, long[] entryIds,
209 long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
210 throws com.liferay.portal.SystemException {
211 return getService()
212 .getAssetsCount(groupId, entryIds, notEntryIds, andOperator,
213 excludeZeroViewCount);
214 }
215
216 public static int getAssetsCount(long groupId, long[] classNameIds,
217 long[] entryIds, long[] notEntryIds, boolean andOperator,
218 boolean excludeZeroViewCount, java.util.Date publishDate,
219 java.util.Date expirationDate)
220 throws com.liferay.portal.SystemException {
221 return getService()
222 .getAssetsCount(groupId, classNameIds, entryIds,
223 notEntryIds, andOperator, excludeZeroViewCount, publishDate,
224 expirationDate);
225 }
226
227 public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
228 boolean andOperator, boolean excludeZeroViewCount)
229 throws com.liferay.portal.SystemException {
230 return getService()
231 .getAssetsCount(entryIds, notEntryIds, andOperator,
232 excludeZeroViewCount);
233 }
234
235 public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
236 boolean andOperator, boolean excludeZeroViewCount,
237 java.util.Date publishDate, java.util.Date expirationDate)
238 throws com.liferay.portal.SystemException {
239 return getService()
240 .getAssetsCount(entryIds, notEntryIds, andOperator,
241 excludeZeroViewCount, publishDate, expirationDate);
242 }
243
244 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
245 java.lang.String languageId) {
246 return getService().getAssetTypes(languageId);
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 _service = (TagsAssetLocalService)PortalBeanLocatorUtil.locate(TagsAssetLocalService.class.getName());
369 }
370
371 return _service;
372 }
373
374 public void setService(TagsAssetLocalService service) {
375 _service = service;
376 }
377
378 private static TagsAssetLocalService _service;
379 }