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