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 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            * @throws SystemException if a system exception occurred
041            */
042            @Override
043            public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
044                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _layoutPrototypeLocalService.addLayoutPrototype(layoutPrototype);
047            }
048    
049            /**
050            * Creates a new layout prototype with the primary key. Does not add the layout prototype to the database.
051            *
052            * @param layoutPrototypeId the primary key for the new layout prototype
053            * @return the new layout prototype
054            */
055            @Override
056            public com.liferay.portal.model.LayoutPrototype createLayoutPrototype(
057                    long layoutPrototypeId) {
058                    return _layoutPrototypeLocalService.createLayoutPrototype(layoutPrototypeId);
059            }
060    
061            /**
062            * Deletes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param layoutPrototypeId the primary key of the layout prototype
065            * @return the layout prototype that was removed
066            * @throws PortalException if a layout 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.LayoutPrototype deleteLayoutPrototype(
071                    long layoutPrototypeId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _layoutPrototypeLocalService.deleteLayoutPrototype(layoutPrototypeId);
075            }
076    
077            /**
078            * Deletes the layout prototype from the database. Also notifies the appropriate model listeners.
079            *
080            * @param layoutPrototype the layout prototype
081            * @return the layout prototype that was removed
082            * @throws PortalException
083            * @throws SystemException if a system exception occurred
084            */
085            @Override
086            public com.liferay.portal.model.LayoutPrototype deleteLayoutPrototype(
087                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _layoutPrototypeLocalService.deleteLayoutPrototype(layoutPrototype);
091            }
092    
093            @Override
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095                    return _layoutPrototypeLocalService.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 _layoutPrototypeLocalService.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.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.
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 _layoutPrototypeLocalService.dynamicQuery(dynamicQuery, start,
132                            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.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.
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 _layoutPrototypeLocalService.dynamicQuery(dynamicQuery, start,
157                            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 _layoutPrototypeLocalService.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 _layoutPrototypeLocalService.dynamicQueryCount(dynamicQuery,
188                            projection);
189            }
190    
191            @Override
192            public com.liferay.portal.model.LayoutPrototype fetchLayoutPrototype(
193                    long layoutPrototypeId)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _layoutPrototypeLocalService.fetchLayoutPrototype(layoutPrototypeId);
196            }
197    
198            /**
199            * Returns the layout prototype with the matching UUID and company.
200            *
201            * @param uuid the layout prototype's UUID
202            * @param companyId the primary key of the company
203            * @return the matching layout prototype, or <code>null</code> if a matching layout prototype could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            @Override
207            public com.liferay.portal.model.LayoutPrototype fetchLayoutPrototypeByUuidAndCompanyId(
208                    java.lang.String uuid, long companyId)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(uuid,
211                            companyId);
212            }
213    
214            /**
215            * Returns the layout prototype with the primary key.
216            *
217            * @param layoutPrototypeId the primary key of the layout prototype
218            * @return the layout prototype
219            * @throws PortalException if a layout 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.LayoutPrototype getLayoutPrototype(
224                    long layoutPrototypeId)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException {
227                    return _layoutPrototypeLocalService.getLayoutPrototype(layoutPrototypeId);
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 _layoutPrototypeLocalService.getPersistedModel(primaryKeyObj);
236            }
237    
238            /**
239            * Returns the layout prototype with the matching UUID and company.
240            *
241            * @param uuid the layout prototype's UUID
242            * @param companyId the primary key of the company
243            * @return the matching layout prototype
244            * @throws PortalException if a matching layout prototype could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            @Override
248            public com.liferay.portal.model.LayoutPrototype getLayoutPrototypeByUuidAndCompanyId(
249                    java.lang.String uuid, long companyId)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    return _layoutPrototypeLocalService.getLayoutPrototypeByUuidAndCompanyId(uuid,
253                            companyId);
254            }
255    
256            /**
257            * Returns a range of all the layout 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.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.
261            * </p>
262            *
263            * @param start the lower bound of the range of layout prototypes
264            * @param end the upper bound of the range of layout prototypes (not inclusive)
265            * @return the range of layout prototypes
266            * @throws SystemException if a system exception occurred
267            */
268            @Override
269            public java.util.List<com.liferay.portal.model.LayoutPrototype> getLayoutPrototypes(
270                    int start, int end)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return _layoutPrototypeLocalService.getLayoutPrototypes(start, end);
273            }
274    
275            /**
276            * Returns the number of layout prototypes.
277            *
278            * @return the number of layout prototypes
279            * @throws SystemException if a system exception occurred
280            */
281            @Override
282            public int getLayoutPrototypesCount()
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _layoutPrototypeLocalService.getLayoutPrototypesCount();
285            }
286    
287            /**
288            * Updates the layout prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
289            *
290            * @param layoutPrototype the layout prototype
291            * @return the layout prototype that was updated
292            * @throws SystemException if a system exception occurred
293            */
294            @Override
295            public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
296                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    return _layoutPrototypeLocalService.updateLayoutPrototype(layoutPrototype);
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 _layoutPrototypeLocalService.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                    _layoutPrototypeLocalService.setBeanIdentifier(beanIdentifier);
319            }
320    
321            /**
322            * @deprecated As of 6.2.0, replaced by {@link #addLayoutPrototype(long,
323            long, Map, String, boolean, ServiceContext)}
324            */
325            @Override
326            public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
327                    long userId, long companyId,
328                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
329                    java.lang.String description, boolean active)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _layoutPrototypeLocalService.addLayoutPrototype(userId,
333                            companyId, nameMap, description, active);
334            }
335    
336            @Override
337            public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
338                    long userId, long companyId,
339                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
340                    java.lang.String description, boolean active,
341                    com.liferay.portal.service.ServiceContext serviceContext)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _layoutPrototypeLocalService.addLayoutPrototype(userId,
345                            companyId, nameMap, description, active, serviceContext);
346            }
347    
348            @Override
349            public void deleteNondefaultLayoutPrototypes(long companyId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _layoutPrototypeLocalService.deleteNondefaultLayoutPrototypes(companyId);
353            }
354    
355            /**
356            * @deprecated As of 6.2.0, replaced by {@link
357            #getLayoutPrototypeByUuidAndCompanyId(String, long)}
358            */
359            @Override
360            public com.liferay.portal.model.LayoutPrototype getLayoutPrototypeByUuid(
361                    java.lang.String uuid)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return _layoutPrototypeLocalService.getLayoutPrototypeByUuid(uuid);
365            }
366    
367            @Override
368            public java.util.List<com.liferay.portal.model.LayoutPrototype> search(
369                    long companyId, java.lang.Boolean active, int start, int end,
370                    com.liferay.portal.kernel.util.OrderByComparator obc)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _layoutPrototypeLocalService.search(companyId, active, start,
373                            end, obc);
374            }
375    
376            @Override
377            public int searchCount(long companyId, java.lang.Boolean active)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _layoutPrototypeLocalService.searchCount(companyId, active);
380            }
381    
382            /**
383            * @deprecated As of 6.2.0, replaced by {@link #updateLayoutPrototype(long,
384            Map, String, boolean, ServiceContext)}
385            */
386            @Override
387            public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
388                    long layoutPrototypeId,
389                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
390                    java.lang.String description, boolean active)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _layoutPrototypeLocalService.updateLayoutPrototype(layoutPrototypeId,
394                            nameMap, description, active);
395            }
396    
397            @Override
398            public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
399                    long layoutPrototypeId,
400                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
401                    java.lang.String description, boolean active,
402                    com.liferay.portal.service.ServiceContext serviceContext)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    return _layoutPrototypeLocalService.updateLayoutPrototype(layoutPrototypeId,
406                            nameMap, description, active, serviceContext);
407            }
408    
409            /**
410             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
411             */
412            public LayoutPrototypeLocalService getWrappedLayoutPrototypeLocalService() {
413                    return _layoutPrototypeLocalService;
414            }
415    
416            /**
417             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
418             */
419            public void setWrappedLayoutPrototypeLocalService(
420                    LayoutPrototypeLocalService layoutPrototypeLocalService) {
421                    _layoutPrototypeLocalService = layoutPrototypeLocalService;
422            }
423    
424            @Override
425            public LayoutPrototypeLocalService getWrappedService() {
426                    return _layoutPrototypeLocalService;
427            }
428    
429            @Override
430            public void setWrappedService(
431                    LayoutPrototypeLocalService layoutPrototypeLocalService) {
432                    _layoutPrototypeLocalService = layoutPrototypeLocalService;
433            }
434    
435            private LayoutPrototypeLocalService _layoutPrototypeLocalService;
436    }