001    /**
002     * Copyright (c) 2000-2011 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     * <p>
019     * This class is a wrapper for {@link LayoutSetPrototypeLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       LayoutSetPrototypeLocalService
024     * @generated
025     */
026    public class LayoutSetPrototypeLocalServiceWrapper
027            implements LayoutSetPrototypeLocalService {
028            public LayoutSetPrototypeLocalServiceWrapper(
029                    LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
030                    _layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
031            }
032    
033            /**
034            * Adds the layout set prototype to the database. Also notifies the appropriate model listeners.
035            *
036            * @param layoutSetPrototype the layout set prototype
037            * @return the layout set prototype that was added
038            * @throws SystemException if a system exception occurred
039            */
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            public com.liferay.portal.model.LayoutSetPrototype createLayoutSetPrototype(
053                    long layoutSetPrototypeId) {
054                    return _layoutSetPrototypeLocalService.createLayoutSetPrototype(layoutSetPrototypeId);
055            }
056    
057            /**
058            * Deletes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param layoutSetPrototypeId the primary key of the layout set prototype
061            * @throws PortalException if a layout set prototype with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteLayoutSetPrototype(long layoutSetPrototypeId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _layoutSetPrototypeLocalService.deleteLayoutSetPrototype(layoutSetPrototypeId);
068            }
069    
070            /**
071            * Deletes the layout set prototype from the database. Also notifies the appropriate model listeners.
072            *
073            * @param layoutSetPrototype the layout set prototype
074            * @throws PortalException
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteLayoutSetPrototype(
078                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    _layoutSetPrototypeLocalService.deleteLayoutSetPrototype(layoutSetPrototype);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _layoutSetPrototypeLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _layoutSetPrototypeLocalService.dynamicQuery(dynamicQuery,
116                            start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _layoutSetPrototypeLocalService.dynamicQuery(dynamicQuery,
140                            start, end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _layoutSetPrototypeLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            /**
157            * Returns the layout set prototype with the primary key.
158            *
159            * @param layoutSetPrototypeId the primary key of the layout set prototype
160            * @return the layout set prototype
161            * @throws PortalException if a layout set prototype with the primary key could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
165                    long layoutSetPrototypeId)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _layoutSetPrototypeLocalService.getLayoutSetPrototype(layoutSetPrototypeId);
169            }
170    
171            public com.liferay.portal.model.PersistedModel getPersistedModel(
172                    java.io.Serializable primaryKeyObj)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _layoutSetPrototypeLocalService.getPersistedModel(primaryKeyObj);
176            }
177    
178            /**
179            * Returns a range of all the layout set prototypes.
180            *
181            * <p>
182            * 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.
183            * </p>
184            *
185            * @param start the lower bound of the range of layout set prototypes
186            * @param end the upper bound of the range of layout set prototypes (not inclusive)
187            * @return the range of layout set prototypes
188            * @throws SystemException if a system exception occurred
189            */
190            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
191                    int start, int end)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypes(start, end);
194            }
195    
196            /**
197            * Returns the number of layout set prototypes.
198            *
199            * @return the number of layout set prototypes
200            * @throws SystemException if a system exception occurred
201            */
202            public int getLayoutSetPrototypesCount()
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypesCount();
205            }
206    
207            /**
208            * Updates the layout set prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
209            *
210            * @param layoutSetPrototype the layout set prototype
211            * @return the layout set prototype that was updated
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
215                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototype);
218            }
219    
220            /**
221            * Updates the layout set prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param layoutSetPrototype the layout set prototype
224            * @param merge whether to merge the layout set prototype with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
225            * @return the layout set prototype that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
229                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
230                    boolean merge)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototype,
233                            merge);
234            }
235    
236            /**
237            * Returns the Spring bean ID for this bean.
238            *
239            * @return the Spring bean ID for this bean
240            */
241            public java.lang.String getBeanIdentifier() {
242                    return _layoutSetPrototypeLocalService.getBeanIdentifier();
243            }
244    
245            /**
246            * Sets the Spring bean ID for this bean.
247            *
248            * @param beanIdentifier the Spring bean ID for this bean
249            */
250            public void setBeanIdentifier(java.lang.String beanIdentifier) {
251                    _layoutSetPrototypeLocalService.setBeanIdentifier(beanIdentifier);
252            }
253    
254            public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
255                    long userId, long companyId,
256                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
257                    java.lang.String description, boolean active,
258                    boolean allowModifications, boolean allowLayoutAddition,
259                    com.liferay.portal.service.ServiceContext serviceContext)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    return _layoutSetPrototypeLocalService.addLayoutSetPrototype(userId,
263                            companyId, nameMap, description, active, allowModifications,
264                            allowLayoutAddition, serviceContext);
265            }
266    
267            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuid(
268                    java.lang.String uuid)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _layoutSetPrototypeLocalService.getLayoutSetPrototypeByUuid(uuid);
272            }
273    
274            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
275                    long companyId, java.lang.Boolean active, int start, int end,
276                    com.liferay.portal.kernel.util.OrderByComparator obc)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return _layoutSetPrototypeLocalService.search(companyId, active, start,
279                            end, obc);
280            }
281    
282            public int searchCount(long companyId, java.lang.Boolean active)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _layoutSetPrototypeLocalService.searchCount(companyId, active);
285            }
286    
287            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
288                    long layoutSetPrototypeId,
289                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
290                    java.lang.String description, boolean active,
291                    boolean allowModifications, boolean allowLayoutAddition,
292                    com.liferay.portal.service.ServiceContext serviceContext)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
296                            nameMap, description, active, allowModifications,
297                            allowLayoutAddition, serviceContext);
298            }
299    
300            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
301                    long layoutSetPrototypeId, java.lang.String settings)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _layoutSetPrototypeLocalService.updateLayoutSetPrototype(layoutSetPrototypeId,
305                            settings);
306            }
307    
308            public LayoutSetPrototypeLocalService getWrappedLayoutSetPrototypeLocalService() {
309                    return _layoutSetPrototypeLocalService;
310            }
311    
312            public void setWrappedLayoutSetPrototypeLocalService(
313                    LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
314                    _layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
315            }
316    
317            private LayoutSetPrototypeLocalService _layoutSetPrototypeLocalService;
318    }