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