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