001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the asset entry local service. This utility wraps {@link com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
022     *
023     * <p>
024     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see AssetEntryLocalService
029     * @see com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
030     * @see com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl
031     * @generated
032     */
033    public class AssetEntryLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Adds the asset entry to the database. Also notifies the appropriate model listeners.
042            *
043            * @param assetEntry the asset entry
044            * @return the asset entry that was added
045            * @throws SystemException if a system exception occurred
046            */
047            public static com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
048                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getService().addAssetEntry(assetEntry);
051            }
052    
053            /**
054            * Creates a new asset entry with the primary key. Does not add the asset entry to the database.
055            *
056            * @param entryId the primary key for the new asset entry
057            * @return the new asset entry
058            */
059            public static com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
060                    long entryId) {
061                    return getService().createAssetEntry(entryId);
062            }
063    
064            /**
065            * Deletes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param entryId the primary key of the asset entry
068            * @return the asset entry that was removed
069            * @throws PortalException if a asset entry with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
073                    long entryId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().deleteAssetEntry(entryId);
077            }
078    
079            /**
080            * Deletes the asset entry from the database. Also notifies the appropriate model listeners.
081            *
082            * @param assetEntry the asset entry
083            * @return the asset entry that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public static com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
087                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getService().deleteAssetEntry(assetEntry);
090            }
091    
092            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return getService().dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public static java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @SuppressWarnings("rawtypes")
124            public static java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService().dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public static java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            public static long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getService().dynamicQueryCount(dynamicQuery);
165            }
166    
167            public static com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
168                    long entryId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().fetchAssetEntry(entryId);
171            }
172    
173            /**
174            * Returns the asset entry with the primary key.
175            *
176            * @param entryId the primary key of the asset entry
177            * @return the asset entry
178            * @throws PortalException if a asset entry with the primary key could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public static com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
182                    long entryId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getAssetEntry(entryId);
186            }
187    
188            public static com.liferay.portal.model.PersistedModel getPersistedModel(
189                    java.io.Serializable primaryKeyObj)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getService().getPersistedModel(primaryKeyObj);
193            }
194    
195            /**
196            * Returns a range of all the asset entries.
197            *
198            * <p>
199            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
200            * </p>
201            *
202            * @param start the lower bound of the range of asset entries
203            * @param end the upper bound of the range of asset entries (not inclusive)
204            * @return the range of asset entries
205            * @throws SystemException if a system exception occurred
206            */
207            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
208                    int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getService().getAssetEntries(start, end);
211            }
212    
213            /**
214            * Returns the number of asset entries.
215            *
216            * @return the number of asset entries
217            * @throws SystemException if a system exception occurred
218            */
219            public static int getAssetEntriesCount()
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getService().getAssetEntriesCount();
222            }
223    
224            /**
225            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param assetEntry the asset entry
228            * @return the asset entry that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
232                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return getService().updateAssetEntry(assetEntry);
235            }
236    
237            /**
238            * @throws SystemException if a system exception occurred
239            */
240            public static void addAssetCategoryAssetEntry(long categoryId, long entryId)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    getService().addAssetCategoryAssetEntry(categoryId, entryId);
243            }
244    
245            /**
246            * @throws SystemException if a system exception occurred
247            */
248            public static void addAssetCategoryAssetEntry(long categoryId,
249                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    getService().addAssetCategoryAssetEntry(categoryId, assetEntry);
252            }
253    
254            /**
255            * @throws SystemException if a system exception occurred
256            */
257            public static void addAssetCategoryAssetEntries(long categoryId,
258                    long[] entryIds)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    getService().addAssetCategoryAssetEntries(categoryId, entryIds);
261            }
262    
263            /**
264            * @throws SystemException if a system exception occurred
265            */
266            public static void addAssetCategoryAssetEntries(long categoryId,
267                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    getService().addAssetCategoryAssetEntries(categoryId, AssetEntries);
270            }
271    
272            /**
273            * @throws SystemException if a system exception occurred
274            */
275            public static void clearAssetCategoryAssetEntries(long categoryId)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    getService().clearAssetCategoryAssetEntries(categoryId);
278            }
279    
280            /**
281            * @throws SystemException if a system exception occurred
282            */
283            public static void deleteAssetCategoryAssetEntry(long categoryId,
284                    long entryId)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    getService().deleteAssetCategoryAssetEntry(categoryId, entryId);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public static void deleteAssetCategoryAssetEntry(long categoryId,
293                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    getService().deleteAssetCategoryAssetEntry(categoryId, assetEntry);
296            }
297    
298            /**
299            * @throws SystemException if a system exception occurred
300            */
301            public static void deleteAssetCategoryAssetEntries(long categoryId,
302                    long[] entryIds)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    getService().deleteAssetCategoryAssetEntries(categoryId, entryIds);
305            }
306    
307            /**
308            * @throws SystemException if a system exception occurred
309            */
310            public static void deleteAssetCategoryAssetEntries(long categoryId,
311                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    getService().deleteAssetCategoryAssetEntries(categoryId, AssetEntries);
314            }
315    
316            /**
317            * @throws SystemException if a system exception occurred
318            */
319            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
320                    long categoryId)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return getService().getAssetCategoryAssetEntries(categoryId);
323            }
324    
325            /**
326            * @throws SystemException if a system exception occurred
327            */
328            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
329                    long categoryId, int start, int end)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return getService().getAssetCategoryAssetEntries(categoryId, start, end);
332            }
333    
334            /**
335            * @throws SystemException if a system exception occurred
336            */
337            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
338                    long categoryId, int start, int end,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return getService()
342                                       .getAssetCategoryAssetEntries(categoryId, start, end,
343                            orderByComparator);
344            }
345    
346            /**
347            * @throws SystemException if a system exception occurred
348            */
349            public static int getAssetCategoryAssetEntriesCount(long categoryId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return getService().getAssetCategoryAssetEntriesCount(categoryId);
352            }
353    
354            /**
355            * @throws SystemException if a system exception occurred
356            */
357            public static boolean hasAssetCategoryAssetEntry(long categoryId,
358                    long entryId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getService().hasAssetCategoryAssetEntry(categoryId, entryId);
361            }
362    
363            /**
364            * @throws SystemException if a system exception occurred
365            */
366            public static boolean hasAssetCategoryAssetEntries(long categoryId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getService().hasAssetCategoryAssetEntries(categoryId);
369            }
370    
371            /**
372            * @throws SystemException if a system exception occurred
373            */
374            public static void setAssetCategoryAssetEntries(long categoryId,
375                    long[] entryIds)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    getService().setAssetCategoryAssetEntries(categoryId, entryIds);
378            }
379    
380            /**
381            * @throws SystemException if a system exception occurred
382            */
383            public static void addAssetTagAssetEntry(long tagId, long entryId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    getService().addAssetTagAssetEntry(tagId, entryId);
386            }
387    
388            /**
389            * @throws SystemException if a system exception occurred
390            */
391            public static void addAssetTagAssetEntry(long tagId,
392                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    getService().addAssetTagAssetEntry(tagId, assetEntry);
395            }
396    
397            /**
398            * @throws SystemException if a system exception occurred
399            */
400            public static void addAssetTagAssetEntries(long tagId, long[] entryIds)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    getService().addAssetTagAssetEntries(tagId, entryIds);
403            }
404    
405            /**
406            * @throws SystemException if a system exception occurred
407            */
408            public static void addAssetTagAssetEntries(long tagId,
409                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    getService().addAssetTagAssetEntries(tagId, AssetEntries);
412            }
413    
414            /**
415            * @throws SystemException if a system exception occurred
416            */
417            public static void clearAssetTagAssetEntries(long tagId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    getService().clearAssetTagAssetEntries(tagId);
420            }
421    
422            /**
423            * @throws SystemException if a system exception occurred
424            */
425            public static void deleteAssetTagAssetEntry(long tagId, long entryId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    getService().deleteAssetTagAssetEntry(tagId, entryId);
428            }
429    
430            /**
431            * @throws SystemException if a system exception occurred
432            */
433            public static void deleteAssetTagAssetEntry(long tagId,
434                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    getService().deleteAssetTagAssetEntry(tagId, assetEntry);
437            }
438    
439            /**
440            * @throws SystemException if a system exception occurred
441            */
442            public static void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    getService().deleteAssetTagAssetEntries(tagId, entryIds);
445            }
446    
447            /**
448            * @throws SystemException if a system exception occurred
449            */
450            public static void deleteAssetTagAssetEntries(long tagId,
451                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    getService().deleteAssetTagAssetEntries(tagId, AssetEntries);
454            }
455    
456            /**
457            * @throws SystemException if a system exception occurred
458            */
459            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
460                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
461                    return getService().getAssetTagAssetEntries(tagId);
462            }
463    
464            /**
465            * @throws SystemException if a system exception occurred
466            */
467            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
468                    long tagId, int start, int end)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getService().getAssetTagAssetEntries(tagId, start, end);
471            }
472    
473            /**
474            * @throws SystemException if a system exception occurred
475            */
476            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
477                    long tagId, int start, int end,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return getService()
481                                       .getAssetTagAssetEntries(tagId, start, end, orderByComparator);
482            }
483    
484            /**
485            * @throws SystemException if a system exception occurred
486            */
487            public static int getAssetTagAssetEntriesCount(long tagId)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getService().getAssetTagAssetEntriesCount(tagId);
490            }
491    
492            /**
493            * @throws SystemException if a system exception occurred
494            */
495            public static boolean hasAssetTagAssetEntry(long tagId, long entryId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService().hasAssetTagAssetEntry(tagId, entryId);
498            }
499    
500            /**
501            * @throws SystemException if a system exception occurred
502            */
503            public static boolean hasAssetTagAssetEntries(long tagId)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getService().hasAssetTagAssetEntries(tagId);
506            }
507    
508            /**
509            * @throws SystemException if a system exception occurred
510            */
511            public static void setAssetTagAssetEntries(long tagId, long[] entryIds)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    getService().setAssetTagAssetEntries(tagId, entryIds);
514            }
515    
516            /**
517            * Returns the Spring bean ID for this bean.
518            *
519            * @return the Spring bean ID for this bean
520            */
521            public static java.lang.String getBeanIdentifier() {
522                    return getService().getBeanIdentifier();
523            }
524    
525            /**
526            * Sets the Spring bean ID for this bean.
527            *
528            * @param beanIdentifier the Spring bean ID for this bean
529            */
530            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
531                    getService().setBeanIdentifier(beanIdentifier);
532            }
533    
534            public static void deleteEntry(
535                    com.liferay.portlet.asset.model.AssetEntry entry)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException {
538                    getService().deleteEntry(entry);
539            }
540    
541            public static void deleteEntry(long entryId)
542                    throws com.liferay.portal.kernel.exception.PortalException,
543                            com.liferay.portal.kernel.exception.SystemException {
544                    getService().deleteEntry(entryId);
545            }
546    
547            public static void deleteEntry(java.lang.String className, long classPK)
548                    throws com.liferay.portal.kernel.exception.PortalException,
549                            com.liferay.portal.kernel.exception.SystemException {
550                    getService().deleteEntry(className, classPK);
551            }
552    
553            public static com.liferay.portlet.asset.model.AssetEntry fetchEntry(
554                    long entryId)
555                    throws com.liferay.portal.kernel.exception.SystemException {
556                    return getService().fetchEntry(entryId);
557            }
558    
559            public static com.liferay.portlet.asset.model.AssetEntry fetchEntry(
560                    long groupId, java.lang.String classUuid)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    return getService().fetchEntry(groupId, classUuid);
563            }
564    
565            public static com.liferay.portlet.asset.model.AssetEntry fetchEntry(
566                    java.lang.String className, long classPK)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getService().fetchEntry(className, classPK);
569            }
570    
571            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
572                    long entryId)
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException {
575                    return getService().getAncestorEntries(entryId);
576            }
577    
578            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
579                    long entryId)
580                    throws com.liferay.portal.kernel.exception.PortalException,
581                            com.liferay.portal.kernel.exception.SystemException {
582                    return getService().getChildEntries(entryId);
583            }
584    
585            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
586                    long companyId, int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getService().getCompanyEntries(companyId, start, end);
589            }
590    
591            public static int getCompanyEntriesCount(long companyId)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return getService().getCompanyEntriesCount(companyId);
594            }
595    
596            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
597                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getService().getEntries(entryQuery);
600            }
601    
602            public static int getEntriesCount(
603                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getService().getEntriesCount(entryQuery);
606            }
607    
608            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
609                    long entryId)
610                    throws com.liferay.portal.kernel.exception.PortalException,
611                            com.liferay.portal.kernel.exception.SystemException {
612                    return getService().getEntry(entryId);
613            }
614    
615            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
616                    long groupId, java.lang.String classUuid)
617                    throws com.liferay.portal.kernel.exception.PortalException,
618                            com.liferay.portal.kernel.exception.SystemException {
619                    return getService().getEntry(groupId, classUuid);
620            }
621    
622            public static com.liferay.portlet.asset.model.AssetEntry getEntry(
623                    java.lang.String className, long classPK)
624                    throws com.liferay.portal.kernel.exception.PortalException,
625                            com.liferay.portal.kernel.exception.SystemException {
626                    return getService().getEntry(className, classPK);
627            }
628    
629            public static com.liferay.portlet.asset.model.AssetEntry getNextEntry(
630                    long entryId)
631                    throws com.liferay.portal.kernel.exception.PortalException,
632                            com.liferay.portal.kernel.exception.SystemException {
633                    return getService().getNextEntry(entryId);
634            }
635    
636            public static com.liferay.portlet.asset.model.AssetEntry getParentEntry(
637                    long entryId)
638                    throws com.liferay.portal.kernel.exception.PortalException,
639                            com.liferay.portal.kernel.exception.SystemException {
640                    return getService().getParentEntry(entryId);
641            }
642    
643            public static com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
644                    long entryId)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException {
647                    return getService().getPreviousEntry(entryId);
648            }
649    
650            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
651                    java.lang.String className, boolean asc, int start, int end)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getService().getTopViewedEntries(className, asc, start, end);
654            }
655    
656            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
657                    java.lang.String[] className, boolean asc, int start, int end)
658                    throws com.liferay.portal.kernel.exception.SystemException {
659                    return getService().getTopViewedEntries(className, asc, start, end);
660            }
661    
662            public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
663                    long userId, java.lang.String className, long classPK)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException {
666                    return getService().incrementViewCounter(userId, className, classPK);
667            }
668    
669            public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
670                    long userId, java.lang.String className, long classPK, int increment)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getService()
673                                       .incrementViewCounter(userId, className, classPK, increment);
674            }
675    
676            public static void reindex(
677                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
678                    throws com.liferay.portal.kernel.exception.PortalException {
679                    getService().reindex(entries);
680            }
681    
682            /**
683            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
684            String, String, int, int, int)}
685            */
686            public static com.liferay.portal.kernel.search.Hits search(long companyId,
687                    long[] groupIds, long userId, java.lang.String className,
688                    java.lang.String keywords, int start, int end)
689                    throws com.liferay.portal.kernel.exception.SystemException {
690                    return getService()
691                                       .search(companyId, groupIds, userId, className, keywords,
692                            start, end);
693            }
694    
695            public static com.liferay.portal.kernel.search.Hits search(long companyId,
696                    long[] groupIds, long userId, java.lang.String className,
697                    java.lang.String keywords, int status, int start, int end)
698                    throws com.liferay.portal.kernel.exception.SystemException {
699                    return getService()
700                                       .search(companyId, groupIds, userId, className, keywords,
701                            status, start, end);
702            }
703    
704            /**
705            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
706            String, String, String, String, String, String, int, boolean,
707            int, int)}
708            */
709            public static com.liferay.portal.kernel.search.Hits search(long companyId,
710                    long[] groupIds, long userId, java.lang.String className,
711                    java.lang.String userName, java.lang.String title,
712                    java.lang.String description, java.lang.String assetCategoryIds,
713                    java.lang.String assetTagNames, boolean andSearch, int start, int end)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getService()
716                                       .search(companyId, groupIds, userId, className, userName,
717                            title, description, assetCategoryIds, assetTagNames, andSearch,
718                            start, end);
719            }
720    
721            public static com.liferay.portal.kernel.search.Hits search(long companyId,
722                    long[] groupIds, long userId, java.lang.String className,
723                    java.lang.String userName, java.lang.String title,
724                    java.lang.String description, java.lang.String assetCategoryIds,
725                    java.lang.String assetTagNames, int status, boolean andSearch,
726                    int start, int end)
727                    throws com.liferay.portal.kernel.exception.SystemException {
728                    return getService()
729                                       .search(companyId, groupIds, userId, className, userName,
730                            title, description, assetCategoryIds, assetTagNames, status,
731                            andSearch, start, end);
732            }
733    
734            /**
735            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
736            String, String, int, int, int)}
737            */
738            public static com.liferay.portal.kernel.search.Hits search(long companyId,
739                    long[] groupIds, java.lang.String className, java.lang.String keywords,
740                    int start, int end)
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    return getService()
743                                       .search(companyId, groupIds, className, keywords, start, end);
744            }
745    
746            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
747                    long userId, long groupId, java.util.Date createDate,
748                    java.util.Date modifiedDate, java.lang.String className, long classPK,
749                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
750                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
751                    java.util.Date endDate, java.util.Date expirationDate,
752                    java.lang.String mimeType, java.lang.String title,
753                    java.lang.String description, java.lang.String summary,
754                    java.lang.String url, java.lang.String layoutUuid, int height,
755                    int width, java.lang.Integer priority, boolean sync)
756                    throws com.liferay.portal.kernel.exception.PortalException,
757                            com.liferay.portal.kernel.exception.SystemException {
758                    return getService()
759                                       .updateEntry(userId, groupId, createDate, modifiedDate,
760                            className, classPK, classUuid, classTypeId, categoryIds, tagNames,
761                            visible, startDate, endDate, expirationDate, mimeType, title,
762                            description, summary, url, layoutUuid, height, width, priority, sync);
763            }
764    
765            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
766                    long userId, long groupId, java.lang.String className, long classPK,
767                    long[] categoryIds, java.lang.String[] tagNames)
768                    throws com.liferay.portal.kernel.exception.PortalException,
769                            com.liferay.portal.kernel.exception.SystemException {
770                    return getService()
771                                       .updateEntry(userId, groupId, className, classPK,
772                            categoryIds, tagNames);
773            }
774    
775            /**
776            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, long,
777            String, long, String, long, long[], String[], boolean, Date,
778            Date, Date, String, String, String, String, String, String,
779            int, int, Integer, boolean)}
780            */
781            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
782                    long userId, long groupId, java.lang.String className, long classPK,
783                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
784                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
785                    java.util.Date endDate, java.util.Date publishDate,
786                    java.util.Date expirationDate, java.lang.String mimeType,
787                    java.lang.String title, java.lang.String description,
788                    java.lang.String summary, java.lang.String url,
789                    java.lang.String layoutUuid, int height, int width,
790                    java.lang.Integer priority, boolean sync)
791                    throws com.liferay.portal.kernel.exception.PortalException,
792                            com.liferay.portal.kernel.exception.SystemException {
793                    return getService()
794                                       .updateEntry(userId, groupId, className, classPK, classUuid,
795                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
796                            publishDate, expirationDate, mimeType, title, description, summary,
797                            url, layoutUuid, height, width, priority, sync);
798            }
799    
800            /**
801            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, long,
802            Date, Date, String, long, String, long, long[], String[],
803            boolean, Date, Date, Date, String, String, String, String,
804            String, String, int, int, Integer, boolean)}
805            */
806            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
807                    long userId, long groupId, java.lang.String className, long classPK,
808                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
809                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
810                    java.util.Date endDate, java.util.Date expirationDate,
811                    java.lang.String mimeType, java.lang.String title,
812                    java.lang.String description, java.lang.String summary,
813                    java.lang.String url, java.lang.String layoutUuid, int height,
814                    int width, java.lang.Integer priority, boolean sync)
815                    throws com.liferay.portal.kernel.exception.PortalException,
816                            com.liferay.portal.kernel.exception.SystemException {
817                    return getService()
818                                       .updateEntry(userId, groupId, className, classPK, classUuid,
819                            classTypeId, categoryIds, tagNames, visible, startDate, endDate,
820                            expirationDate, mimeType, title, description, summary, url,
821                            layoutUuid, height, width, priority, sync);
822            }
823    
824            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
825                    java.lang.String className, long classPK, java.util.Date publishDate,
826                    boolean visible)
827                    throws com.liferay.portal.kernel.exception.PortalException,
828                            com.liferay.portal.kernel.exception.SystemException {
829                    return getService().updateEntry(className, classPK, publishDate, visible);
830            }
831    
832            public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
833                    java.lang.String className, long classPK, java.util.Date publishDate,
834                    java.util.Date expirationDate, boolean visible)
835                    throws com.liferay.portal.kernel.exception.PortalException,
836                            com.liferay.portal.kernel.exception.SystemException {
837                    return getService()
838                                       .updateEntry(className, classPK, publishDate,
839                            expirationDate, visible);
840            }
841    
842            public static com.liferay.portlet.asset.model.AssetEntry updateVisible(
843                    java.lang.String className, long classPK, boolean visible)
844                    throws com.liferay.portal.kernel.exception.PortalException,
845                            com.liferay.portal.kernel.exception.SystemException {
846                    return getService().updateVisible(className, classPK, visible);
847            }
848    
849            public static void validate(long groupId, java.lang.String className,
850                    long[] categoryIds, java.lang.String[] tagNames)
851                    throws com.liferay.portal.kernel.exception.PortalException,
852                            com.liferay.portal.kernel.exception.SystemException {
853                    getService().validate(groupId, className, categoryIds, tagNames);
854            }
855    
856            public static AssetEntryLocalService getService() {
857                    if (_service == null) {
858                            _service = (AssetEntryLocalService)PortalBeanLocatorUtil.locate(AssetEntryLocalService.class.getName());
859    
860                            ReferenceRegistry.registerReference(AssetEntryLocalServiceUtil.class,
861                                    "_service");
862                    }
863    
864                    return _service;
865            }
866    
867            /**
868             * @deprecated As of 6.2.0
869             */
870            public void setService(AssetEntryLocalService service) {
871            }
872    
873            private static AssetEntryLocalService _service;
874    }