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