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