001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import 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            * @return the asset entry that was removed
064            * @throws PortalException if a asset entry with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
068                    long entryId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _assetEntryLocalService.deleteAssetEntry(entryId);
072            }
073    
074            /**
075            * Deletes the asset entry from the database. Also notifies the appropriate model listeners.
076            *
077            * @param assetEntry the asset entry
078            * @return the asset entry that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
082                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _assetEntryLocalService.deleteAssetEntry(assetEntry);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _assetEntryLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _assetEntryLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _assetEntryLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _assetEntryLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _assetEntryLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
163                    long entryId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _assetEntryLocalService.fetchAssetEntry(entryId);
166            }
167    
168            /**
169            * Returns the asset entry with the primary key.
170            *
171            * @param entryId the primary key of the asset entry
172            * @return the asset entry
173            * @throws PortalException if a asset entry with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
177                    long entryId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _assetEntryLocalService.getAssetEntry(entryId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _assetEntryLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the asset entries.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of asset entries
198            * @param end the upper bound of the range of asset entries (not inclusive)
199            * @return the range of asset entries
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _assetEntryLocalService.getAssetEntries(start, end);
206            }
207    
208            /**
209            * Returns the number of asset entries.
210            *
211            * @return the number of asset entries
212            * @throws SystemException if a system exception occurred
213            */
214            public int getAssetEntriesCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _assetEntryLocalService.getAssetEntriesCount();
217            }
218    
219            /**
220            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param assetEntry the asset entry
223            * @return the asset entry that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
227                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _assetEntryLocalService.updateAssetEntry(assetEntry);
230            }
231    
232            /**
233            * Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param assetEntry the asset entry
236            * @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.
237            * @return the asset entry that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
241                    com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return _assetEntryLocalService.updateAssetEntry(assetEntry, merge);
244            }
245    
246            /**
247            * Returns the Spring bean ID for this bean.
248            *
249            * @return the Spring bean ID for this bean
250            */
251            public java.lang.String getBeanIdentifier() {
252                    return _assetEntryLocalService.getBeanIdentifier();
253            }
254    
255            /**
256            * Sets the Spring bean ID for this bean.
257            *
258            * @param beanIdentifier the Spring bean ID for this bean
259            */
260            public void setBeanIdentifier(java.lang.String beanIdentifier) {
261                    _assetEntryLocalService.setBeanIdentifier(beanIdentifier);
262            }
263    
264            public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    _assetEntryLocalService.deleteEntry(entry);
268            }
269    
270            public void deleteEntry(long entryId)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _assetEntryLocalService.deleteEntry(entryId);
274            }
275    
276            public void deleteEntry(java.lang.String className, long classPK)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _assetEntryLocalService.deleteEntry(className, classPK);
280            }
281    
282            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _assetEntryLocalService.fetchEntry(entryId);
285            }
286    
287            public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
288                    java.lang.String className, long classPK)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    return _assetEntryLocalService.fetchEntry(className, classPK);
291            }
292    
293            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
294                    long entryId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _assetEntryLocalService.getAncestorEntries(entryId);
298            }
299    
300            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
301                    long entryId)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _assetEntryLocalService.getChildEntries(entryId);
305            }
306    
307            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
308                    long companyId, int start, int end)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _assetEntryLocalService.getCompanyEntries(companyId, start, end);
311            }
312    
313            public int getCompanyEntriesCount(long companyId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _assetEntryLocalService.getCompanyEntriesCount(companyId);
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.AssetEntry updateEntry(long userId,
425                    long groupId, java.lang.String className, long classPK,
426                    long[] categoryIds, java.lang.String[] tagNames)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
430                            classPK, categoryIds, tagNames);
431            }
432    
433            public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
434                    long groupId, java.lang.String className, long classPK,
435                    java.lang.String classUuid, long classTypeId, long[] categoryIds,
436                    java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
437                    java.util.Date endDate, java.util.Date publishDate,
438                    java.util.Date expirationDate, java.lang.String mimeType,
439                    java.lang.String title, java.lang.String description,
440                    java.lang.String summary, java.lang.String url,
441                    java.lang.String layoutUuid, int height, int width,
442                    java.lang.Integer priority, boolean sync)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return _assetEntryLocalService.updateEntry(userId, groupId, className,
446                            classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
447                            startDate, endDate, publishDate, expirationDate, mimeType, title,
448                            description, summary, url, layoutUuid, height, width, priority, sync);
449            }
450    
451            public com.liferay.portlet.asset.model.AssetEntry updateEntry(
452                    java.lang.String className, long classPK, java.util.Date publishDate,
453                    java.util.Date expirationDate, boolean visible)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException {
456                    return _assetEntryLocalService.updateEntry(className, classPK,
457                            publishDate, expirationDate, visible);
458            }
459    
460            public com.liferay.portlet.asset.model.AssetEntry updateVisible(
461                    java.lang.String className, long classPK, boolean visible)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    return _assetEntryLocalService.updateVisible(className, classPK, visible);
465            }
466    
467            public void validate(long groupId, java.lang.String className,
468                    long[] categoryIds, java.lang.String[] tagNames)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    _assetEntryLocalService.validate(groupId, className, categoryIds,
472                            tagNames);
473            }
474    
475            /**
476             * @deprecated Renamed to {@link #getWrappedService}
477             */
478            public AssetEntryLocalService getWrappedAssetEntryLocalService() {
479                    return _assetEntryLocalService;
480            }
481    
482            /**
483             * @deprecated Renamed to {@link #setWrappedService}
484             */
485            public void setWrappedAssetEntryLocalService(
486                    AssetEntryLocalService assetEntryLocalService) {
487                    _assetEntryLocalService = assetEntryLocalService;
488            }
489    
490            public AssetEntryLocalService getWrappedService() {
491                    return _assetEntryLocalService;
492            }
493    
494            public void setWrappedService(AssetEntryLocalService assetEntryLocalService) {
495                    _assetEntryLocalService = assetEntryLocalService;
496            }
497    
498            private AssetEntryLocalService _assetEntryLocalService;
499    }