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.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link SystemEventLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see SystemEventLocalService
024     * @generated
025     */
026    @ProviderType
027    public class SystemEventLocalServiceWrapper implements SystemEventLocalService,
028            ServiceWrapper<SystemEventLocalService> {
029            public SystemEventLocalServiceWrapper(
030                    SystemEventLocalService systemEventLocalService) {
031                    _systemEventLocalService = systemEventLocalService;
032            }
033    
034            @Override
035            public com.liferay.portal.model.SystemEvent addSystemEvent(long companyId,
036                    java.lang.String className, long classPK, java.lang.String classUuid,
037                    java.lang.String referrerClassName, int type, java.lang.String extraData)
038                    throws com.liferay.portal.kernel.exception.PortalException {
039                    return _systemEventLocalService.addSystemEvent(companyId, className,
040                            classPK, classUuid, referrerClassName, type, extraData);
041            }
042    
043            /**
044            * Adds the system event to the database. Also notifies the appropriate model listeners.
045            *
046            * @param systemEvent the system event
047            * @return the system event that was added
048            */
049            @Override
050            public com.liferay.portal.model.SystemEvent addSystemEvent(
051                    com.liferay.portal.model.SystemEvent systemEvent) {
052                    return _systemEventLocalService.addSystemEvent(systemEvent);
053            }
054    
055            @Override
056            public com.liferay.portal.model.SystemEvent addSystemEvent(long userId,
057                    long groupId, java.lang.String className, long classPK,
058                    java.lang.String classUuid, java.lang.String referrerClassName,
059                    int type, java.lang.String extraData)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return _systemEventLocalService.addSystemEvent(userId, groupId,
062                            className, classPK, classUuid, referrerClassName, type, extraData);
063            }
064    
065            /**
066            * Creates a new system event with the primary key. Does not add the system event to the database.
067            *
068            * @param systemEventId the primary key for the new system event
069            * @return the new system event
070            */
071            @Override
072            public com.liferay.portal.model.SystemEvent createSystemEvent(
073                    long systemEventId) {
074                    return _systemEventLocalService.createSystemEvent(systemEventId);
075            }
076    
077            /**
078            * @throws PortalException
079            */
080            @Override
081            public com.liferay.portal.model.PersistedModel deletePersistedModel(
082                    com.liferay.portal.model.PersistedModel persistedModel)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _systemEventLocalService.deletePersistedModel(persistedModel);
085            }
086    
087            /**
088            * Deletes the system event from the database. Also notifies the appropriate model listeners.
089            *
090            * @param systemEvent the system event
091            * @return the system event that was removed
092            */
093            @Override
094            public com.liferay.portal.model.SystemEvent deleteSystemEvent(
095                    com.liferay.portal.model.SystemEvent systemEvent) {
096                    return _systemEventLocalService.deleteSystemEvent(systemEvent);
097            }
098    
099            /**
100            * Deletes the system event with the primary key from the database. Also notifies the appropriate model listeners.
101            *
102            * @param systemEventId the primary key of the system event
103            * @return the system event that was removed
104            * @throws PortalException if a system event with the primary key could not be found
105            */
106            @Override
107            public com.liferay.portal.model.SystemEvent deleteSystemEvent(
108                    long systemEventId)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    return _systemEventLocalService.deleteSystemEvent(systemEventId);
111            }
112    
113            @Override
114            public void deleteSystemEvents(long groupId) {
115                    _systemEventLocalService.deleteSystemEvents(groupId);
116            }
117    
118            @Override
119            public void deleteSystemEvents(long groupId, long systemEventSetKey) {
120                    _systemEventLocalService.deleteSystemEvents(groupId, systemEventSetKey);
121            }
122    
123            @Override
124            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
125                    return _systemEventLocalService.dynamicQuery();
126            }
127    
128            /**
129            * Performs a dynamic query on the database and returns the matching rows.
130            *
131            * @param dynamicQuery the dynamic query
132            * @return the matching rows
133            */
134            @Override
135            public <T> java.util.List<T> dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
137                    return _systemEventLocalService.dynamicQuery(dynamicQuery);
138            }
139    
140            /**
141            * Performs a dynamic query on the database and returns a range of the matching rows.
142            *
143            * <p>
144            * 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.portal.model.impl.SystemEventModelImpl}. 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.
145            * </p>
146            *
147            * @param dynamicQuery the dynamic query
148            * @param start the lower bound of the range of model instances
149            * @param end the upper bound of the range of model instances (not inclusive)
150            * @return the range of matching rows
151            */
152            @Override
153            public <T> java.util.List<T> dynamicQuery(
154                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
155                    int end) {
156                    return _systemEventLocalService.dynamicQuery(dynamicQuery, start, end);
157            }
158    
159            /**
160            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
161            *
162            * <p>
163            * 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.portal.model.impl.SystemEventModelImpl}. 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.
164            * </p>
165            *
166            * @param dynamicQuery the dynamic query
167            * @param start the lower bound of the range of model instances
168            * @param end the upper bound of the range of model instances (not inclusive)
169            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
170            * @return the ordered range of matching rows
171            */
172            @Override
173            public <T> java.util.List<T> dynamicQuery(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
175                    int end,
176                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
177                    return _systemEventLocalService.dynamicQuery(dynamicQuery, start, end,
178                            orderByComparator);
179            }
180    
181            /**
182            * Returns the number of rows matching the dynamic query.
183            *
184            * @param dynamicQuery the dynamic query
185            * @return the number of rows matching the dynamic query
186            */
187            @Override
188            public long dynamicQueryCount(
189                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
190                    return _systemEventLocalService.dynamicQueryCount(dynamicQuery);
191            }
192    
193            /**
194            * Returns the number of rows matching the dynamic query.
195            *
196            * @param dynamicQuery the dynamic query
197            * @param projection the projection to apply to the query
198            * @return the number of rows matching the dynamic query
199            */
200            @Override
201            public long dynamicQueryCount(
202                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
203                    com.liferay.portal.kernel.dao.orm.Projection projection) {
204                    return _systemEventLocalService.dynamicQueryCount(dynamicQuery,
205                            projection);
206            }
207    
208            @Override
209            public com.liferay.portal.model.SystemEvent fetchSystemEvent(long groupId,
210                    long classNameId, long classPK, int type) {
211                    return _systemEventLocalService.fetchSystemEvent(groupId, classNameId,
212                            classPK, type);
213            }
214    
215            @Override
216            public com.liferay.portal.model.SystemEvent fetchSystemEvent(
217                    long systemEventId) {
218                    return _systemEventLocalService.fetchSystemEvent(systemEventId);
219            }
220    
221            @Override
222            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
223                    return _systemEventLocalService.getActionableDynamicQuery();
224            }
225    
226            /**
227            * Returns the OSGi service identifier.
228            *
229            * @return the OSGi service identifier
230            */
231            @Override
232            public java.lang.String getOSGiServiceIdentifier() {
233                    return _systemEventLocalService.getOSGiServiceIdentifier();
234            }
235    
236            @Override
237            public com.liferay.portal.model.PersistedModel getPersistedModel(
238                    java.io.Serializable primaryKeyObj)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    return _systemEventLocalService.getPersistedModel(primaryKeyObj);
241            }
242    
243            /**
244            * Returns the system event with the primary key.
245            *
246            * @param systemEventId the primary key of the system event
247            * @return the system event
248            * @throws PortalException if a system event with the primary key could not be found
249            */
250            @Override
251            public com.liferay.portal.model.SystemEvent getSystemEvent(
252                    long systemEventId)
253                    throws com.liferay.portal.kernel.exception.PortalException {
254                    return _systemEventLocalService.getSystemEvent(systemEventId);
255            }
256    
257            @Override
258            public java.util.List<com.liferay.portal.model.SystemEvent> getSystemEvents(
259                    long groupId, long classNameId, long classPK) {
260                    return _systemEventLocalService.getSystemEvents(groupId, classNameId,
261                            classPK);
262            }
263    
264            @Override
265            public java.util.List<com.liferay.portal.model.SystemEvent> getSystemEvents(
266                    long groupId, long classNameId, long classPK, int type) {
267                    return _systemEventLocalService.getSystemEvents(groupId, classNameId,
268                            classPK, type);
269            }
270    
271            /**
272            * Returns a range of all the system events.
273            *
274            * <p>
275            * 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.portal.model.impl.SystemEventModelImpl}. 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.
276            * </p>
277            *
278            * @param start the lower bound of the range of system events
279            * @param end the upper bound of the range of system events (not inclusive)
280            * @return the range of system events
281            */
282            @Override
283            public java.util.List<com.liferay.portal.model.SystemEvent> getSystemEvents(
284                    int start, int end) {
285                    return _systemEventLocalService.getSystemEvents(start, end);
286            }
287    
288            /**
289            * Returns the number of system events.
290            *
291            * @return the number of system events
292            */
293            @Override
294            public int getSystemEventsCount() {
295                    return _systemEventLocalService.getSystemEventsCount();
296            }
297    
298            /**
299            * Updates the system event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
300            *
301            * @param systemEvent the system event
302            * @return the system event that was updated
303            */
304            @Override
305            public com.liferay.portal.model.SystemEvent updateSystemEvent(
306                    com.liferay.portal.model.SystemEvent systemEvent) {
307                    return _systemEventLocalService.updateSystemEvent(systemEvent);
308            }
309    
310            /**
311             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
312             */
313            @Deprecated
314            public SystemEventLocalService getWrappedSystemEventLocalService() {
315                    return _systemEventLocalService;
316            }
317    
318            /**
319             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
320             */
321            @Deprecated
322            public void setWrappedSystemEventLocalService(
323                    SystemEventLocalService systemEventLocalService) {
324                    _systemEventLocalService = systemEventLocalService;
325            }
326    
327            @Override
328            public SystemEventLocalService getWrappedService() {
329                    return _systemEventLocalService;
330            }
331    
332            @Override
333            public void setWrappedService(
334                    SystemEventLocalService systemEventLocalService) {
335                    _systemEventLocalService = systemEventLocalService;
336            }
337    
338            private SystemEventLocalService _systemEventLocalService;
339    }