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