001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (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
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
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            * Returns the asset entry with the primary key.
154            *
155            * @param entryId the primary key of the asset entry
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _assetEntryLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns a range of all the asset entries.
176            *
177            * <p>
178            * 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.
179            * </p>
180            *
181            * @param start the lower bound of the range of asset entries
182            * @param end the upper bound of the range of asset entries (not inclusive)
183            * @return the range of asset entries
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
187                    int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _assetEntryLocalService.getAssetEntries(start, end);
190            }
191    
192            /**
193            * Returns the number of asset entries.
194            *
195            * @return the number of asset entries
196            * @throws SystemException if a system exception occurred
197            */
198            public int getAssetEntriesCount()
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _assetEntryLocalService.getAssetEntriesCount();
201            }
202    
203            /**
204            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
205            *
206            * @param assetEntry the asset entry
207            * @return the asset entry that was updated
208            * @throws SystemException if a system exception occurred
209            */
210            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
211                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _assetEntryLocalService.updateAssetEntry(assetEntry);
214            }
215    
216            /**
217            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
218            *
219            * @param assetEntry the asset entry
220            * @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.
221            * @return the asset entry that was updated
222            * @throws SystemException if a system exception occurred
223            */
224            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
225                    com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _assetEntryLocalService.updateAssetEntry(assetEntry, merge);
228            }
229    
230            /**
231            * Returns the Spring bean ID for this bean.
232            *
233            * @return the Spring bean ID for this bean
234            */
235            public java.lang.String getBeanIdentifier() {
236                    return _assetEntryLocalService.getBeanIdentifier();
237            }
238    
239            /**
240            * Sets the Spring bean ID for this bean.
241            *
242            * @param beanIdentifier the Spring bean ID for this bean
243            */
244            public void setBeanIdentifier(java.lang.String beanIdentifier) {
245                    _assetEntryLocalService.setBeanIdentifier(beanIdentifier);
246            }
247    
248            public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    _assetEntryLocalService.deleteEntry(entry);
252            }
253    
254            public void deleteEntry(long entryId)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    _assetEntryLocalService.deleteEntry(entryId);
258            }
259    
260            public void deleteEntry(java.lang.String className, long classPK)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    _assetEntryLocalService.deleteEntry(className, classPK);
264            }
265    
266            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return _assetEntryLocalService.fetchEntry(entryId);
269            }
270    
271            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
272                    java.lang.String className, long classPK)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return _assetEntryLocalService.fetchEntry(className, classPK);
275            }
276    
277            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
278                    long entryId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _assetEntryLocalService.getAncestorEntries(entryId);
282            }
283    
284            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
285                    long entryId)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _assetEntryLocalService.getChildEntries(entryId);
289            }
290    
291            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
292                    long companyId, int start, int end)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _assetEntryLocalService.getCompanyEntries(companyId, start, end);
295            }
296    
297            public int getCompanyEntriesCount(long companyId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _assetEntryLocalService.getCompanyEntriesCount(companyId);
300            }
301    
302            public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
303                    long companyId, int start, int end, java.lang.String languageId)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _assetEntryLocalService.getCompanyEntryDisplays(companyId,
306                            start, end, languageId);
307            }
308    
309            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
310                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _assetEntryLocalService.getEntries(entryQuery);
313            }
314    
315            public int getEntriesCount(
316                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _assetEntryLocalService.getEntriesCount(entryQuery);
319            }
320    
321            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _assetEntryLocalService.getEntry(entryId);
325            }
326    
327            public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
328                    java.lang.String classUuid)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _assetEntryLocalService.getEntry(groupId, classUuid);
332            }
333    
334            public com.liferay.portlet.asset.model.AssetEntry getEntry(
335                    java.lang.String className, long classPK)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _assetEntryLocalService.getEntry(className, classPK);
339            }
340    
341            public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _assetEntryLocalService.getNextEntry(entryId);
345            }
346    
347            public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
348                    long entryId)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _assetEntryLocalService.getParentEntry(entryId);
352            }
353    
354            public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
355                    long entryId)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    return _assetEntryLocalService.getPreviousEntry(entryId);
359            }
360    
361            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
362                    java.lang.String className, boolean asc, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _assetEntryLocalService.getTopViewedEntries(className, asc,
365                            start, end);
366            }
367    
368            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
369                    java.lang.String[] className, boolean asc, int start, int end)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _assetEntryLocalService.getTopViewedEntries(className, asc,
372                            start, end);
373            }
374    
375            public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
376                    long userId, java.lang.String className, long classPK, int increment)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return _assetEntryLocalService.incrementViewCounter(userId, className,
380                            classPK, increment);
381            }
382    
383            public void reindex(
384                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
385                    throws com.liferay.portal.kernel.exception.PortalException {
386                    _assetEntryLocalService.reindex(entries);
387            }
388    
389            public com.liferay.portal.kernel.search.Hits search(long companyId,
390                    long[] groupIds, java.lang.String className, java.lang.String keywords,
391                    int start, int end)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _assetEntryLocalService.search(companyId, groupIds, className,
394                            keywords, start, end);
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.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
417                    long companyId, long[] groupIds, java.lang.String className,
418                    java.lang.String keywords, java.lang.String languageId, int start,
419                    int end) throws com.liferay.portal.kernel.exception.SystemException {
420                    return _assetEntryLocalService.searchEntryDisplays(companyId, groupIds,
421                            className, keywords, languageId, start, end);
422            }
423    
424            public int searchEntryDisplaysCount(long companyId, long[] groupIds,
425                    java.lang.String className, java.lang.String keywords,
426                    java.lang.String languageId)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return _assetEntryLocalService.searchEntryDisplaysCount(companyId,
429                            groupIds, className, keywords, languageId);
430            }
431    
432            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
433                    long groupId, java.lang.String className, long classPK,
434                    long[] categoryIds, java.lang.String[] tagNames)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException {
437                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
438                            classPK, categoryIds, tagNames);
439            }
440    
441            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
442                    long groupId, java.lang.String className, long classPK,
443                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
444                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
445                    java.util.Date endDate, java.util.Date publishDate,
446                    java.util.Date expirationDate, java.lang.String mimeType,
447                    java.lang.String title, java.lang.String description,
448                    java.lang.String summary, java.lang.String url,
449                    java.lang.String layoutUuid, int height, int width,
450                    java.lang.Integer priority, boolean sync)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException {
453                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
454                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
455                            startDate, endDate, publishDate, expirationDate, mimeType, title,
456                            description, summary, url, layoutUuid, height, width, priority, sync);
457            }
458    
459            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
460                    java.lang.String className, long classPK, boolean visible)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException {
463                    return _assetEntryLocalService.updateVisible(className, classPK, visible);
464            }
465    
466            public void validate(long groupId, java.lang.String className,
467                    long[] categoryIds, java.lang.String[] tagNames)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    _assetEntryLocalService.validate(groupId, className, categoryIds,
471                            tagNames);
472            }
473    
474            public AssetEntryLocalService getWrappedAssetEntryLocalService() {
475                    return _assetEntryLocalService;
476            }
477    
478            public void setWrappedAssetEntryLocalService(
479                    AssetEntryLocalService assetEntryLocalService) {
480                    _assetEntryLocalService = assetEntryLocalService;
481            }
482    
483            private AssetEntryLocalService _assetEntryLocalService;
484    }