001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    import com.liferay.portal.service.PersistedModelLocalService;
024    
025    /**
026     * The interface for the asset entry local service.
027     *
028     * <p>
029     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see AssetEntryLocalServiceUtil
034     * @see com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
035     * @see com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl
036     * @generated
037     */
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface AssetEntryLocalService extends BaseLocalService,
041            PersistedModelLocalService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * 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.
046             */
047    
048            /**
049            * Adds the asset entry to the database. Also notifies the appropriate model listeners.
050            *
051            * @param assetEntry the asset entry
052            * @return the asset entry that was added
053            * @throws SystemException if a system exception occurred
054            */
055            public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
056                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            /**
060            * Creates a new asset entry with the primary key. Does not add the asset entry to the database.
061            *
062            * @param entryId the primary key for the new asset entry
063            * @return the new asset entry
064            */
065            public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
066                    long entryId);
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 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    
081            /**
082            * Deletes the asset entry from the database. Also notifies the appropriate model listeners.
083            *
084            * @param assetEntry the asset entry
085            * @return the asset entry that was removed
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
089                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException;
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Returns the number of rows that match the dynamic query.
147            *
148            * @param dynamicQuery the dynamic query
149            * @return the number of rows that match the dynamic query
150            * @throws SystemException if a system exception occurred
151            */
152            public long dynamicQueryCount(
153                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
158                    long entryId)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            /**
162            * Returns the asset entry with the primary key.
163            *
164            * @param entryId the primary key of the asset entry
165            * @return the asset entry
166            * @throws PortalException if a asset entry with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
171                    long entryId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns a range of all the asset entries.
183            *
184            * <p>
185            * 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.
186            * </p>
187            *
188            * @param start the lower bound of the range of asset entries
189            * @param end the upper bound of the range of asset entries (not inclusive)
190            * @return the range of asset entries
191            * @throws SystemException if a system exception occurred
192            */
193            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            /**
199            * Returns the number of asset entries.
200            *
201            * @return the number of asset entries
202            * @throws SystemException if a system exception occurred
203            */
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public int getAssetEntriesCount()
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
210            *
211            * @param assetEntry the asset entry
212            * @return the asset entry that was updated
213            * @throws SystemException if a system exception occurred
214            */
215            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
216                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            /**
220            * @throws SystemException if a system exception occurred
221            */
222            public void addAssetCategoryAssetEntry(long categoryId, long entryId)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * @throws SystemException if a system exception occurred
227            */
228            public void addAssetCategoryAssetEntry(long categoryId,
229                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            /**
233            * @throws SystemException if a system exception occurred
234            */
235            public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * @throws SystemException if a system exception occurred
240            */
241            public void addAssetCategoryAssetEntries(long categoryId,
242                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * @throws SystemException if a system exception occurred
247            */
248            public void clearAssetCategoryAssetEntries(long categoryId)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * @throws SystemException if a system exception occurred
253            */
254            public void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * @throws SystemException if a system exception occurred
259            */
260            public void deleteAssetCategoryAssetEntry(long categoryId,
261                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * @throws SystemException if a system exception occurred
266            */
267            public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * @throws SystemException if a system exception occurred
272            */
273            public void deleteAssetCategoryAssetEntries(long categoryId,
274                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    
277            /**
278            * @throws SystemException if a system exception occurred
279            */
280            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
282                    long categoryId)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * @throws SystemException if a system exception occurred
287            */
288            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
290                    long categoryId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * @throws SystemException if a system exception occurred
295            */
296            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
298                    long categoryId, int start, int end,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            /**
303            * @throws SystemException if a system exception occurred
304            */
305            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306            public int getAssetCategoryAssetEntriesCount(long categoryId)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            /**
310            * @throws SystemException if a system exception occurred
311            */
312            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313            public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * @throws SystemException if a system exception occurred
318            */
319            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320            public boolean hasAssetCategoryAssetEntries(long categoryId)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * @throws SystemException if a system exception occurred
325            */
326            public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * @throws SystemException if a system exception occurred
331            */
332            public void addAssetTagAssetEntry(long tagId, long entryId)
333                    throws com.liferay.portal.kernel.exception.SystemException;
334    
335            /**
336            * @throws SystemException if a system exception occurred
337            */
338            public void addAssetTagAssetEntry(long tagId,
339                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public void addAssetTagAssetEntries(long tagId, long[] entryIds)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * @throws SystemException if a system exception occurred
350            */
351            public void addAssetTagAssetEntries(long tagId,
352                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * @throws SystemException if a system exception occurred
357            */
358            public void clearAssetTagAssetEntries(long tagId)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            /**
362            * @throws SystemException if a system exception occurred
363            */
364            public void deleteAssetTagAssetEntry(long tagId, long entryId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * @throws SystemException if a system exception occurred
369            */
370            public void deleteAssetTagAssetEntry(long tagId,
371                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * @throws SystemException if a system exception occurred
376            */
377            public void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            /**
381            * @throws SystemException if a system exception occurred
382            */
383            public void deleteAssetTagAssetEntries(long tagId,
384                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
385                    throws com.liferay.portal.kernel.exception.SystemException;
386    
387            /**
388            * @throws SystemException if a system exception occurred
389            */
390            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
392                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
393    
394            /**
395            * @throws SystemException if a system exception occurred
396            */
397            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
399                    long tagId, int start, int end)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * @throws SystemException if a system exception occurred
404            */
405            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
407                    long tagId, int start, int end,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * @throws SystemException if a system exception occurred
413            */
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public int getAssetTagAssetEntriesCount(long tagId)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * @throws SystemException if a system exception occurred
420            */
421            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422            public boolean hasAssetTagAssetEntry(long tagId, long entryId)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * @throws SystemException if a system exception occurred
427            */
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public boolean hasAssetTagAssetEntries(long tagId)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * @throws SystemException if a system exception occurred
434            */
435            public void setAssetTagAssetEntries(long tagId, long[] entryIds)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns the Spring bean ID for this bean.
440            *
441            * @return the Spring bean ID for this bean
442            */
443            public java.lang.String getBeanIdentifier();
444    
445            /**
446            * Sets the Spring bean ID for this bean.
447            *
448            * @param beanIdentifier the Spring bean ID for this bean
449            */
450            public void setBeanIdentifier(java.lang.String beanIdentifier);
451    
452            public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException;
455    
456            public void deleteEntry(long entryId)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException;
459    
460            public void deleteEntry(java.lang.String className, long classPK)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException;
463    
464            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
470                    java.lang.String classUuid)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
475                    java.lang.String className, long classPK)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
480                    long entryId)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException;
483    
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
486                    long entryId)
487                    throws com.liferay.portal.kernel.exception.PortalException,
488                            com.liferay.portal.kernel.exception.SystemException;
489    
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
492                    long companyId, int start, int end)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public int getCompanyEntriesCount(long companyId)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
501                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505            public int getEntriesCount(
506                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
507                    throws com.liferay.portal.kernel.exception.SystemException;
508    
509            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
511                    throws com.liferay.portal.kernel.exception.PortalException,
512                            com.liferay.portal.kernel.exception.SystemException;
513    
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
516                    java.lang.String classUuid)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException;
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public com.liferay.portlet.asset.model.AssetEntry getEntry(
522                    java.lang.String className, long classPK)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException;
525    
526            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
527            public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
528                    throws com.liferay.portal.kernel.exception.PortalException,
529                            com.liferay.portal.kernel.exception.SystemException;
530    
531            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532            public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
533                    long entryId)
534                    throws com.liferay.portal.kernel.exception.PortalException,
535                            com.liferay.portal.kernel.exception.SystemException;
536    
537            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538            public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
539                    long entryId)
540                    throws com.liferay.portal.kernel.exception.PortalException,
541                            com.liferay.portal.kernel.exception.SystemException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
545                    java.lang.String className, boolean asc, int start, int end)
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
550                    java.lang.String[] className, boolean asc, int start, int end)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    
553            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
554                    long userId, java.lang.String className, long classPK)
555                    throws com.liferay.portal.kernel.exception.PortalException,
556                            com.liferay.portal.kernel.exception.SystemException;
557    
558            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
559                    long userId, java.lang.String className, long classPK, int increment)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563            public void reindex(
564                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
565                    throws com.liferay.portal.kernel.exception.PortalException;
566    
567            /**
568            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
569            String, String, int, int, int)}
570            */
571            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
572            public com.liferay.portal.kernel.search.Hits search(long companyId,
573                    long[] groupIds, long userId, java.lang.String className,
574                    java.lang.String keywords, int start, int end)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public com.liferay.portal.kernel.search.Hits search(long companyId,
579                    long[] groupIds, long userId, java.lang.String className,
580                    java.lang.String keywords, int status, int start, int end)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
585            String, String, String, String, String, String, int, boolean,
586            int, int)}
587            */
588            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
589            public com.liferay.portal.kernel.search.Hits search(long companyId,
590                    long[] groupIds, long userId, java.lang.String className,
591                    java.lang.String userName, java.lang.String title,
592                    java.lang.String description, java.lang.String assetCategoryIds,
593                    java.lang.String assetTagNames, boolean andSearch, int start, int end)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597            public com.liferay.portal.kernel.search.Hits search(long companyId,
598                    long[] groupIds, long userId, java.lang.String className,
599                    java.lang.String userName, java.lang.String title,
600                    java.lang.String description, java.lang.String assetCategoryIds,
601                    java.lang.String assetTagNames, int status, boolean andSearch,
602                    int start, int end)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * @deprecated As of 6.2.0, replaced by {@link #search(long, long[], long,
607            String, String, int, int, int)}
608            */
609            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
610            public com.liferay.portal.kernel.search.Hits search(long companyId,
611                    long[] groupIds, java.lang.String className, java.lang.String keywords,
612                    int start, int end)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
616                    long groupId, java.util.Date createDate, java.util.Date modifiedDate,
617                    java.lang.String className, long classPK, java.lang.String classUuid,
618                    long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
619                    boolean visible, java.util.Date startDate, java.util.Date endDate,
620                    java.util.Date expirationDate, java.lang.String mimeType,
621                    java.lang.String title, java.lang.String description,
622                    java.lang.String summary, java.lang.String url,
623                    java.lang.String layoutUuid, int height, int width,
624                    java.lang.Integer priority, boolean sync)
625                    throws com.liferay.portal.kernel.exception.PortalException,
626                            com.liferay.portal.kernel.exception.SystemException;
627    
628            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
629                    long groupId, java.lang.String className, long classPK,
630                    long[] categoryIds, java.lang.String[] tagNames)
631                    throws com.liferay.portal.kernel.exception.PortalException,
632                            com.liferay.portal.kernel.exception.SystemException;
633    
634            /**
635            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, long,
636            String, long, String, long, long[], String[], boolean, Date,
637            Date, Date, String, String, String, String, String, String,
638            int, int, Integer, boolean)}
639            */
640            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
641                    long groupId, java.lang.String className, long classPK,
642                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
643                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
644                    java.util.Date endDate, java.util.Date publishDate,
645                    java.util.Date expirationDate, java.lang.String mimeType,
646                    java.lang.String title, java.lang.String description,
647                    java.lang.String summary, java.lang.String url,
648                    java.lang.String layoutUuid, int height, int width,
649                    java.lang.Integer priority, boolean sync)
650                    throws com.liferay.portal.kernel.exception.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException;
652    
653            /**
654            * @deprecated As of 6.2.0, replaced by {@link #updateEntry(long, long,
655            Date, Date, String, long, String, long, long[], String[],
656            boolean, Date, Date, Date, String, String, String, String,
657            String, String, int, int, Integer, boolean)}
658            */
659            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
660                    long groupId, java.lang.String className, long classPK,
661                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
662                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
663                    java.util.Date endDate, java.util.Date expirationDate,
664                    java.lang.String mimeType, java.lang.String title,
665                    java.lang.String description, java.lang.String summary,
666                    java.lang.String url, java.lang.String layoutUuid, int height,
667                    int width, java.lang.Integer priority, boolean sync)
668                    throws com.liferay.portal.kernel.exception.PortalException,
669                            com.liferay.portal.kernel.exception.SystemException;
670    
671            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
672                    java.lang.String className, long classPK, java.util.Date publishDate,
673                    boolean visible)
674                    throws com.liferay.portal.kernel.exception.PortalException,
675                            com.liferay.portal.kernel.exception.SystemException;
676    
677            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
678                    java.lang.String className, long classPK, java.util.Date publishDate,
679                    java.util.Date expirationDate, boolean visible)
680                    throws com.liferay.portal.kernel.exception.PortalException,
681                            com.liferay.portal.kernel.exception.SystemException;
682    
683            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
684                    java.lang.String className, long classPK, boolean visible)
685                    throws com.liferay.portal.kernel.exception.PortalException,
686                            com.liferay.portal.kernel.exception.SystemException;
687    
688            public void validate(long groupId, java.lang.String className,
689                    long[] categoryIds, java.lang.String[] tagNames)
690                    throws com.liferay.portal.kernel.exception.PortalException,
691                            com.liferay.portal.kernel.exception.SystemException;
692    }