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