001    /**
002     * Copyright (c) 2000-2012 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.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetEntryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetEntryLocalService
026     * @generated
027     */
028    public class AssetEntryLocalServiceWrapper implements AssetEntryLocalService,
029            ServiceWrapper<AssetEntryLocalService> {
030            public AssetEntryLocalServiceWrapper(
031                    AssetEntryLocalService assetEntryLocalService) {
032                    _assetEntryLocalService = assetEntryLocalService;
033            }
034    
035            /**
036            * Adds the asset entry to the database. Also notifies the appropriate model listeners.
037            *
038            * @param assetEntry the asset entry
039            * @return the asset entry that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
043                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _assetEntryLocalService.addAssetEntry(assetEntry);
046            }
047    
048            /**
049            * Creates a new asset entry with the primary key. Does not add the asset entry to the database.
050            *
051            * @param entryId the primary key for the new asset entry
052            * @return the new asset entry
053            */
054            public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
055                    long entryId) {
056                    return _assetEntryLocalService.createAssetEntry(entryId);
057            }
058    
059            /**
060            * Deletes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param entryId the primary key of the asset entry
063            * @throws PortalException if a asset entry with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteAssetEntry(long entryId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _assetEntryLocalService.deleteAssetEntry(entryId);
070            }
071    
072            /**
073            * Deletes the asset entry from the database. Also notifies the appropriate model listeners.
074            *
075            * @param assetEntry the asset entry
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteAssetEntry(
079                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _assetEntryLocalService.deleteAssetEntry(assetEntry);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _assetEntryLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _assetEntryLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _assetEntryLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _assetEntryLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
156                    long entryId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _assetEntryLocalService.fetchAssetEntry(entryId);
159            }
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            public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
170                    long entryId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _assetEntryLocalService.getAssetEntry(entryId);
174            }
175    
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                    return _assetEntryLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the asset entries.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of asset entries
191            * @param end the upper bound of the range of asset entries (not inclusive)
192            * @return the range of asset entries
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _assetEntryLocalService.getAssetEntries(start, end);
199            }
200    
201            /**
202            * Returns the number of asset entries.
203            *
204            * @return the number of asset entries
205            * @throws SystemException if a system exception occurred
206            */
207            public int getAssetEntriesCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _assetEntryLocalService.getAssetEntriesCount();
210            }
211    
212            /**
213            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param assetEntry the asset entry
216            * @return the asset entry that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
220                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _assetEntryLocalService.updateAssetEntry(assetEntry);
223            }
224    
225            /**
226            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param assetEntry the asset entry
229            * @param merge whether to merge the asset entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
230            * @return the asset entry that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
234                    com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _assetEntryLocalService.updateAssetEntry(assetEntry, merge);
237            }
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier() {
245                    return _assetEntryLocalService.getBeanIdentifier();
246            }
247    
248            /**
249            * Sets the Spring bean ID for this bean.
250            *
251            * @param beanIdentifier the Spring bean ID for this bean
252            */
253            public void setBeanIdentifier(java.lang.String beanIdentifier) {
254                    _assetEntryLocalService.setBeanIdentifier(beanIdentifier);
255            }
256    
257            public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    _assetEntryLocalService.deleteEntry(entry);
261            }
262    
263            public void deleteEntry(long entryId)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    _assetEntryLocalService.deleteEntry(entryId);
267            }
268    
269            public void deleteEntry(java.lang.String className, long classPK)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _assetEntryLocalService.deleteEntry(className, classPK);
273            }
274    
275            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return _assetEntryLocalService.fetchEntry(entryId);
278            }
279    
280            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
281                    java.lang.String className, long classPK)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _assetEntryLocalService.fetchEntry(className, classPK);
284            }
285    
286            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
287                    long entryId)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return _assetEntryLocalService.getAncestorEntries(entryId);
291            }
292    
293            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
294                    long entryId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _assetEntryLocalService.getChildEntries(entryId);
298            }
299    
300            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
301                    long companyId, int start, int end)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return _assetEntryLocalService.getCompanyEntries(companyId, start, end);
304            }
305    
306            public int getCompanyEntriesCount(long companyId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _assetEntryLocalService.getCompanyEntriesCount(companyId);
309            }
310    
311            public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
312                    long companyId, int start, int end, java.lang.String languageId)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _assetEntryLocalService.getCompanyEntryDisplays(companyId,
315                            start, end, languageId);
316            }
317    
318            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
319                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _assetEntryLocalService.getEntries(entryQuery);
322            }
323    
324            public int getEntriesCount(
325                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _assetEntryLocalService.getEntriesCount(entryQuery);
328            }
329    
330            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _assetEntryLocalService.getEntry(entryId);
334            }
335    
336            public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
337                    java.lang.String classUuid)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _assetEntryLocalService.getEntry(groupId, classUuid);
341            }
342    
343            public com.liferay.portlet.asset.model.AssetEntry getEntry(
344                    java.lang.String className, long classPK)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _assetEntryLocalService.getEntry(className, classPK);
348            }
349    
350            public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _assetEntryLocalService.getNextEntry(entryId);
354            }
355    
356            public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
357                    long entryId)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _assetEntryLocalService.getParentEntry(entryId);
361            }
362    
363            public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
364                    long entryId)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _assetEntryLocalService.getPreviousEntry(entryId);
368            }
369    
370            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
371                    java.lang.String className, boolean asc, int start, int end)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _assetEntryLocalService.getTopViewedEntries(className, asc,
374                            start, end);
375            }
376    
377            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
378                    java.lang.String[] className, boolean asc, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return _assetEntryLocalService.getTopViewedEntries(className, asc,
381                            start, end);
382            }
383    
384            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
385                    long userId, java.lang.String className, long classPK, int increment)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return _assetEntryLocalService.incrementViewCounter(userId, className,
388                            classPK, increment);
389            }
390    
391            public void reindex(
392                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    _assetEntryLocalService.reindex(entries);
395            }
396    
397            public com.liferay.portal.kernel.search.Hits search(long companyId,
398                    long[] groupIds, long userId, java.lang.String className,
399                    java.lang.String keywords, int start, int end)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _assetEntryLocalService.search(companyId, groupIds, userId,
402                            className, keywords, start, end);
403            }
404    
405            public com.liferay.portal.kernel.search.Hits search(long companyId,
406                    long[] groupIds, long userId, java.lang.String className,
407                    java.lang.String userName, java.lang.String title,
408                    java.lang.String description, java.lang.String assetCategoryIds,
409                    java.lang.String assetTagNames, boolean andSearch, int start, int end)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _assetEntryLocalService.search(companyId, groupIds, userId,
412                            className, userName, title, description, assetCategoryIds,
413                            assetTagNames, andSearch, start, end);
414            }
415    
416            public com.liferay.portal.kernel.search.Hits search(long companyId,
417                    long[] groupIds, java.lang.String className, java.lang.String keywords,
418                    int start, int end)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _assetEntryLocalService.search(companyId, groupIds, className,
421                            keywords, start, end);
422            }
423    
424            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
425                    long companyId, long[] groupIds, java.lang.String className,
426                    java.lang.String keywords, java.lang.String languageId, int start,
427                    int end) throws com.liferay.portal.kernel.exception.SystemException {
428                    return _assetEntryLocalService.searchEntryDisplays(companyId, groupIds,
429                            className, keywords, languageId, start, end);
430            }
431    
432            public int searchEntryDisplaysCount(long companyId, long[] groupIds,
433                    java.lang.String className, java.lang.String keywords,
434                    java.lang.String languageId)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _assetEntryLocalService.searchEntryDisplaysCount(companyId,
437                            groupIds, className, keywords, languageId);
438            }
439    
440            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
441                    long groupId, java.lang.String className, long classPK,
442                    long[] categoryIds, java.lang.String[] tagNames)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
446                            classPK, categoryIds, tagNames);
447            }
448    
449            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
450                    long groupId, java.lang.String className, long classPK,
451                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
452                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
453                    java.util.Date endDate, java.util.Date publishDate,
454                    java.util.Date expirationDate, java.lang.String mimeType,
455                    java.lang.String title, java.lang.String description,
456                    java.lang.String summary, java.lang.String url,
457                    java.lang.String layoutUuid, int height, int width,
458                    java.lang.Integer priority, boolean sync)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException {
461                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
462                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
463                            startDate, endDate, publishDate, expirationDate, mimeType, title,
464                            description, summary, url, layoutUuid, height, width, priority, sync);
465            }
466    
467            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
468                    java.lang.String className, long classPK, boolean visible)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return _assetEntryLocalService.updateVisible(className, classPK, visible);
472            }
473    
474            public void validate(long groupId, java.lang.String className,
475                    long[] categoryIds, java.lang.String[] tagNames)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException {
478                    _assetEntryLocalService.validate(groupId, className, categoryIds,
479                            tagNames);
480            }
481    
482            /**
483             * @deprecated Renamed to {@link #getWrappedService}
484             */
485            public AssetEntryLocalService getWrappedAssetEntryLocalService() {
486                    return _assetEntryLocalService;
487            }
488    
489            /**
490             * @deprecated Renamed to {@link #setWrappedService}
491             */
492            public void setWrappedAssetEntryLocalService(
493                    AssetEntryLocalService assetEntryLocalService) {
494                    _assetEntryLocalService = assetEntryLocalService;
495            }
496    
497            public AssetEntryLocalService getWrappedService() {
498                    return _assetEntryLocalService;
499            }
500    
501            public void setWrappedService(AssetEntryLocalService assetEntryLocalService) {
502                    _assetEntryLocalService = assetEntryLocalService;
503            }
504    
505            private AssetEntryLocalService _assetEntryLocalService;
506    }