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