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 LayoutPrototypeLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       LayoutPrototypeLocalService
024     * @generated
025     */
026    public class LayoutPrototypeLocalServiceWrapper
027            implements LayoutPrototypeLocalService {
028            public LayoutPrototypeLocalServiceWrapper(
029                    LayoutPrototypeLocalService layoutPrototypeLocalService) {
030                    _layoutPrototypeLocalService = layoutPrototypeLocalService;
031            }
032    
033            /**
034            * Adds the layout prototype to the database. Also notifies the appropriate model listeners.
035            *
036            * @param layoutPrototype the layout prototype
037            * @return the layout prototype that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
041                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _layoutPrototypeLocalService.addLayoutPrototype(layoutPrototype);
044            }
045    
046            /**
047            * Creates a new layout prototype with the primary key. Does not add the layout prototype to the database.
048            *
049            * @param layoutPrototypeId the primary key for the new layout prototype
050            * @return the new layout prototype
051            */
052            public com.liferay.portal.model.LayoutPrototype createLayoutPrototype(
053                    long layoutPrototypeId) {
054                    return _layoutPrototypeLocalService.createLayoutPrototype(layoutPrototypeId);
055            }
056    
057            /**
058            * Deletes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param layoutPrototypeId the primary key of the layout prototype
061            * @throws PortalException if a layout prototype with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteLayoutPrototype(long layoutPrototypeId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _layoutPrototypeLocalService.deleteLayoutPrototype(layoutPrototypeId);
068            }
069    
070            /**
071            * Deletes the layout prototype from the database. Also notifies the appropriate model listeners.
072            *
073            * @param layoutPrototype the layout prototype
074            * @throws PortalException
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteLayoutPrototype(
078                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    _layoutPrototypeLocalService.deleteLayoutPrototype(layoutPrototype);
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 _layoutPrototypeLocalService.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 _layoutPrototypeLocalService.dynamicQuery(dynamicQuery, start,
116                            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 _layoutPrototypeLocalService.dynamicQuery(dynamicQuery, start,
140                            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 _layoutPrototypeLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            /**
157            * Returns the layout prototype with the primary key.
158            *
159            * @param layoutPrototypeId the primary key of the layout prototype
160            * @return the layout prototype
161            * @throws PortalException if a layout prototype with the primary key could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
165                    long layoutPrototypeId)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _layoutPrototypeLocalService.getLayoutPrototype(layoutPrototypeId);
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 _layoutPrototypeLocalService.getPersistedModel(primaryKeyObj);
176            }
177    
178            /**
179            * Returns a range of all the layout 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 prototypes
186            * @param end the upper bound of the range of layout prototypes (not inclusive)
187            * @return the range of layout prototypes
188            * @throws SystemException if a system exception occurred
189            */
190            public java.util.List<com.liferay.portal.model.LayoutPrototype> getLayoutPrototypes(
191                    int start, int end)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _layoutPrototypeLocalService.getLayoutPrototypes(start, end);
194            }
195    
196            /**
197            * Returns the number of layout prototypes.
198            *
199            * @return the number of layout prototypes
200            * @throws SystemException if a system exception occurred
201            */
202            public int getLayoutPrototypesCount()
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _layoutPrototypeLocalService.getLayoutPrototypesCount();
205            }
206    
207            /**
208            * Updates the layout prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
209            *
210            * @param layoutPrototype the layout prototype
211            * @return the layout prototype that was updated
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
215                    com.liferay.portal.model.LayoutPrototype layoutPrototype)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _layoutPrototypeLocalService.updateLayoutPrototype(layoutPrototype);
218            }
219    
220            /**
221            * Updates the layout prototype in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param layoutPrototype the layout prototype
224            * @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.
225            * @return the layout prototype that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
229                    com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _layoutPrototypeLocalService.updateLayoutPrototype(layoutPrototype,
232                            merge);
233            }
234    
235            /**
236            * Returns the Spring bean ID for this bean.
237            *
238            * @return the Spring bean ID for this bean
239            */
240            public java.lang.String getBeanIdentifier() {
241                    return _layoutPrototypeLocalService.getBeanIdentifier();
242            }
243    
244            /**
245            * Sets the Spring bean ID for this bean.
246            *
247            * @param beanIdentifier the Spring bean ID for this bean
248            */
249            public void setBeanIdentifier(java.lang.String beanIdentifier) {
250                    _layoutPrototypeLocalService.setBeanIdentifier(beanIdentifier);
251            }
252    
253            public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
254                    long userId, long companyId,
255                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
256                    java.lang.String description, boolean active)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return _layoutPrototypeLocalService.addLayoutPrototype(userId,
260                            companyId, nameMap, description, active);
261            }
262    
263            public com.liferay.portal.model.LayoutPrototype getLayoutPrototypeByUuid(
264                    java.lang.String uuid)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _layoutPrototypeLocalService.getLayoutPrototypeByUuid(uuid);
268            }
269    
270            public java.util.List<com.liferay.portal.model.LayoutPrototype> search(
271                    long companyId, java.lang.Boolean active, int start, int end,
272                    com.liferay.portal.kernel.util.OrderByComparator obc)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return _layoutPrototypeLocalService.search(companyId, active, start,
275                            end, obc);
276            }
277    
278            public int searchCount(long companyId, java.lang.Boolean active)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return _layoutPrototypeLocalService.searchCount(companyId, active);
281            }
282    
283            public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
284                    long layoutPrototypeId,
285                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
286                    java.lang.String description, boolean active)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _layoutPrototypeLocalService.updateLayoutPrototype(layoutPrototypeId,
290                            nameMap, description, active);
291            }
292    
293            public LayoutPrototypeLocalService getWrappedLayoutPrototypeLocalService() {
294                    return _layoutPrototypeLocalService;
295            }
296    
297            public void setWrappedLayoutPrototypeLocalService(
298                    LayoutPrototypeLocalService layoutPrototypeLocalService) {
299                    _layoutPrototypeLocalService = layoutPrototypeLocalService;
300            }
301    
302            private LayoutPrototypeLocalService _layoutPrototypeLocalService;
303    }