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.portlet.dynamicdatamapping.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DDMStructureLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMStructureLocalService
026     * @generated
027     */
028    public class DDMStructureLocalServiceWrapper implements DDMStructureLocalService,
029            ServiceWrapper<DDMStructureLocalService> {
030            public DDMStructureLocalServiceWrapper(
031                    DDMStructureLocalService ddmStructureLocalService) {
032                    _ddmStructureLocalService = ddmStructureLocalService;
033            }
034    
035            /**
036            * Adds the d d m structure to the database. Also notifies the appropriate model listeners.
037            *
038            * @param ddmStructure the d d m structure
039            * @return the d d m structure that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addDDMStructure(
043                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _ddmStructureLocalService.addDDMStructure(ddmStructure);
046            }
047    
048            /**
049            * Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.
050            *
051            * @param structureId the primary key for the new d d m structure
052            * @return the new d d m structure
053            */
054            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure createDDMStructure(
055                    long structureId) {
056                    return _ddmStructureLocalService.createDDMStructure(structureId);
057            }
058    
059            /**
060            * Deletes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param structureId the primary key of the d d m structure
063            * @throws PortalException if a d d m structure with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteDDMStructure(long structureId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _ddmStructureLocalService.deleteDDMStructure(structureId);
070            }
071    
072            /**
073            * Deletes the d d m structure from the database. Also notifies the appropriate model listeners.
074            *
075            * @param ddmStructure the d d m structure
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteDDMStructure(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _ddmStructureLocalService.deleteDDMStructure(ddmStructure);
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 _ddmStructureLocalService.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 _ddmStructureLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _ddmStructureLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _ddmStructureLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchDDMStructure(
156                    long structureId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _ddmStructureLocalService.fetchDDMStructure(structureId);
159            }
160    
161            /**
162            * Returns the d d m structure with the primary key.
163            *
164            * @param structureId the primary key of the d d m structure
165            * @return the d d m structure
166            * @throws PortalException if a d d m structure with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure(
170                    long structureId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _ddmStructureLocalService.getDDMStructure(structureId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ddmStructureLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the d d m structure with the UUID in the group.
185            *
186            * @param uuid the UUID of d d m structure
187            * @param groupId the group id of the d d m structure
188            * @return the d d m structure
189            * @throws PortalException if a d d m structure with the UUID in the group could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructureByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return _ddmStructureLocalService.getDDMStructureByUuidAndGroupId(uuid,
197                            groupId);
198            }
199    
200            /**
201            * Returns a range of all the d d m structures.
202            *
203            * <p>
204            * 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.
205            * </p>
206            *
207            * @param start the lower bound of the range of d d m structures
208            * @param end the upper bound of the range of d d m structures (not inclusive)
209            * @return the range of d d m structures
210            * @throws SystemException if a system exception occurred
211            */
212            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
213                    int start, int end)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _ddmStructureLocalService.getDDMStructures(start, end);
216            }
217    
218            /**
219            * Returns the number of d d m structures.
220            *
221            * @return the number of d d m structures
222            * @throws SystemException if a system exception occurred
223            */
224            public int getDDMStructuresCount()
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return _ddmStructureLocalService.getDDMStructuresCount();
227            }
228    
229            /**
230            * Updates the d d m structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
231            *
232            * @param ddmStructure the d d m structure
233            * @return the d d m structure that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure(
237                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _ddmStructureLocalService.updateDDMStructure(ddmStructure);
240            }
241    
242            /**
243            * Updates the d d m structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
244            *
245            * @param ddmStructure the d d m structure
246            * @param merge whether to merge the d d m structure 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.
247            * @return the d d m structure that was updated
248            * @throws SystemException if a system exception occurred
249            */
250            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure(
251                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure,
252                    boolean merge)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _ddmStructureLocalService.updateDDMStructure(ddmStructure, merge);
255            }
256    
257            /**
258            * Returns the Spring bean ID for this bean.
259            *
260            * @return the Spring bean ID for this bean
261            */
262            public java.lang.String getBeanIdentifier() {
263                    return _ddmStructureLocalService.getBeanIdentifier();
264            }
265    
266            /**
267            * Sets the Spring bean ID for this bean.
268            *
269            * @param beanIdentifier the Spring bean ID for this bean
270            */
271            public void setBeanIdentifier(java.lang.String beanIdentifier) {
272                    _ddmStructureLocalService.setBeanIdentifier(beanIdentifier);
273            }
274    
275            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
276                    long userId, long groupId, long classNameId,
277                    java.lang.String structureKey,
278                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
279                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
280                    java.lang.String xsd, java.lang.String storageType, int type,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    return _ddmStructureLocalService.addStructure(userId, groupId,
285                            classNameId, structureKey, nameMap, descriptionMap, xsd,
286                            storageType, type, serviceContext);
287            }
288    
289            public void addStructureResources(
290                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
291                    boolean addGroupPermissions, boolean addGuestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _ddmStructureLocalService.addStructureResources(structure,
295                            addGroupPermissions, addGuestPermissions);
296            }
297    
298            public void addStructureResources(
299                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
300                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _ddmStructureLocalService.addStructureResources(structure,
304                            groupPermissions, guestPermissions);
305            }
306    
307            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
308                    long userId, long structureId,
309                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
310                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
311                    com.liferay.portal.service.ServiceContext serviceContext)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _ddmStructureLocalService.copyStructure(userId, structureId,
315                            nameMap, descriptionMap, serviceContext);
316            }
317    
318            public void deleteStructure(
319                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _ddmStructureLocalService.deleteStructure(structure);
323            }
324    
325            public void deleteStructure(long structureId)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _ddmStructureLocalService.deleteStructure(structureId);
329            }
330    
331            public void deleteStructure(long groupId, java.lang.String structureKey)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    _ddmStructureLocalService.deleteStructure(groupId, structureKey);
335            }
336    
337            public void deleteStructures(long groupId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    _ddmStructureLocalService.deleteStructures(groupId);
341            }
342    
343            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
344                    long structureId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _ddmStructureLocalService.fetchStructure(structureId);
347            }
348    
349            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
350                    long groupId, java.lang.String structureKey)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _ddmStructureLocalService.fetchStructure(groupId, structureKey);
353            }
354    
355            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
356                    long classNameId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _ddmStructureLocalService.getClassStructures(classNameId);
359            }
360    
361            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
362                    long classNameId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _ddmStructureLocalService.getClassStructures(classNameId, start,
365                            end);
366            }
367    
368            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
369                    long classNameId,
370                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _ddmStructureLocalService.getClassStructures(classNameId,
373                            orderByComparator);
374            }
375    
376            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeStructures(
377                    long dlFileEntryTypeId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _ddmStructureLocalService.getDLFileEntryTypeStructures(dlFileEntryTypeId);
380            }
381    
382            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
383                    long structureId)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return _ddmStructureLocalService.getStructure(structureId);
387            }
388    
389            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
390                    long groupId, java.lang.String structureKey)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _ddmStructureLocalService.getStructure(groupId, structureKey);
394            }
395    
396            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructure(
397                    long groupId, java.lang.String name, java.lang.String description)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _ddmStructureLocalService.getStructure(groupId, name, description);
400            }
401    
402            /**
403            * @deprecated {@link #getStructures}
404            */
405            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries()
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return _ddmStructureLocalService.getStructureEntries();
408            }
409    
410            /**
411            * @deprecated {@link #getStructures(long)}
412            */
413            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
414                    long groupId)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _ddmStructureLocalService.getStructureEntries(groupId);
417            }
418    
419            /**
420            * @deprecated {@link #getStructures(long, int, int)}
421            */
422            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
423                    long groupId, int start, int end)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _ddmStructureLocalService.getStructureEntries(groupId, start, end);
426            }
427    
428            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures()
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return _ddmStructureLocalService.getStructures();
431            }
432    
433            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
434                    long groupId)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _ddmStructureLocalService.getStructures(groupId);
437            }
438    
439            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
440                    long groupId, int start, int end)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _ddmStructureLocalService.getStructures(groupId, start, end);
443            }
444    
445            public int getStructuresCount(long groupId)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _ddmStructureLocalService.getStructuresCount(groupId);
448            }
449    
450            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
451                    long companyId, long[] groupIds, long[] classNameIds,
452                    java.lang.String keywords, int start, int end,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return _ddmStructureLocalService.search(companyId, groupIds,
456                            classNameIds, keywords, start, end, orderByComparator);
457            }
458    
459            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
460                    long companyId, long[] groupIds, long[] classNameIds,
461                    java.lang.String name, java.lang.String description,
462                    java.lang.String storageType, int type, boolean andOperator, int start,
463                    int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return _ddmStructureLocalService.search(companyId, groupIds,
467                            classNameIds, name, description, storageType, type, andOperator,
468                            start, end, orderByComparator);
469            }
470    
471            public int searchCount(long companyId, long[] groupIds,
472                    long[] classNameIds, java.lang.String keywords)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return _ddmStructureLocalService.searchCount(companyId, groupIds,
475                            classNameIds, keywords);
476            }
477    
478            public int searchCount(long companyId, long[] groupIds,
479                    long[] classNameIds, java.lang.String name,
480                    java.lang.String description, java.lang.String storageType, int type,
481                    boolean andOperator)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return _ddmStructureLocalService.searchCount(companyId, groupIds,
484                            classNameIds, name, description, storageType, type, andOperator);
485            }
486    
487            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
488                    long structureId,
489                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
490                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
491                    java.lang.String xsd,
492                    com.liferay.portal.service.ServiceContext serviceContext)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException {
495                    return _ddmStructureLocalService.updateStructure(structureId, nameMap,
496                            descriptionMap, xsd, serviceContext);
497            }
498    
499            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
500                    long groupId, java.lang.String structureKey,
501                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
502                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
503                    java.lang.String xsd,
504                    com.liferay.portal.service.ServiceContext serviceContext)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    return _ddmStructureLocalService.updateStructure(groupId, structureKey,
508                            nameMap, descriptionMap, xsd, serviceContext);
509            }
510    
511            /**
512             * @deprecated Renamed to {@link #getWrappedService}
513             */
514            public DDMStructureLocalService getWrappedDDMStructureLocalService() {
515                    return _ddmStructureLocalService;
516            }
517    
518            /**
519             * @deprecated Renamed to {@link #setWrappedService}
520             */
521            public void setWrappedDDMStructureLocalService(
522                    DDMStructureLocalService ddmStructureLocalService) {
523                    _ddmStructureLocalService = ddmStructureLocalService;
524            }
525    
526            public DDMStructureLocalService getWrappedService() {
527                    return _ddmStructureLocalService;
528            }
529    
530            public void setWrappedService(
531                    DDMStructureLocalService ddmStructureLocalService) {
532                    _ddmStructureLocalService = ddmStructureLocalService;
533            }
534    
535            private DDMStructureLocalService _ddmStructureLocalService;
536    }