001    /**
002     * Copyright (c) 2000-present 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.trash.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link TrashEntryLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see TrashEntryLocalService
026     * @generated
027     */
028    @ProviderType
029    public class TrashEntryLocalServiceWrapper implements TrashEntryLocalService,
030            ServiceWrapper<TrashEntryLocalService> {
031            public TrashEntryLocalServiceWrapper(
032                    TrashEntryLocalService trashEntryLocalService) {
033                    _trashEntryLocalService = trashEntryLocalService;
034            }
035    
036            /**
037            * Adds the trash entry to the database. Also notifies the appropriate model listeners.
038            *
039            * @param trashEntry the trash entry
040            * @return the trash entry that was added
041            */
042            @Override
043            public com.liferay.portlet.trash.model.TrashEntry addTrashEntry(
044                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
045                    return _trashEntryLocalService.addTrashEntry(trashEntry);
046            }
047    
048            /**
049            * Moves an entry to trash.
050            *
051            * @param userId the primary key of the user removing the entity
052            * @param groupId the primary key of the entry's group
053            * @param className the class name of the entity
054            * @param classPK the primary key of the entity
055            * @param classUuid the UUID of the entity's class
056            * @param referrerClassName the referrer class name used to add a deletion
057            {@link SystemEvent}
058            * @param status the status of the entity prior to being moved to trash
059            * @param statusOVPs the primary keys and statuses of any of the entry's
060            versions (e.g., {@link
061            com.liferay.portlet.documentlibrary.model.DLFileVersion})
062            * @param typeSettingsProperties the type settings properties
063            * @return the trashEntry
064            * @throws PortalException if a user with the primary key could not be found
065            */
066            @Override
067            public com.liferay.portlet.trash.model.TrashEntry addTrashEntry(
068                    long userId, long groupId, java.lang.String className, long classPK,
069                    java.lang.String classUuid, java.lang.String referrerClassName,
070                    int status,
071                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.Integer>> statusOVPs,
072                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    return _trashEntryLocalService.addTrashEntry(userId, groupId,
075                            className, classPK, classUuid, referrerClassName, status,
076                            statusOVPs, typeSettingsProperties);
077            }
078    
079            @Override
080            public void checkEntries()
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    _trashEntryLocalService.checkEntries();
083            }
084    
085            /**
086            * Creates a new trash entry with the primary key. Does not add the trash entry to the database.
087            *
088            * @param entryId the primary key for the new trash entry
089            * @return the new trash entry
090            */
091            @Override
092            public com.liferay.portlet.trash.model.TrashEntry createTrashEntry(
093                    long entryId) {
094                    return _trashEntryLocalService.createTrashEntry(entryId);
095            }
096    
097            @Override
098            public void deleteEntries(long groupId) {
099                    _trashEntryLocalService.deleteEntries(groupId);
100            }
101    
102            /**
103            * Deletes the trash entry with the entity class name and primary key.
104            *
105            * @param className the class name of entity
106            * @param classPK the primary key of the entry
107            * @return the trash entry with the entity class name and primary key
108            * @throws PortalException if a trash entry with the primary key could not
109            be found
110            */
111            @Override
112            public com.liferay.portlet.trash.model.TrashEntry deleteEntry(
113                    java.lang.String className, long classPK)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    return _trashEntryLocalService.deleteEntry(className, classPK);
116            }
117    
118            /**
119            * Deletes the trash entry with the primary key.
120            *
121            * @param entryId the primary key of the trash entry
122            * @return the trash entry with the primary key
123            * @throws PortalException if a trash entry with the primary key could not
124            be found
125            */
126            @Override
127            public com.liferay.portlet.trash.model.TrashEntry deleteEntry(long entryId)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return _trashEntryLocalService.deleteEntry(entryId);
130            }
131    
132            @Override
133            public com.liferay.portlet.trash.model.TrashEntry deleteEntry(
134                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
135                    return _trashEntryLocalService.deleteEntry(trashEntry);
136            }
137    
138            /**
139            * @throws PortalException
140            */
141            @Override
142            public com.liferay.portal.model.PersistedModel deletePersistedModel(
143                    com.liferay.portal.model.PersistedModel persistedModel)
144                    throws com.liferay.portal.kernel.exception.PortalException {
145                    return _trashEntryLocalService.deletePersistedModel(persistedModel);
146            }
147    
148            /**
149            * Deletes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
150            *
151            * @param entryId the primary key of the trash entry
152            * @return the trash entry that was removed
153            * @throws PortalException if a trash entry with the primary key could not be found
154            */
155            @Override
156            public com.liferay.portlet.trash.model.TrashEntry deleteTrashEntry(
157                    long entryId)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    return _trashEntryLocalService.deleteTrashEntry(entryId);
160            }
161    
162            /**
163            * Deletes the trash entry from the database. Also notifies the appropriate model listeners.
164            *
165            * @param trashEntry the trash entry
166            * @return the trash entry that was removed
167            */
168            @Override
169            public com.liferay.portlet.trash.model.TrashEntry deleteTrashEntry(
170                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
171                    return _trashEntryLocalService.deleteTrashEntry(trashEntry);
172            }
173    
174            @Override
175            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
176                    return _trashEntryLocalService.dynamicQuery();
177            }
178    
179            /**
180            * Performs a dynamic query on the database and returns the matching rows.
181            *
182            * @param dynamicQuery the dynamic query
183            * @return the matching rows
184            */
185            @Override
186            public <T> java.util.List<T> dynamicQuery(
187                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
188                    return _trashEntryLocalService.dynamicQuery(dynamicQuery);
189            }
190    
191            /**
192            * Performs a dynamic query on the database and returns a range of the matching rows.
193            *
194            * <p>
195            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.trash.model.impl.TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
196            * </p>
197            *
198            * @param dynamicQuery the dynamic query
199            * @param start the lower bound of the range of model instances
200            * @param end the upper bound of the range of model instances (not inclusive)
201            * @return the range of matching rows
202            */
203            @Override
204            public <T> java.util.List<T> dynamicQuery(
205                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
206                    int end) {
207                    return _trashEntryLocalService.dynamicQuery(dynamicQuery, start, end);
208            }
209    
210            /**
211            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
212            *
213            * <p>
214            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.trash.model.impl.TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
215            * </p>
216            *
217            * @param dynamicQuery the dynamic query
218            * @param start the lower bound of the range of model instances
219            * @param end the upper bound of the range of model instances (not inclusive)
220            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
221            * @return the ordered range of matching rows
222            */
223            @Override
224            public <T> java.util.List<T> dynamicQuery(
225                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
226                    int end,
227                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
228                    return _trashEntryLocalService.dynamicQuery(dynamicQuery, start, end,
229                            orderByComparator);
230            }
231    
232            /**
233            * Returns the number of rows matching the dynamic query.
234            *
235            * @param dynamicQuery the dynamic query
236            * @return the number of rows matching the dynamic query
237            */
238            @Override
239            public long dynamicQueryCount(
240                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
241                    return _trashEntryLocalService.dynamicQueryCount(dynamicQuery);
242            }
243    
244            /**
245            * Returns the number of rows matching the dynamic query.
246            *
247            * @param dynamicQuery the dynamic query
248            * @param projection the projection to apply to the query
249            * @return the number of rows matching the dynamic query
250            */
251            @Override
252            public long dynamicQueryCount(
253                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
254                    com.liferay.portal.kernel.dao.orm.Projection projection) {
255                    return _trashEntryLocalService.dynamicQueryCount(dynamicQuery,
256                            projection);
257            }
258    
259            /**
260            * Returns the trash entry with the entity class name and primary key.
261            *
262            * @param className the class name of the entity
263            * @param classPK the primary key of the entity
264            * @return the trash entry with the entity class name and primary key
265            */
266            @Override
267            public com.liferay.portlet.trash.model.TrashEntry fetchEntry(
268                    java.lang.String className, long classPK) {
269                    return _trashEntryLocalService.fetchEntry(className, classPK);
270            }
271    
272            /**
273            * Returns the trash entry with the primary key.
274            *
275            * @param entryId the primary key of the entry
276            * @return the trash entry with the primary key
277            */
278            @Override
279            public com.liferay.portlet.trash.model.TrashEntry fetchEntry(long entryId) {
280                    return _trashEntryLocalService.fetchEntry(entryId);
281            }
282    
283            @Override
284            public com.liferay.portlet.trash.model.TrashEntry fetchTrashEntry(
285                    long entryId) {
286                    return _trashEntryLocalService.fetchTrashEntry(entryId);
287            }
288    
289            @Override
290            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
291                    return _trashEntryLocalService.getActionableDynamicQuery();
292            }
293    
294            /**
295            * Returns the Spring bean ID for this bean.
296            *
297            * @return the Spring bean ID for this bean
298            */
299            @Override
300            public java.lang.String getBeanIdentifier() {
301                    return _trashEntryLocalService.getBeanIdentifier();
302            }
303    
304            /**
305            * Returns the trash entries with the matching group ID.
306            *
307            * @param groupId the primary key of the group
308            * @return the trash entries with the group ID
309            */
310            @Override
311            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
312                    long groupId) {
313                    return _trashEntryLocalService.getEntries(groupId);
314            }
315    
316            @Override
317            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
318                    long groupId, java.lang.String className) {
319                    return _trashEntryLocalService.getEntries(groupId, className);
320            }
321    
322            /**
323            * Returns a range of all the trash entries matching the group ID.
324            *
325            * @param groupId the primary key of the group
326            * @param start the lower bound of the range of trash entries to return
327            * @param end the upper bound of the range of trash entries to return (not
328            inclusive)
329            * @return the range of matching trash entries
330            */
331            @Override
332            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
333                    long groupId, int start, int end) {
334                    return _trashEntryLocalService.getEntries(groupId, start, end);
335            }
336    
337            /**
338            * Returns a range of all the trash entries matching the group ID.
339            *
340            * @param groupId the primary key of the group
341            * @param start the lower bound of the range of trash entries to return
342            * @param end the upper bound of the range of trash entries to return (not
343            inclusive)
344            * @param obc the comparator to order the trash entries (optionally
345            <code>null</code>)
346            * @return the range of matching trash entries ordered by comparator
347            <code>obc</code>
348            */
349            @Override
350            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
351                    long groupId, int start, int end,
352                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.trash.model.TrashEntry> obc) {
353                    return _trashEntryLocalService.getEntries(groupId, start, end, obc);
354            }
355    
356            /**
357            * Returns the number of trash entries with the group ID.
358            *
359            * @param groupId the primary key of the group
360            * @return the number of matching trash entries
361            */
362            @Override
363            public int getEntriesCount(long groupId) {
364                    return _trashEntryLocalService.getEntriesCount(groupId);
365            }
366    
367            /**
368            * Returns the entry with the entity class name and primary key.
369            *
370            * @param className the class name of the entity
371            * @param classPK the primary key of the entity
372            * @return the trash entry with the entity class name and primary key
373            * @throws PortalException if a trash entry with the primary key could not
374            be found
375            */
376            @Override
377            public com.liferay.portlet.trash.model.TrashEntry getEntry(
378                    java.lang.String className, long classPK)
379                    throws com.liferay.portal.kernel.exception.PortalException {
380                    return _trashEntryLocalService.getEntry(className, classPK);
381            }
382    
383            /**
384            * Returns the trash entry with the primary key.
385            *
386            * @param entryId the primary key of the trash entry
387            * @return the trash entry with the primary key
388            * @throws PortalException if a trash entry with the primary key could not
389            be found
390            */
391            @Override
392            public com.liferay.portlet.trash.model.TrashEntry getEntry(long entryId)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    return _trashEntryLocalService.getEntry(entryId);
395            }
396    
397            @Override
398            public com.liferay.portal.model.PersistedModel getPersistedModel(
399                    java.io.Serializable primaryKeyObj)
400                    throws com.liferay.portal.kernel.exception.PortalException {
401                    return _trashEntryLocalService.getPersistedModel(primaryKeyObj);
402            }
403    
404            /**
405            * Returns a range of all the trash entries.
406            *
407            * <p>
408            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.trash.model.impl.TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
409            * </p>
410            *
411            * @param start the lower bound of the range of trash entries
412            * @param end the upper bound of the range of trash entries (not inclusive)
413            * @return the range of trash entries
414            */
415            @Override
416            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getTrashEntries(
417                    int start, int end) {
418                    return _trashEntryLocalService.getTrashEntries(start, end);
419            }
420    
421            /**
422            * Returns the number of trash entries.
423            *
424            * @return the number of trash entries
425            */
426            @Override
427            public int getTrashEntriesCount() {
428                    return _trashEntryLocalService.getTrashEntriesCount();
429            }
430    
431            /**
432            * Returns the trash entry with the primary key.
433            *
434            * @param entryId the primary key of the trash entry
435            * @return the trash entry
436            * @throws PortalException if a trash entry with the primary key could not be found
437            */
438            @Override
439            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry(
440                    long entryId)
441                    throws com.liferay.portal.kernel.exception.PortalException {
442                    return _trashEntryLocalService.getTrashEntry(entryId);
443            }
444    
445            @Override
446            public com.liferay.portal.kernel.search.Hits search(long companyId,
447                    long groupId, long userId, java.lang.String keywords, int start,
448                    int end, com.liferay.portal.kernel.search.Sort sort) {
449                    return _trashEntryLocalService.search(companyId, groupId, userId,
450                            keywords, start, end, sort);
451            }
452    
453            @Override
454            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.trash.model.TrashEntry> searchTrashEntries(
455                    long companyId, long groupId, long userId, java.lang.String keywords,
456                    int start, int end, com.liferay.portal.kernel.search.Sort sort) {
457                    return _trashEntryLocalService.searchTrashEntries(companyId, groupId,
458                            userId, keywords, start, end, sort);
459            }
460    
461            /**
462            * Sets the Spring bean ID for this bean.
463            *
464            * @param beanIdentifier the Spring bean ID for this bean
465            */
466            @Override
467            public void setBeanIdentifier(java.lang.String beanIdentifier) {
468                    _trashEntryLocalService.setBeanIdentifier(beanIdentifier);
469            }
470    
471            /**
472            * Updates the trash entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
473            *
474            * @param trashEntry the trash entry
475            * @return the trash entry that was updated
476            */
477            @Override
478            public com.liferay.portlet.trash.model.TrashEntry updateTrashEntry(
479                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
480                    return _trashEntryLocalService.updateTrashEntry(trashEntry);
481            }
482    
483            /**
484             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
485             */
486            @Deprecated
487            public TrashEntryLocalService getWrappedTrashEntryLocalService() {
488                    return _trashEntryLocalService;
489            }
490    
491            /**
492             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
493             */
494            @Deprecated
495            public void setWrappedTrashEntryLocalService(
496                    TrashEntryLocalService trashEntryLocalService) {
497                    _trashEntryLocalService = trashEntryLocalService;
498            }
499    
500            @Override
501            public TrashEntryLocalService getWrappedService() {
502                    return _trashEntryLocalService;
503            }
504    
505            @Override
506            public void setWrappedService(TrashEntryLocalService trashEntryLocalService) {
507                    _trashEntryLocalService = trashEntryLocalService;
508            }
509    
510            private TrashEntryLocalService _trashEntryLocalService;
511    }