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