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