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