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