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