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 void deleteAsset(long assetId)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException {
109 getService().deleteAsset(assetId);
110 }
111
112 public static void deleteAsset(java.lang.String className, long classPK)
113 throws com.liferay.portal.SystemException {
114 getService().deleteAsset(className, classPK);
115 }
116
117 public static void deleteAsset(
118 com.liferay.portlet.tags.model.TagsAsset asset)
119 throws com.liferay.portal.SystemException {
120 getService().deleteAsset(asset);
121 }
122
123 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
124 long assetId)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 return getService().getAsset(assetId);
128 }
129
130 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
131 java.lang.String className, long classPK)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 return getService().getAsset(className, classPK);
135 }
136
137 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
138 java.lang.String languageId) {
139 return getService().getAssetTypes(languageId);
140 }
141
142 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
143 long[] entryIds, long[] notEntryIds, boolean andOperator,
144 boolean excludeZeroViewCount, int start, int end)
145 throws com.liferay.portal.SystemException {
146 return getService()
147 .getAssets(entryIds, notEntryIds, andOperator,
148 excludeZeroViewCount, start, end);
149 }
150
151 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
152 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
153 boolean andOperator, boolean excludeZeroViewCount, int start, int end)
154 throws com.liferay.portal.SystemException {
155 return getService()
156 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
157 andOperator, excludeZeroViewCount, start, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
161 long[] entryIds, long[] notEntryIds, boolean andOperator,
162 boolean excludeZeroViewCount, java.util.Date publishDate,
163 java.util.Date expirationDate, int start, int end)
164 throws com.liferay.portal.SystemException {
165 return getService()
166 .getAssets(entryIds, notEntryIds, andOperator,
167 excludeZeroViewCount, publishDate, expirationDate, 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, boolean excludeZeroViewCount,
173 java.util.Date publishDate, java.util.Date expirationDate, int start,
174 int end) throws com.liferay.portal.SystemException {
175 return getService()
176 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
177 andOperator, excludeZeroViewCount, publishDate, expirationDate,
178 start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
182 long[] entryIds, long[] notEntryIds, boolean andOperator,
183 java.lang.String orderByCol1, java.lang.String orderByCol2,
184 java.lang.String orderByType1, java.lang.String orderByType2,
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, orderByCol1,
190 orderByCol2, orderByType1, orderByType2, excludeZeroViewCount,
191 publishDate, expirationDate, start, end);
192 }
193
194 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
195 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
196 boolean andOperator, java.lang.String orderByCol1,
197 java.lang.String orderByCol2, java.lang.String orderByType1,
198 java.lang.String orderByType2, boolean excludeZeroViewCount,
199 java.util.Date publishDate, java.util.Date expirationDate, int start,
200 int end) throws com.liferay.portal.SystemException {
201 return getService()
202 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
203 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
204 excludeZeroViewCount, publishDate, expirationDate, start, end);
205 }
206
207 public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
208 boolean andOperator, boolean excludeZeroViewCount)
209 throws com.liferay.portal.SystemException {
210 return getService()
211 .getAssetsCount(entryIds, notEntryIds, andOperator,
212 excludeZeroViewCount);
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[] entryIds, long[] notEntryIds,
224 boolean andOperator, boolean excludeZeroViewCount,
225 java.util.Date publishDate, java.util.Date expirationDate)
226 throws com.liferay.portal.SystemException {
227 return getService()
228 .getAssetsCount(entryIds, notEntryIds, andOperator,
229 excludeZeroViewCount, publishDate, expirationDate);
230 }
231
232 public static int getAssetsCount(long groupId, long[] classNameIds,
233 long[] entryIds, long[] notEntryIds, boolean andOperator,
234 boolean excludeZeroViewCount, java.util.Date publishDate,
235 java.util.Date expirationDate)
236 throws com.liferay.portal.SystemException {
237 return getService()
238 .getAssetsCount(groupId, classNameIds, entryIds,
239 notEntryIds, andOperator, excludeZeroViewCount, publishDate,
240 expirationDate);
241 }
242
243 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
244 long companyId, int start, int end, java.lang.String languageId)
245 throws com.liferay.portal.SystemException {
246 return getService()
247 .getCompanyAssetDisplays(companyId, start, end, languageId);
248 }
249
250 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
251 long companyId, int start, int end)
252 throws com.liferay.portal.SystemException {
253 return getService().getCompanyAssets(companyId, start, end);
254 }
255
256 public static int getCompanyAssetsCount(long companyId)
257 throws com.liferay.portal.SystemException {
258 return getService().getCompanyAssetsCount(companyId);
259 }
260
261 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
262 java.lang.String className, boolean asc, int start, int end)
263 throws com.liferay.portal.SystemException {
264 return getService().getTopViewedAssets(className, asc, start, end);
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 com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
274 java.lang.String className, long classPK)
275 throws com.liferay.portal.SystemException {
276 return getService().incrementViewCounter(className, classPK);
277 }
278
279 public static com.liferay.portal.kernel.search.Hits search(long companyId,
280 java.lang.String portletId, java.lang.String keywords, int start,
281 int end) throws com.liferay.portal.SystemException {
282 return getService().search(companyId, portletId, keywords, start, end);
283 }
284
285 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
286 long companyId, java.lang.String portletId, java.lang.String keywords,
287 java.lang.String languageId, int start, int end)
288 throws com.liferay.portal.SystemException {
289 return getService()
290 .searchAssetDisplays(companyId, portletId, keywords,
291 languageId, start, end);
292 }
293
294 public static int searchAssetDisplaysCount(long companyId,
295 java.lang.String portletId, java.lang.String keywords,
296 java.lang.String languageId) throws com.liferay.portal.SystemException {
297 return getService()
298 .searchAssetDisplaysCount(companyId, portletId, keywords,
299 languageId);
300 }
301
302 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
303 long userId, long groupId, java.lang.String className, long classPK,
304 java.lang.String[] entryNames)
305 throws com.liferay.portal.PortalException,
306 com.liferay.portal.SystemException {
307 return getService()
308 .updateAsset(userId, groupId, className, classPK, entryNames);
309 }
310
311 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
312 long userId, long groupId, java.lang.String className, long classPK,
313 java.lang.String[] entryNames, java.util.Date startDate,
314 java.util.Date endDate, java.util.Date publishDate,
315 java.util.Date expirationDate, java.lang.String mimeType,
316 java.lang.String title, java.lang.String description,
317 java.lang.String summary, java.lang.String url, int height, int width,
318 java.lang.Integer priority)
319 throws com.liferay.portal.PortalException,
320 com.liferay.portal.SystemException {
321 return getService()
322 .updateAsset(userId, groupId, className, classPK,
323 entryNames, startDate, endDate, publishDate, expirationDate,
324 mimeType, title, description, summary, url, height, width, priority);
325 }
326
327 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
328 long userId, long groupId, java.lang.String className, long classPK,
329 java.lang.String[] entryNames, java.util.Date startDate,
330 java.util.Date endDate, java.util.Date publishDate,
331 java.util.Date expirationDate, java.lang.String mimeType,
332 java.lang.String title, java.lang.String description,
333 java.lang.String summary, java.lang.String url, int height, int width,
334 java.lang.Integer priority, boolean sync)
335 throws com.liferay.portal.PortalException,
336 com.liferay.portal.SystemException {
337 return getService()
338 .updateAsset(userId, groupId, className, classPK,
339 entryNames, startDate, endDate, publishDate, expirationDate,
340 mimeType, title, description, summary, url, height, width,
341 priority, sync);
342 }
343
344 public static void validate(java.lang.String className,
345 java.lang.String[] entryNames)
346 throws com.liferay.portal.PortalException {
347 getService().validate(className, entryNames);
348 }
349
350 public static TagsAssetLocalService getService() {
351 if (_service == null) {
352 throw new RuntimeException("TagsAssetLocalService is not set");
353 }
354
355 return _service;
356 }
357
358 public void setService(TagsAssetLocalService service) {
359 _service = service;
360 }
361
362 private static TagsAssetLocalService _service;
363 }