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