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