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