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