001    /**
002     * Copyright (c) 2000-2011 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    /**
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 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
267                    long entryId)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _assetEntryLocalService.getAncestorEntries(entryId);
271            }
272    
273            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
274                    long entryId)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _assetEntryLocalService.getChildEntries(entryId);
278            }
279    
280            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
281                    long companyId, int start, int end)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _assetEntryLocalService.getCompanyEntries(companyId, start, end);
284            }
285    
286            public int getCompanyEntriesCount(long companyId)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _assetEntryLocalService.getCompanyEntriesCount(companyId);
289            }
290    
291            public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
292                    long companyId, int start, int end, java.lang.String languageId)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _assetEntryLocalService.getCompanyEntryDisplays(companyId,
295                            start, end, languageId);
296            }
297    
298            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
299                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _assetEntryLocalService.getEntries(entryQuery);
302            }
303    
304            public int getEntriesCount(
305                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _assetEntryLocalService.getEntriesCount(entryQuery);
308            }
309    
310            public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return _assetEntryLocalService.getEntry(entryId);
314            }
315    
316            public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
317                    java.lang.String classUuid)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    return _assetEntryLocalService.getEntry(groupId, classUuid);
321            }
322    
323            public com.liferay.portlet.asset.model.AssetEntry getEntry(
324                    java.lang.String className, long classPK)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return _assetEntryLocalService.getEntry(className, classPK);
328            }
329    
330            public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _assetEntryLocalService.getNextEntry(entryId);
334            }
335    
336            public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
337                    long entryId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _assetEntryLocalService.getParentEntry(entryId);
341            }
342    
343            public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
344                    long entryId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _assetEntryLocalService.getPreviousEntry(entryId);
348            }
349    
350            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
351                    java.lang.String className, boolean asc, int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _assetEntryLocalService.getTopViewedEntries(className, asc,
354                            start, end);
355            }
356    
357            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
358                    java.lang.String[] className, boolean asc, int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _assetEntryLocalService.getTopViewedEntries(className, asc,
361                            start, end);
362            }
363    
364            public void incrementViewCounter(long userId, java.lang.String className,
365                    long classPK)
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    _assetEntryLocalService.incrementViewCounter(userId, className, classPK);
369            }
370    
371            public void incrementViewCounter(long userId, java.lang.String className,
372                    long classPK, int increment)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    _assetEntryLocalService.incrementViewCounter(userId, className,
376                            classPK, increment);
377            }
378    
379            public com.liferay.portal.kernel.search.Hits search(long companyId,
380                    long[] groupIds, java.lang.String className, java.lang.String keywords,
381                    int start, int end)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _assetEntryLocalService.search(companyId, groupIds, className,
384                            keywords, start, end);
385            }
386    
387            public com.liferay.portal.kernel.search.Hits search(long companyId,
388                    long[] groupIds, long userId, java.lang.String className,
389                    java.lang.String keywords, int start, int end)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _assetEntryLocalService.search(companyId, groupIds, userId,
392                            className, keywords, start, end);
393            }
394    
395            public com.liferay.portal.kernel.search.Hits search(long companyId,
396                    long[] groupIds, long userId, java.lang.String className,
397                    java.lang.String userName, java.lang.String title,
398                    java.lang.String description, java.lang.String assetCategoryIds,
399                    java.lang.String assetTagNames, boolean andSearch, int start, int end)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _assetEntryLocalService.search(companyId, groupIds, userId,
402                            className, userName, title, description, assetCategoryIds,
403                            assetTagNames, andSearch, start, end);
404            }
405    
406            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
407                    long companyId, long[] groupIds, java.lang.String className,
408                    java.lang.String keywords, java.lang.String languageId, int start,
409                    int end) throws com.liferay.portal.kernel.exception.SystemException {
410                    return _assetEntryLocalService.searchEntryDisplays(companyId, groupIds,
411                            className, keywords, languageId, start, end);
412            }
413    
414            /**
415            * @deprecated {@link #searchEntryDisplays(long, long[], String, String,
416            String)}
417            */
418            public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
419                    long companyId, java.lang.String portletId, java.lang.String keywords,
420                    java.lang.String languageId, int start, int end)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _assetEntryLocalService.searchEntryDisplays(companyId,
423                            portletId, keywords, languageId, start, end);
424            }
425    
426            public int searchEntryDisplaysCount(long companyId, long[] groupIds,
427                    java.lang.String className, java.lang.String keywords,
428                    java.lang.String languageId)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return _assetEntryLocalService.searchEntryDisplaysCount(companyId,
431                            groupIds, className, keywords, languageId);
432            }
433    
434            /**
435            * @deprecated {@link #searchEntryDisplaysCount(long, long[], String,
436            String, String)}
437            */
438            public int searchEntryDisplaysCount(long companyId,
439                    java.lang.String portletId, java.lang.String keywords,
440                    java.lang.String languageId)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _assetEntryLocalService.searchEntryDisplaysCount(companyId,
443                            portletId, keywords, languageId);
444            }
445    
446            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
447                    long groupId, java.lang.String className, long classPK,
448                    long[] categoryIds, java.lang.String[] tagNames)
449                    throws com.liferay.portal.kernel.exception.PortalException,
450                            com.liferay.portal.kernel.exception.SystemException {
451                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
452                            classPK, categoryIds, tagNames);
453            }
454    
455            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
456                    long groupId, java.lang.String className, long classPK,
457                    java.lang.String classUuid, long[] categoryIds,
458                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
459                    java.util.Date endDate, java.util.Date publishDate,
460                    java.util.Date expirationDate, java.lang.String mimeType,
461                    java.lang.String title, java.lang.String description,
462                    java.lang.String summary, java.lang.String url, int height, int width,
463                    java.lang.Integer priority, boolean sync)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException {
466                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
467                            classPK, classUuid, categoryIds, tagNames, visible, startDate,
468                            endDate, publishDate, expirationDate, mimeType, title, description,
469                            summary, url, height, width, priority, sync);
470            }
471    
472            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
473                    java.lang.String className, long classPK, boolean visible)
474                    throws com.liferay.portal.kernel.exception.PortalException,
475                            com.liferay.portal.kernel.exception.SystemException {
476                    return _assetEntryLocalService.updateVisible(className, classPK, visible);
477            }
478    
479            public void validate(long groupId, java.lang.String className,
480                    long[] categoryIds, java.lang.String[] tagNames)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException {
483                    _assetEntryLocalService.validate(groupId, className, categoryIds,
484                            tagNames);
485            }
486    
487            public AssetEntryLocalService getWrappedAssetEntryLocalService() {
488                    return _assetEntryLocalService;
489            }
490    
491            public void setWrappedAssetEntryLocalService(
492                    AssetEntryLocalService assetEntryLocalService) {
493                    _assetEntryLocalService = assetEntryLocalService;
494            }
495    
496            private AssetEntryLocalService _assetEntryLocalService;
497    }