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 LayoutSetPrototypeLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see LayoutSetPrototypeLocalService
024     * @generated
025     */
026    @ProviderType
027    public class LayoutSetPrototypeLocalServiceWrapper
028            implements LayoutSetPrototypeLocalService,
029                    ServiceWrapper<LayoutSetPrototypeLocalService> {
030            public LayoutSetPrototypeLocalServiceWrapper(
031                    LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
032                    _layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
033            }
034    
035            /**
036            * Adds the layout set prototype to the database. Also notifies the appropriate model listeners.
037            *
038            * @param layoutSetPrototype the layout set prototype
039            * @return the layout set prototype that was added
040            */
041            @Override
042            public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
043                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
044                    return _layoutSetPrototypeLocalService.addLayoutSetPrototype(layoutSetPrototype);
045            }
046    
047            /**
048            * @deprecated As of 7.0.0, replaced by {@link #addLayoutSetPrototype(long,
049            long, Map, Map, boolean, boolean, ServiceContext)}
050            */
051            @Deprecated
052            @Override
053            public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
054                    long userId, long companyId,
055                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
056                    java.lang.String description, boolean active,
057                    boolean layoutsUpdateable,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return _layoutSetPrototypeLocalService.addLayoutSetPrototype(userId,
061                            companyId, nameMap, description, active, layoutsUpdateable,
062                            serviceContext);
063            }
064    
065            @Override
066            public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
067                    long userId, long companyId,
068                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
069                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
070                    boolean active, boolean layoutsUpdateable,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return _layoutSetPrototypeLocalService.addLayoutSetPrototype(userId,
074                            companyId, nameMap, descriptionMap, active, layoutsUpdateable,
075                            serviceContext);
076            }
077    
078            /**
079            * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database.
080            *
081            * @param layoutSetPrototypeId the primary key for the new layout set prototype
082            * @return the new layout set prototype
083            */
084            @Override
085            public com.liferay.portal.model.LayoutSetPrototype createLayoutSetPrototype(
086                    long layoutSetPrototypeId) {
087                    return _layoutSetPrototypeLocalService.createLayoutSetPrototype(layoutSetPrototypeId);
088            }
089    
090            /**
091            * Deletes the layout set prototype from the database. Also notifies the appropriate model listeners.
092            *
093            * @param layoutSetPrototype the layout set prototype
094            * @return the layout set prototype that was removed
095            * @throws PortalException
096            */
097            @Override
098            public com.liferay.portal.model.LayoutSetPrototype deleteLayoutSetPrototype(
099                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return _layoutSetPrototypeLocalService.deleteLayoutSetPrototype(layoutSetPrototype);
102            }
103    
104            /**
105            * Deletes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners.
106            *
107            * @param layoutSetPrototypeId the primary key of the layout set prototype
108            * @return the layout set prototype that was removed
109            * @throws PortalException if a layout set prototype with the primary key could not be found
110            */
111            @Override
112            public com.liferay.portal.model.LayoutSetPrototype deleteLayoutSetPrototype(
113                    long layoutSetPrototypeId)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    return _layoutSetPrototypeLocalService.deleteLayoutSetPrototype(layoutSetPrototypeId);
116            }
117    
118            @Override
119            public void deleteLayoutSetPrototypes()
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    _layoutSetPrototypeLocalService.deleteLayoutSetPrototypes();
122            }
123    
124            @Override
125            public void deleteNondefaultLayoutSetPrototypes(long companyId)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    _layoutSetPrototypeLocalService.deleteNondefaultLayoutSetPrototypes(companyId);
128            }
129    
130            /**
131            * @throws PortalException
132            */
133            @Override
134            public com.liferay.portal.model.PersistedModel deletePersistedModel(
135                    com.liferay.portal.model.PersistedModel persistedModel)
136                    throws com.liferay.portal.kernel.exception.PortalException {
137                    return _layoutSetPrototypeLocalService.deletePersistedModel(persistedModel);
138            }
139    
140            @Override
141            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
142                    return _layoutSetPrototypeLocalService.dynamicQuery();
143            }
144    
145            /**
146            * Performs a dynamic query on the database and returns the matching rows.
147            *
148            * @param dynamicQuery the dynamic query
149            * @return the matching rows
150            */
151            @Override
152            public <T> java.util.List<T> dynamicQuery(
153                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
154                    return _layoutSetPrototypeLocalService.dynamicQuery(dynamicQuery);
155            }
156    
157            /**
158            * Performs a dynamic query on the database and returns a range of the matching rows.
159            *
160            * <p>
161            * 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.LayoutSetPrototypeModelImpl}. 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.
162            * </p>
163            *
164            * @param dynamicQuery the dynamic query
165            * @param start the lower bound of the range of model instances
166            * @param end the upper bound of the range of model instances (not inclusive)
167            * @return the range of matching rows
168            */
169            @Override
170            public <T> java.util.List<T> dynamicQuery(
171                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
172                    int end) {
173                    return _layoutSetPrototypeLocalService.dynamicQuery(dynamicQuery,
174                            start, end);
175            }
176    
177            /**
178            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
179            *
180            * <p>
181            * 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.LayoutSetPrototypeModelImpl}. 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.
182            * </p>
183            *
184            * @param dynamicQuery the dynamic query
185            * @param start the lower bound of the range of model instances
186            * @param end the upper bound of the range of model instances (not inclusive)
187            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
188            * @return the ordered range of matching rows
189            */
190            @Override
191            public <T> java.util.List<T> dynamicQuery(
192                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
193                    int end,
194                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
195                    return _layoutSetPrototypeLocalService.dynamicQuery(dynamicQuery,
196                            start, end, orderByComparator);
197            }
198    
199            /**
200            * Returns the number of rows matching the dynamic query.
201            *
202            * @param dynamicQuery the dynamic query
203            * @return the number of rows matching the dynamic query
204            */
205            @Override
206            public long dynamicQueryCount(
207                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
208                    return _layoutSetPrototypeLocalService.dynamicQueryCount(dynamicQuery);
209            }
210    
211            /**
212            * Returns the number of rows matching the dynamic query.
213            *
214            * @param dynamicQuery the dynamic query
215            * @param projection the projection to apply to the query
216            * @return the number of rows matching the dynamic query
217            */
218            @Override
219            public long dynamicQueryCount(
220                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
221                    com.liferay.portal.kernel.dao.orm.Projection projection) {
222                    return _layoutSetPrototypeLocalService.dynamicQueryCount(dynamicQuery,
223                            projection);
224            }
225    
226            @Override
227            public com.liferay.portal.model.LayoutSetPrototype fetchLayoutSetPrototype(
228                    long layoutSetPrototypeId) {
229                    return _layoutSetPrototypeLocalService.fetchLayoutSetPrototype(layoutSetPrototypeId);
230            }
231    
232            /**
233            * Returns the layout set prototype with the matching UUID and company.
234            *
235            * @param uuid the layout set prototype's UUID
236            * @param companyId the primary key of the company
237            * @return the matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found
238            */
239            @Override
240            public com.liferay.portal.model.LayoutSetPrototype fetchLayoutSetPrototypeByUuidAndCompanyId(
241                    java.lang.String uuid, long companyId) {
242                    return _layoutSetPrototypeLocalService.fetchLayoutSetPrototypeByUuidAndCompanyId(uuid,
243                            companyId);
244            }
245    
246            @Override
247            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
248                    return _layoutSetPrototypeLocalService.getActionableDynamicQuery();
249            }
250    
251            @Override
252            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
253                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
254                    return _layoutSetPrototypeLocalService.getExportActionableDynamicQuery(portletDataContext);
255            }
256    
257            @Override
258            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
259                    return _layoutSetPrototypeLocalService.getIndexableActionableDynamicQuery();
260            }
261    
262            /**
263            * Returns the layout set prototype with the primary key.
264            *
265            * @param layoutSetPrototypeId the primary key of the layout set prototype
266            * @return the layout set prototype
267            * @throws PortalException if a layout set prototype with the primary key could not be found
268            */
269            @Override
270            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
271                    long layoutSetPrototypeId)
272                    throws com.liferay.portal.kernel.exception.PortalException {
273                    return _layoutSetPrototypeLocalService.getLayoutSetPrototype(layoutSetPrototypeId);
274            }
275    
276            /**
277            * @deprecated As of 6.2.0, replaced by {@link
278            #getLayoutSetPrototypeByUuidAndCompanyId(String, long)}
279            */
280            @Deprecated
281            @Override
282            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuid(
283                    java.lang.String uuid)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypeByUuid(uuid);
286            }
287    
288            /**
289            * Returns the layout set prototype with the matching UUID and company.
290            *
291            * @param uuid the layout set prototype's UUID
292            * @param companyId the primary key of the company
293            * @return the matching layout set prototype
294            * @throws PortalException if a matching layout set prototype could not be found
295            */
296            @Override
297            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuidAndCompanyId(
298                    java.lang.String uuid, long companyId)
299                    throws com.liferay.portal.kernel.exception.PortalException {
300                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypeByUuidAndCompanyId(uuid,
301                            companyId);
302            }
303    
304            @Override
305            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
306                    long companyId) {
307                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypes(companyId);
308            }
309    
310            /**
311            * Returns a range of all the layout set prototypes.
312            *
313            * <p>
314            * 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.LayoutSetPrototypeModelImpl}. 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.
315            * </p>
316            *
317            * @param start the lower bound of the range of layout set prototypes
318            * @param end the upper bound of the range of layout set prototypes (not inclusive)
319            * @return the range of layout set prototypes
320            */
321            @Override
322            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
323                    int start, int end) {
324                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypes(start, end);
325            }
326    
327            /**
328            * Returns the number of layout set prototypes.
329            *
330            * @return the number of layout set prototypes
331            */
332            @Override
333            public int getLayoutSetPrototypesCount() {
334                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypesCount();
335            }
336    
337            /**
338            * Returns the OSGi service identifier.
339            *
340            * @return the OSGi service identifier
341            */
342            @Override
343            public java.lang.String getOSGiServiceIdentifier() {
344                    return _layoutSetPrototypeLocalService.getOSGiServiceIdentifier();
345            }
346    
347            @Override
348            public com.liferay.portal.model.PersistedModel getPersistedModel(
349                    java.io.Serializable primaryKeyObj)
350                    throws com.liferay.portal.kernel.exception.PortalException {
351                    return _layoutSetPrototypeLocalService.getPersistedModel(primaryKeyObj);
352            }
353    
354            @Override
355            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
356                    long companyId, java.lang.Boolean active, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> obc) {
358                    return _layoutSetPrototypeLocalService.search(companyId, active, start,
359                            end, obc);
360            }
361    
362            @Override
363            public int searchCount(long companyId, java.lang.Boolean active) {
364                    return _layoutSetPrototypeLocalService.searchCount(companyId, active);
365            }
366    
367            /**
368            * Updates the layout set prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
369            *
370            * @param layoutSetPrototype the layout set prototype
371            * @return the layout set prototype that was updated
372            */
373            @Override
374            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
375                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
376                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototype);
377            }
378    
379            /**
380            * @deprecated As of 7.0.0, replaced by {@link
381            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
382            ServiceContext)}
383            */
384            @Deprecated
385            @Override
386            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
387                    long layoutSetPrototypeId,
388                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
389                    java.lang.String description, boolean active,
390                    boolean layoutsUpdateable,
391                    com.liferay.portal.service.ServiceContext serviceContext)
392                    throws com.liferay.portal.kernel.exception.PortalException {
393                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
394                            nameMap, description, active, layoutsUpdateable, serviceContext);
395            }
396    
397            @Override
398            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
399                    long layoutSetPrototypeId,
400                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
401                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
402                    boolean active, boolean layoutsUpdateable,
403                    com.liferay.portal.service.ServiceContext serviceContext)
404                    throws com.liferay.portal.kernel.exception.PortalException {
405                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
406                            nameMap, descriptionMap, active, layoutsUpdateable, serviceContext);
407            }
408    
409            @Override
410            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
411                    long layoutSetPrototypeId, java.lang.String settings)
412                    throws com.liferay.portal.kernel.exception.PortalException {
413                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
414                            settings);
415            }
416    
417            @Override
418            public LayoutSetPrototypeLocalService getWrappedService() {
419                    return _layoutSetPrototypeLocalService;
420            }
421    
422            @Override
423            public void setWrappedService(
424                    LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
425                    _layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
426            }
427    
428            private LayoutSetPrototypeLocalService _layoutSetPrototypeLocalService;
429    }