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.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.service.BaseLocalService;
026    import com.liferay.portal.service.PersistedModelLocalService;
027    
028    /**
029     * Provides the local service interface for AssetEntry. Methods of this
030     * service will not have security checks based on the propagated JAAS
031     * credentials because this service can only be accessed from within the same
032     * VM.
033     *
034     * @author Brian Wing Shun Chan
035     * @see AssetEntryLocalServiceUtil
036     * @see com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
037     * @see com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl
038     * @generated
039     */
040    @ProviderType
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface AssetEntryLocalService extends BaseLocalService,
044            PersistedModelLocalService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link AssetEntryLocalServiceUtil} to access the asset entry local service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050            public void addAssetCategoryAssetEntries(long categoryId,
051                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
052    
053            public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds);
054    
055            public void addAssetCategoryAssetEntry(long categoryId,
056                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
057    
058            public void addAssetCategoryAssetEntry(long categoryId, long entryId);
059    
060            /**
061            * Adds the asset entry to the database. Also notifies the appropriate model listeners.
062            *
063            * @param assetEntry the asset entry
064            * @return the asset entry that was added
065            */
066            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
067            public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
068                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
069    
070            public void addAssetTagAssetEntries(long tagId,
071                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
072    
073            public void addAssetTagAssetEntries(long tagId, long[] entryIds);
074    
075            public void addAssetTagAssetEntry(long tagId,
076                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
077    
078            public void addAssetTagAssetEntry(long tagId, long entryId);
079    
080            public void clearAssetCategoryAssetEntries(long categoryId);
081    
082            public void clearAssetTagAssetEntries(long tagId);
083    
084            /**
085            * Creates a new asset entry with the primary key. Does not add the asset entry to the database.
086            *
087            * @param entryId the primary key for the new asset entry
088            * @return the new asset entry
089            */
090            public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
091                    long entryId);
092    
093            public void deleteAssetCategoryAssetEntries(long categoryId,
094                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
095    
096            public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds);
097    
098            public void deleteAssetCategoryAssetEntry(long categoryId,
099                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
100    
101            public void deleteAssetCategoryAssetEntry(long categoryId, long entryId);
102    
103            /**
104            * Deletes the asset entry from the database. Also notifies the appropriate model listeners.
105            *
106            * @param assetEntry the asset entry
107            * @return the asset entry that was removed
108            */
109            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
110            public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
111                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
112    
113            /**
114            * Deletes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.
115            *
116            * @param entryId the primary key of the asset entry
117            * @return the asset entry that was removed
118            * @throws PortalException if a asset entry with the primary key could not be found
119            */
120            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
121            public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
122                    long entryId) throws PortalException;
123    
124            public void deleteAssetTagAssetEntries(long tagId,
125                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
126    
127            public void deleteAssetTagAssetEntries(long tagId, long[] entryIds);
128    
129            public void deleteAssetTagAssetEntry(long tagId,
130                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
131    
132            public void deleteAssetTagAssetEntry(long tagId, long entryId);
133    
134            public void deleteEntry(java.lang.String className, long classPK)
135                    throws PortalException;
136    
137            public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
138                    throws PortalException;
139    
140            public void deleteEntry(long entryId) throws PortalException;
141    
142            public void deleteGroupEntries(long groupId) throws PortalException;
143    
144            /**
145            * @throws PortalException
146            */
147            @Override
148            public com.liferay.portal.model.PersistedModel deletePersistedModel(
149                    com.liferay.portal.model.PersistedModel persistedModel)
150                    throws PortalException;
151    
152            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
153    
154            /**
155            * Performs a dynamic query on the database and returns the matching rows.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the matching rows
159            */
160            public <T> java.util.List<T> dynamicQuery(
161                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
162    
163            /**
164            * Performs a dynamic query on the database and returns a range of the matching rows.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param dynamicQuery the dynamic query
171            * @param start the lower bound of the range of model instances
172            * @param end the upper bound of the range of model instances (not inclusive)
173            * @return the range of matching rows
174            */
175            public <T> java.util.List<T> dynamicQuery(
176                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
177                    int end);
178    
179            /**
180            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
181            *
182            * <p>
183            * 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.
184            * </p>
185            *
186            * @param dynamicQuery the dynamic query
187            * @param start the lower bound of the range of model instances
188            * @param end the upper bound of the range of model instances (not inclusive)
189            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
190            * @return the ordered range of matching rows
191            */
192            public <T> java.util.List<T> dynamicQuery(
193                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
194                    int end,
195                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
196    
197            /**
198            * Returns the number of rows matching the dynamic query.
199            *
200            * @param dynamicQuery the dynamic query
201            * @return the number of rows matching the dynamic query
202            */
203            public long dynamicQueryCount(
204                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
205    
206            /**
207            * Returns the number of rows matching the dynamic query.
208            *
209            * @param dynamicQuery the dynamic query
210            * @param projection the projection to apply to the query
211            * @return the number of rows matching the dynamic query
212            */
213            public long dynamicQueryCount(
214                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
215                    com.liferay.portal.kernel.dao.orm.Projection projection);
216    
217            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218            public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
219                    long entryId);
220    
221            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
223                    java.lang.String className, long classPK);
224    
225            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId);
227    
228            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
230                    java.lang.String classUuid);
231    
232            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
234    
235            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
237                    long entryId) throws PortalException;
238    
239            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
241                    long categoryId);
242    
243            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
245                    long categoryId, int start, int end);
246    
247            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
249                    long categoryId, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator);
251    
252            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253            public int getAssetCategoryAssetEntriesCount(long categoryId);
254    
255            /**
256            * Returns the categoryIds of the asset categories associated with the asset entry.
257            *
258            * @param entryId the entryId of the asset entry
259            * @return long[] the categoryIds of asset categories associated with the asset entry
260            */
261            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262            public long[] getAssetCategoryPrimaryKeys(long entryId);
263    
264            /**
265            * Returns a range of all the asset entries.
266            *
267            * <p>
268            * 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.
269            * </p>
270            *
271            * @param start the lower bound of the range of asset entries
272            * @param end the upper bound of the range of asset entries (not inclusive)
273            * @return the range of asset entries
274            */
275            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
277                    int start, int end);
278    
279            /**
280            * Returns the number of asset entries.
281            *
282            * @return the number of asset entries
283            */
284            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285            public int getAssetEntriesCount();
286    
287            /**
288            * Returns the asset entry with the primary key.
289            *
290            * @param entryId the primary key of the asset entry
291            * @return the asset entry
292            * @throws PortalException if a asset entry with the primary key could not be found
293            */
294            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295            public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
296                    long entryId) throws PortalException;
297    
298            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
300                    long tagId);
301    
302            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
304                    long tagId, int start, int end);
305    
306            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
308                    long tagId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator);
310    
311            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312            public int getAssetTagAssetEntriesCount(long tagId);
313    
314            /**
315            * Returns the tagIds of the asset tags associated with the asset entry.
316            *
317            * @param entryId the entryId of the asset entry
318            * @return long[] the tagIds of asset tags associated with the asset entry
319            */
320            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321            public long[] getAssetTagPrimaryKeys(long entryId);
322    
323            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
325                    long entryId) throws PortalException;
326    
327            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
329                    long companyId, int start, int end);
330    
331            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332            public int getCompanyEntriesCount(long companyId);
333    
334            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
336                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery);
337    
338            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
340                    long[] groupIds, long[] classNameIds, java.lang.String keywords,
341                    java.lang.String userName, java.lang.String title,
342                    java.lang.String description, java.lang.Boolean listable,
343                    boolean advancedSearch, boolean andOperator, int start, int end,
344                    java.lang.String orderByCol1, java.lang.String orderByCol2,
345                    java.lang.String orderByType1, java.lang.String orderByType2);
346    
347            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348            public int getEntriesCount(
349                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery);
350    
351            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352            public int getEntriesCount(long[] groupIds, long[] classNameIds,
353                    java.lang.String keywords, java.lang.String userName,
354                    java.lang.String title, java.lang.String description,
355                    java.lang.Boolean listable, boolean advancedSearch, boolean andOperator);
356    
357            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358            public com.liferay.portlet.asset.model.AssetEntry getEntry(
359                    java.lang.String className, long classPK) throws PortalException;
360    
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
363                    throws PortalException;
364    
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
367                    java.lang.String classUuid) throws PortalException;
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getGroupEntries(
371                    long groupId);
372    
373            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
375    
376            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
377            public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
378                    throws PortalException;
379    
380            /**
381            * Returns the OSGi service identifier.
382            *
383            * @return the OSGi service identifier
384            */
385            public java.lang.String getOSGiServiceIdentifier();
386    
387            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388            public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
389                    long entryId) throws PortalException;
390    
391            @Override
392            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393            public com.liferay.portal.model.PersistedModel getPersistedModel(
394                    java.io.Serializable primaryKeyObj) throws PortalException;
395    
396            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397            public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
398                    long entryId) throws PortalException;
399    
400            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
402                    java.lang.String[] className, boolean asc, int start, int end);
403    
404            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
406                    java.lang.String className, boolean asc, int start, int end);
407    
408            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409            public boolean hasAssetCategoryAssetEntries(long categoryId);
410    
411            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412            public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId);
413    
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public boolean hasAssetTagAssetEntries(long tagId);
416    
417            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418            public boolean hasAssetTagAssetEntry(long tagId, long entryId);
419    
420            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
421                    long userId, java.lang.String className, long classPK)
422                    throws PortalException;
423    
424            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "AssetEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
425            public void incrementViewCounter(long userId, java.lang.String className,
426                    long classPK, int increment);
427    
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public void reindex(
430                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
431                    throws PortalException;
432    
433            /**
434            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
435            String, String, int, int, int)}
436            */
437            @java.lang.Deprecated
438            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439            public com.liferay.portal.kernel.search.Hits search(long companyId,
440                    long[] groupIds, java.lang.String className, java.lang.String keywords,
441                    int start, int end);
442    
443            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444            public com.liferay.portal.kernel.search.Hits search(long companyId,
445                    long[] groupIds, long userId, java.lang.String className,
446                    long classTypeId, java.lang.String keywords, boolean showNonindexable,
447                    int status, int start, int end);
448    
449            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450            public com.liferay.portal.kernel.search.Hits search(long companyId,
451                    long[] groupIds, long userId, java.lang.String className,
452                    long classTypeId, java.lang.String keywords, boolean showNonindexable,
453                    int[] statuses, int start, int end);
454    
455            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456            public com.liferay.portal.kernel.search.Hits search(long companyId,
457                    long[] groupIds, long userId, java.lang.String className,
458                    long classTypeId, java.lang.String keywords, int status, int start,
459                    int end);
460    
461            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462            public com.liferay.portal.kernel.search.Hits search(long companyId,
463                    long[] groupIds, long userId, java.lang.String className,
464                    long classTypeId, java.lang.String userName, java.lang.String title,
465                    java.lang.String description, java.lang.String assetCategoryIds,
466                    java.lang.String assetTagNames, boolean showNonindexable, int status,
467                    boolean andSearch, int start, int end);
468    
469            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
470            public com.liferay.portal.kernel.search.Hits search(long companyId,
471                    long[] groupIds, long userId, java.lang.String className,
472                    long classTypeId, java.lang.String userName, java.lang.String title,
473                    java.lang.String description, java.lang.String assetCategoryIds,
474                    java.lang.String assetTagNames, boolean showNonindexable,
475                    int[] statuses, boolean andSearch, int start, int end);
476    
477            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478            public com.liferay.portal.kernel.search.Hits search(long companyId,
479                    long[] groupIds, long userId, java.lang.String className,
480                    long classTypeId, java.lang.String userName, java.lang.String title,
481                    java.lang.String description, java.lang.String assetCategoryIds,
482                    java.lang.String assetTagNames, int status, boolean andSearch,
483                    int start, int end);
484    
485            /**
486            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
487            String, String, int, int, int)}
488            */
489            @java.lang.Deprecated
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public com.liferay.portal.kernel.search.Hits search(long companyId,
492                    long[] groupIds, long userId, java.lang.String className,
493                    java.lang.String keywords, int start, int end);
494    
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public com.liferay.portal.kernel.search.Hits search(long companyId,
497                    long[] groupIds, long userId, java.lang.String className,
498                    java.lang.String keywords, int status, int start, int end);
499    
500            /**
501            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
502            String, String, String, String, String, String, int, boolean,
503            int, int)}
504            */
505            @java.lang.Deprecated
506            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
507            public com.liferay.portal.kernel.search.Hits search(long companyId,
508                    long[] groupIds, long userId, java.lang.String className,
509                    java.lang.String userName, java.lang.String title,
510                    java.lang.String description, java.lang.String assetCategoryIds,
511                    java.lang.String assetTagNames, boolean andSearch, int start, int end);
512    
513            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514            public com.liferay.portal.kernel.search.Hits search(long companyId,
515                    long[] groupIds, long userId, java.lang.String className,
516                    java.lang.String userName, java.lang.String title,
517                    java.lang.String description, java.lang.String assetCategoryIds,
518                    java.lang.String assetTagNames, int status, boolean andSearch,
519                    int start, int end);
520    
521            public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds);
522    
523            public void setAssetTagAssetEntries(long tagId, long[] entryIds);
524    
525            /**
526            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
527            *
528            * @param assetEntry the asset entry
529            * @return the asset entry that was updated
530            */
531            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
532            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
533                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
534    
535            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
536                    java.lang.String className, long classPK, java.util.Date publishDate,
537                    java.util.Date expirationDate, boolean visible)
538                    throws PortalException;
539    
540            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
541                    java.lang.String className, long classPK, java.util.Date publishDate,
542                    boolean visible) throws PortalException;
543    
544            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
545                    long groupId, java.lang.String className, long classPK,
546                    long[] categoryIds, java.lang.String[] tagNames)
547                    throws PortalException;
548    
549            /**
550            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, long,
551            Date, Date, String, long, String, long, long[], String[],
552            boolean, Date, Date, Date, String, String, String, String,
553            String, String, int, int, Integer, boolean)}
554            */
555            @java.lang.Deprecated
556            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
557                    long groupId, java.lang.String className, long classPK,
558                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
559                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
560                    java.util.Date endDate, java.util.Date expirationDate,
561                    java.lang.String mimeType, java.lang.String title,
562                    java.lang.String description, java.lang.String summary,
563                    java.lang.String url, java.lang.String layoutUuid, int height,
564                    int width, java.lang.Integer priority, boolean sync)
565                    throws PortalException;
566    
567            /**
568            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, long,
569            String, long, String, long, long[], String[], boolean, Date,
570            Date, Date, String, String, String, String, String, String,
571            int, int, Integer, boolean)}
572            */
573            @java.lang.Deprecated
574            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
575                    long groupId, java.lang.String className, long classPK,
576                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
577                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
578                    java.util.Date endDate, java.util.Date publishDate,
579                    java.util.Date expirationDate, java.lang.String mimeType,
580                    java.lang.String title, java.lang.String description,
581                    java.lang.String summary, java.lang.String url,
582                    java.lang.String layoutUuid, int height, int width,
583                    java.lang.Integer priority, boolean sync) throws PortalException;
584    
585            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
586                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
587                    java.lang.String className, long classPK, java.lang.String classUuid,
588                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
589                    boolean visible, java.util.Date startDate, java.util.Date endDate,
590                    java.util.Date expirationDate, java.lang.String mimeType,
591                    java.lang.String title, java.lang.String description,
592                    java.lang.String summary, java.lang.String url,
593                    java.lang.String layoutUuid, int height, int width,
594                    java.lang.Double priority) throws PortalException;
595    
596            /**
597            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, long,
598            Date, Date, String, long, String, long, long[], String[],
599            boolean, Date, Date, Date, String, String, String, String,
600            String, String, int, int, Double)}
601            */
602            @java.lang.Deprecated
603            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
604                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
605                    java.lang.String className, long classPK, java.lang.String classUuid,
606                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
607                    boolean visible, java.util.Date startDate, java.util.Date endDate,
608                    java.util.Date expirationDate, java.lang.String mimeType,
609                    java.lang.String title, java.lang.String description,
610                    java.lang.String summary, java.lang.String url,
611                    java.lang.String layoutUuid, int height, int width,
612                    java.lang.Integer priority, boolean sync) throws PortalException;
613    
614            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
615                    java.lang.String className, long classPK, boolean visible)
616                    throws PortalException;
617    
618            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
619                    com.liferay.portlet.asset.model.AssetEntry entry, boolean visible)
620                    throws PortalException;
621    
622            /**
623            * @deprecated As of 7.0.0, replaced by {@link #validate(long, String, long,
624            long[], String[])}
625            */
626            @java.lang.Deprecated
627            public void validate(long groupId, java.lang.String className,
628                    long[] categoryIds, java.lang.String[] tagNames)
629                    throws PortalException;
630    
631            public void validate(long groupId, java.lang.String className,
632                    long classTypePK, long[] categoryIds, java.lang.String[] tagNames)
633                    throws PortalException;
634    }