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