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