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            @Override
227            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
228                    return _systemEventLocalService.getIndexableActionableDynamicQuery();
229            }
230    
231            /**
232            * Returns the OSGi service identifier.
233            *
234            * @return the OSGi service identifier
235            */
236            @Override
237            public java.lang.String getOSGiServiceIdentifier() {
238                    return _systemEventLocalService.getOSGiServiceIdentifier();
239            }
240    
241            @Override
242            public com.liferay.portal.model.PersistedModel getPersistedModel(
243                    java.io.Serializable primaryKeyObj)
244                    throws com.liferay.portal.kernel.exception.PortalException {
245                    return _systemEventLocalService.getPersistedModel(primaryKeyObj);
246            }
247    
248            /**
249            * Returns the system event with the primary key.
250            *
251            * @param systemEventId the primary key of the system event
252            * @return the system event
253            * @throws PortalException if a system event with the primary key could not be found
254            */
255            @Override
256            public com.liferay.portal.model.SystemEvent getSystemEvent(
257                    long systemEventId)
258                    throws com.liferay.portal.kernel.exception.PortalException {
259                    return _systemEventLocalService.getSystemEvent(systemEventId);
260            }
261    
262            @Override
263            public java.util.List<com.liferay.portal.model.SystemEvent> getSystemEvents(
264                    long groupId, long classNameId, long classPK) {
265                    return _systemEventLocalService.getSystemEvents(groupId, classNameId,
266                            classPK);
267            }
268    
269            @Override
270            public java.util.List<com.liferay.portal.model.SystemEvent> getSystemEvents(
271                    long groupId, long classNameId, long classPK, int type) {
272                    return _systemEventLocalService.getSystemEvents(groupId, classNameId,
273                            classPK, type);
274            }
275    
276            /**
277            * Returns a range of all the system events.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param start the lower bound of the range of system events
284            * @param end the upper bound of the range of system events (not inclusive)
285            * @return the range of system events
286            */
287            @Override
288            public java.util.List<com.liferay.portal.model.SystemEvent> getSystemEvents(
289                    int start, int end) {
290                    return _systemEventLocalService.getSystemEvents(start, end);
291            }
292    
293            /**
294            * Returns the number of system events.
295            *
296            * @return the number of system events
297            */
298            @Override
299            public int getSystemEventsCount() {
300                    return _systemEventLocalService.getSystemEventsCount();
301            }
302    
303            /**
304            * Updates the system event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
305            *
306            * @param systemEvent the system event
307            * @return the system event that was updated
308            */
309            @Override
310            public com.liferay.portal.model.SystemEvent updateSystemEvent(
311                    com.liferay.portal.model.SystemEvent systemEvent) {
312                    return _systemEventLocalService.updateSystemEvent(systemEvent);
313            }
314    
315            @Override
316            public SystemEventLocalService getWrappedService() {
317                    return _systemEventLocalService;
318            }
319    
320            @Override
321            public void setWrappedService(
322                    SystemEventLocalService systemEventLocalService) {
323                    _systemEventLocalService = systemEventLocalService;
324            }
325    
326            private SystemEventLocalService _systemEventLocalService;
327    }