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            /**
258            * Returns the layout set prototype with the primary key.
259            *
260            * @param layoutSetPrototypeId the primary key of the layout set prototype
261            * @return the layout set prototype
262            * @throws PortalException if a layout set prototype with the primary key could not be found
263            */
264            @Override
265            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
266                    long layoutSetPrototypeId)
267                    throws com.liferay.portal.kernel.exception.PortalException {
268                    return _layoutSetPrototypeLocalService.getLayoutSetPrototype(layoutSetPrototypeId);
269            }
270    
271            /**
272            * @deprecated As of 6.2.0, replaced by {@link
273            #getLayoutSetPrototypeByUuidAndCompanyId(String, long)}
274            */
275            @Deprecated
276            @Override
277            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuid(
278                    java.lang.String uuid)
279                    throws com.liferay.portal.kernel.exception.PortalException {
280                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypeByUuid(uuid);
281            }
282    
283            /**
284            * Returns the layout set prototype with the matching UUID and company.
285            *
286            * @param uuid the layout set prototype's UUID
287            * @param companyId the primary key of the company
288            * @return the matching layout set prototype
289            * @throws PortalException if a matching layout set prototype could not be found
290            */
291            @Override
292            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuidAndCompanyId(
293                    java.lang.String uuid, long companyId)
294                    throws com.liferay.portal.kernel.exception.PortalException {
295                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypeByUuidAndCompanyId(uuid,
296                            companyId);
297            }
298    
299            @Override
300            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
301                    long companyId) {
302                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypes(companyId);
303            }
304    
305            /**
306            * Returns a range of all the layout set prototypes.
307            *
308            * <p>
309            * 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.
310            * </p>
311            *
312            * @param start the lower bound of the range of layout set prototypes
313            * @param end the upper bound of the range of layout set prototypes (not inclusive)
314            * @return the range of layout set prototypes
315            */
316            @Override
317            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
318                    int start, int end) {
319                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypes(start, end);
320            }
321    
322            /**
323            * Returns the number of layout set prototypes.
324            *
325            * @return the number of layout set prototypes
326            */
327            @Override
328            public int getLayoutSetPrototypesCount() {
329                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypesCount();
330            }
331    
332            /**
333            * Returns the OSGi service identifier.
334            *
335            * @return the OSGi service identifier
336            */
337            @Override
338            public java.lang.String getOSGiServiceIdentifier() {
339                    return _layoutSetPrototypeLocalService.getOSGiServiceIdentifier();
340            }
341    
342            @Override
343            public com.liferay.portal.model.PersistedModel getPersistedModel(
344                    java.io.Serializable primaryKeyObj)
345                    throws com.liferay.portal.kernel.exception.PortalException {
346                    return _layoutSetPrototypeLocalService.getPersistedModel(primaryKeyObj);
347            }
348    
349            @Override
350            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
351                    long companyId, java.lang.Boolean active, int start, int end,
352                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> obc) {
353                    return _layoutSetPrototypeLocalService.search(companyId, active, start,
354                            end, obc);
355            }
356    
357            @Override
358            public int searchCount(long companyId, java.lang.Boolean active) {
359                    return _layoutSetPrototypeLocalService.searchCount(companyId, active);
360            }
361    
362            /**
363            * Updates the layout set prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
364            *
365            * @param layoutSetPrototype the layout set prototype
366            * @return the layout set prototype that was updated
367            */
368            @Override
369            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
370                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
371                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototype);
372            }
373    
374            /**
375            * @deprecated As of 7.0.0, replaced by {@link
376            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
377            ServiceContext)}
378            */
379            @Deprecated
380            @Override
381            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
382                    long layoutSetPrototypeId,
383                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
384                    java.lang.String description, boolean active,
385                    boolean layoutsUpdateable,
386                    com.liferay.portal.service.ServiceContext serviceContext)
387                    throws com.liferay.portal.kernel.exception.PortalException {
388                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
389                            nameMap, description, active, layoutsUpdateable, serviceContext);
390            }
391    
392            @Override
393            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
394                    long layoutSetPrototypeId,
395                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
396                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
397                    boolean active, boolean layoutsUpdateable,
398                    com.liferay.portal.service.ServiceContext serviceContext)
399                    throws com.liferay.portal.kernel.exception.PortalException {
400                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
401                            nameMap, descriptionMap, active, layoutsUpdateable, serviceContext);
402            }
403    
404            @Override
405            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
406                    long layoutSetPrototypeId, java.lang.String settings)
407                    throws com.liferay.portal.kernel.exception.PortalException {
408                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
409                            settings);
410            }
411    
412            /**
413             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
414             */
415            @Deprecated
416            public LayoutSetPrototypeLocalService getWrappedLayoutSetPrototypeLocalService() {
417                    return _layoutSetPrototypeLocalService;
418            }
419    
420            /**
421             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
422             */
423            @Deprecated
424            public void setWrappedLayoutSetPrototypeLocalService(
425                    LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
426                    _layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
427            }
428    
429            @Override
430            public LayoutSetPrototypeLocalService getWrappedService() {
431                    return _layoutSetPrototypeLocalService;
432            }
433    
434            @Override
435            public void setWrappedService(
436                    LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
437                    _layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
438            }
439    
440            private LayoutSetPrototypeLocalService _layoutSetPrototypeLocalService;
441    }