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            /**
098            * Deletes the trash entry with the entity class name and primary key.
099            *
100            * @param className the class name of entity
101            * @param classPK the primary key of the entry
102            * @return the trash entry with the entity class name and primary key
103            * @throws PortalException if a trash entry with the primary key could not
104            be found
105            */
106            @Override
107            public com.liferay.portlet.trash.model.TrashEntry deleteEntry(
108                    java.lang.String className, long classPK)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    return _trashEntryLocalService.deleteEntry(className, classPK);
111            }
112    
113            /**
114            * Deletes the trash entry with the primary key.
115            *
116            * @param entryId the primary key of the trash entry
117            * @return the trash entry with the primary key
118            * @throws PortalException if a trash entry with the primary key could not
119            be found
120            */
121            @Override
122            public com.liferay.portlet.trash.model.TrashEntry deleteEntry(long entryId)
123                    throws com.liferay.portal.kernel.exception.PortalException {
124                    return _trashEntryLocalService.deleteEntry(entryId);
125            }
126    
127            @Override
128            public com.liferay.portlet.trash.model.TrashEntry deleteEntry(
129                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
130                    return _trashEntryLocalService.deleteEntry(trashEntry);
131            }
132    
133            /**
134            * @throws PortalException
135            */
136            @Override
137            public com.liferay.portal.model.PersistedModel deletePersistedModel(
138                    com.liferay.portal.model.PersistedModel persistedModel)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return _trashEntryLocalService.deletePersistedModel(persistedModel);
141            }
142    
143            /**
144            * Deletes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param entryId the primary key of the trash entry
147            * @return the trash entry that was removed
148            * @throws PortalException if a trash entry with the primary key could not be found
149            */
150            @Override
151            public com.liferay.portlet.trash.model.TrashEntry deleteTrashEntry(
152                    long entryId)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    return _trashEntryLocalService.deleteTrashEntry(entryId);
155            }
156    
157            /**
158            * Deletes the trash entry from the database. Also notifies the appropriate model listeners.
159            *
160            * @param trashEntry the trash entry
161            * @return the trash entry that was removed
162            */
163            @Override
164            public com.liferay.portlet.trash.model.TrashEntry deleteTrashEntry(
165                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
166                    return _trashEntryLocalService.deleteTrashEntry(trashEntry);
167            }
168    
169            @Override
170            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
171                    return _trashEntryLocalService.dynamicQuery();
172            }
173    
174            /**
175            * Performs a dynamic query on the database and returns the matching rows.
176            *
177            * @param dynamicQuery the dynamic query
178            * @return the matching rows
179            */
180            @Override
181            public <T> java.util.List<T> dynamicQuery(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
183                    return _trashEntryLocalService.dynamicQuery(dynamicQuery);
184            }
185    
186            /**
187            * Performs a dynamic query on the database and returns a range of the matching rows.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param dynamicQuery the dynamic query
194            * @param start the lower bound of the range of model instances
195            * @param end the upper bound of the range of model instances (not inclusive)
196            * @return the range of matching rows
197            */
198            @Override
199            public <T> java.util.List<T> dynamicQuery(
200                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
201                    int end) {
202                    return _trashEntryLocalService.dynamicQuery(dynamicQuery, start, end);
203            }
204    
205            /**
206            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
207            *
208            * <p>
209            * 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.
210            * </p>
211            *
212            * @param dynamicQuery the dynamic query
213            * @param start the lower bound of the range of model instances
214            * @param end the upper bound of the range of model instances (not inclusive)
215            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
216            * @return the ordered range of matching rows
217            */
218            @Override
219            public <T> java.util.List<T> dynamicQuery(
220                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
221                    int end,
222                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
223                    return _trashEntryLocalService.dynamicQuery(dynamicQuery, start, end,
224                            orderByComparator);
225            }
226    
227            /**
228            * Returns the number of rows matching the dynamic query.
229            *
230            * @param dynamicQuery the dynamic query
231            * @return the number of rows matching the dynamic query
232            */
233            @Override
234            public long dynamicQueryCount(
235                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
236                    return _trashEntryLocalService.dynamicQueryCount(dynamicQuery);
237            }
238    
239            /**
240            * Returns the number of rows matching the dynamic query.
241            *
242            * @param dynamicQuery the dynamic query
243            * @param projection the projection to apply to the query
244            * @return the number of rows matching the dynamic query
245            */
246            @Override
247            public long dynamicQueryCount(
248                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
249                    com.liferay.portal.kernel.dao.orm.Projection projection) {
250                    return _trashEntryLocalService.dynamicQueryCount(dynamicQuery,
251                            projection);
252            }
253    
254            /**
255            * Returns the trash entry with the entity class name and primary key.
256            *
257            * @param className the class name of the entity
258            * @param classPK the primary key of the entity
259            * @return the trash entry with the entity class name and primary key
260            */
261            @Override
262            public com.liferay.portlet.trash.model.TrashEntry fetchEntry(
263                    java.lang.String className, long classPK) {
264                    return _trashEntryLocalService.fetchEntry(className, classPK);
265            }
266    
267            /**
268            * Returns the trash entry with the primary key.
269            *
270            * @param entryId the primary key of the entry
271            * @return the trash entry with the primary key
272            */
273            @Override
274            public com.liferay.portlet.trash.model.TrashEntry fetchEntry(long entryId) {
275                    return _trashEntryLocalService.fetchEntry(entryId);
276            }
277    
278            @Override
279            public com.liferay.portlet.trash.model.TrashEntry fetchTrashEntry(
280                    long entryId) {
281                    return _trashEntryLocalService.fetchTrashEntry(entryId);
282            }
283    
284            @Override
285            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
286                    return _trashEntryLocalService.getActionableDynamicQuery();
287            }
288    
289            /**
290            * Returns the Spring bean ID for this bean.
291            *
292            * @return the Spring bean ID for this bean
293            */
294            @Override
295            public java.lang.String getBeanIdentifier() {
296                    return _trashEntryLocalService.getBeanIdentifier();
297            }
298    
299            /**
300            * Returns the trash entries with the matching group ID.
301            *
302            * @param groupId the primary key of the group
303            * @return the trash entries with the group ID
304            */
305            @Override
306            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
307                    long groupId) {
308                    return _trashEntryLocalService.getEntries(groupId);
309            }
310    
311            @Override
312            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
313                    long groupId, java.lang.String className) {
314                    return _trashEntryLocalService.getEntries(groupId, className);
315            }
316    
317            /**
318            * Returns a range of all the trash entries matching the group ID.
319            *
320            * @param groupId the primary key of the group
321            * @param start the lower bound of the range of trash entries to return
322            * @param end the upper bound of the range of trash entries to return (not
323            inclusive)
324            * @return the range of matching trash entries
325            */
326            @Override
327            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
328                    long groupId, int start, int end) {
329                    return _trashEntryLocalService.getEntries(groupId, start, end);
330            }
331    
332            /**
333            * Returns a range of all the trash entries matching the group ID.
334            *
335            * @param groupId the primary key of the group
336            * @param start the lower bound of the range of trash entries to return
337            * @param end the upper bound of the range of trash entries to return (not
338            inclusive)
339            * @param obc the comparator to order the trash entries (optionally
340            <code>null</code>)
341            * @return the range of matching trash entries ordered by comparator
342            <code>obc</code>
343            */
344            @Override
345            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(
346                    long groupId, int start, int end,
347                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.trash.model.TrashEntry> obc) {
348                    return _trashEntryLocalService.getEntries(groupId, start, end, obc);
349            }
350    
351            /**
352            * Returns the number of trash entries with the group ID.
353            *
354            * @param groupId the primary key of the group
355            * @return the number of matching trash entries
356            */
357            @Override
358            public int getEntriesCount(long groupId) {
359                    return _trashEntryLocalService.getEntriesCount(groupId);
360            }
361    
362            /**
363            * Returns the entry with the entity class name and primary key.
364            *
365            * @param className the class name of the entity
366            * @param classPK the primary key of the entity
367            * @return the trash entry with the entity class name and primary key
368            * @throws PortalException if a trash entry with the primary key could not
369            be found
370            */
371            @Override
372            public com.liferay.portlet.trash.model.TrashEntry getEntry(
373                    java.lang.String className, long classPK)
374                    throws com.liferay.portal.kernel.exception.PortalException {
375                    return _trashEntryLocalService.getEntry(className, classPK);
376            }
377    
378            /**
379            * Returns the trash entry with the primary key.
380            *
381            * @param entryId the primary key of the trash entry
382            * @return the trash entry with the primary key
383            * @throws PortalException if a trash entry with the primary key could not
384            be found
385            */
386            @Override
387            public com.liferay.portlet.trash.model.TrashEntry getEntry(long entryId)
388                    throws com.liferay.portal.kernel.exception.PortalException {
389                    return _trashEntryLocalService.getEntry(entryId);
390            }
391    
392            @Override
393            public com.liferay.portal.model.PersistedModel getPersistedModel(
394                    java.io.Serializable primaryKeyObj)
395                    throws com.liferay.portal.kernel.exception.PortalException {
396                    return _trashEntryLocalService.getPersistedModel(primaryKeyObj);
397            }
398    
399            /**
400            * Returns a range of all the trash entries.
401            *
402            * <p>
403            * 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.
404            * </p>
405            *
406            * @param start the lower bound of the range of trash entries
407            * @param end the upper bound of the range of trash entries (not inclusive)
408            * @return the range of trash entries
409            */
410            @Override
411            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> getTrashEntries(
412                    int start, int end) {
413                    return _trashEntryLocalService.getTrashEntries(start, end);
414            }
415    
416            /**
417            * Returns the number of trash entries.
418            *
419            * @return the number of trash entries
420            */
421            @Override
422            public int getTrashEntriesCount() {
423                    return _trashEntryLocalService.getTrashEntriesCount();
424            }
425    
426            /**
427            * Returns the trash entry with the primary key.
428            *
429            * @param entryId the primary key of the trash entry
430            * @return the trash entry
431            * @throws PortalException if a trash entry with the primary key could not be found
432            */
433            @Override
434            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry(
435                    long entryId)
436                    throws com.liferay.portal.kernel.exception.PortalException {
437                    return _trashEntryLocalService.getTrashEntry(entryId);
438            }
439    
440            @Override
441            public com.liferay.portal.kernel.search.Hits search(long companyId,
442                    long groupId, long userId, java.lang.String keywords, int start,
443                    int end, com.liferay.portal.kernel.search.Sort sort) {
444                    return _trashEntryLocalService.search(companyId, groupId, userId,
445                            keywords, start, end, sort);
446            }
447    
448            @Override
449            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.trash.model.TrashEntry> searchTrashEntries(
450                    long companyId, long groupId, long userId, java.lang.String keywords,
451                    int start, int end, com.liferay.portal.kernel.search.Sort sort) {
452                    return _trashEntryLocalService.searchTrashEntries(companyId, groupId,
453                            userId, keywords, start, end, sort);
454            }
455    
456            /**
457            * Sets the Spring bean ID for this bean.
458            *
459            * @param beanIdentifier the Spring bean ID for this bean
460            */
461            @Override
462            public void setBeanIdentifier(java.lang.String beanIdentifier) {
463                    _trashEntryLocalService.setBeanIdentifier(beanIdentifier);
464            }
465    
466            /**
467            * Updates the trash entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
468            *
469            * @param trashEntry the trash entry
470            * @return the trash entry that was updated
471            */
472            @Override
473            public com.liferay.portlet.trash.model.TrashEntry updateTrashEntry(
474                    com.liferay.portlet.trash.model.TrashEntry trashEntry) {
475                    return _trashEntryLocalService.updateTrashEntry(trashEntry);
476            }
477    
478            /**
479             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
480             */
481            @Deprecated
482            public TrashEntryLocalService getWrappedTrashEntryLocalService() {
483                    return _trashEntryLocalService;
484            }
485    
486            /**
487             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
488             */
489            @Deprecated
490            public void setWrappedTrashEntryLocalService(
491                    TrashEntryLocalService trashEntryLocalService) {
492                    _trashEntryLocalService = trashEntryLocalService;
493            }
494    
495            @Override
496            public TrashEntryLocalService getWrappedService() {
497                    return _trashEntryLocalService;
498            }
499    
500            @Override
501            public void setWrappedService(TrashEntryLocalService trashEntryLocalService) {
502                    _trashEntryLocalService = trashEntryLocalService;
503            }
504    
505            private TrashEntryLocalService _trashEntryLocalService;
506    }