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