001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    com.liferay.portal.service.ServiceContext serviceContext)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    return _ddmStructureLocalService.copyStructure(userId, structureId,
313                            serviceContext);
314            }
315    
316            public void deleteStructure(
317                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _ddmStructureLocalService.deleteStructure(structure);
321            }
322    
323            public void deleteStructure(long structureId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _ddmStructureLocalService.deleteStructure(structureId);
327            }
328    
329            public void deleteStructure(long groupId, java.lang.String structureKey)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _ddmStructureLocalService.deleteStructure(groupId, structureKey);
333            }
334    
335            public void deleteStructures(long groupId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _ddmStructureLocalService.deleteStructures(groupId);
339            }
340    
341            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
342                    long structureId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _ddmStructureLocalService.fetchStructure(structureId);
345            }
346    
347            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
348                    long groupId, java.lang.String structureKey)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _ddmStructureLocalService.fetchStructure(groupId, structureKey);
351            }
352    
353            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
354                    long classNameId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _ddmStructureLocalService.getClassStructures(classNameId);
357            }
358    
359            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
360                    long classNameId, int start, int end)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _ddmStructureLocalService.getClassStructures(classNameId, start,
363                            end);
364            }
365    
366            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeStructures(
367                    long dlFileEntryTypeId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _ddmStructureLocalService.getDLFileEntryTypeStructures(dlFileEntryTypeId);
370            }
371    
372            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
373                    long structureId)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException {
376                    return _ddmStructureLocalService.getStructure(structureId);
377            }
378    
379            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
380                    long groupId, java.lang.String structureKey)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return _ddmStructureLocalService.getStructure(groupId, structureKey);
384            }
385    
386            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructure(
387                    long groupId, java.lang.String name, java.lang.String description)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _ddmStructureLocalService.getStructure(groupId, name, description);
390            }
391    
392            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries()
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _ddmStructureLocalService.getStructureEntries();
395            }
396    
397            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
398                    long groupId)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _ddmStructureLocalService.getStructureEntries(groupId);
401            }
402    
403            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
404                    long groupId, int start, int end)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _ddmStructureLocalService.getStructureEntries(groupId, start, end);
407            }
408    
409            public int getStructureEntriesCount(long groupId)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _ddmStructureLocalService.getStructureEntriesCount(groupId);
412            }
413    
414            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
415                    long companyId, long[] groupIds, long[] classNameIds,
416                    java.lang.String keywords, int start, int end,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _ddmStructureLocalService.search(companyId, groupIds,
420                            classNameIds, keywords, start, end, orderByComparator);
421            }
422    
423            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
424                    long companyId, long[] groupIds, long[] classNameIds,
425                    java.lang.String name, java.lang.String description,
426                    java.lang.String storageType, int type, boolean andOperator, int start,
427                    int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return _ddmStructureLocalService.search(companyId, groupIds,
431                            classNameIds, name, description, storageType, type, andOperator,
432                            start, end, orderByComparator);
433            }
434    
435            public int searchCount(long companyId, long[] groupIds,
436                    long[] classNameIds, java.lang.String keywords)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return _ddmStructureLocalService.searchCount(companyId, groupIds,
439                            classNameIds, keywords);
440            }
441    
442            public int searchCount(long companyId, long[] groupIds,
443                    long[] classNameIds, java.lang.String name,
444                    java.lang.String description, java.lang.String storageType, int type,
445                    boolean andOperator)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _ddmStructureLocalService.searchCount(companyId, groupIds,
448                            classNameIds, name, description, storageType, type, andOperator);
449            }
450    
451            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
452                    long structureId,
453                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
454                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
455                    java.lang.String xsd,
456                    com.liferay.portal.service.ServiceContext serviceContext)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return _ddmStructureLocalService.updateStructure(structureId, nameMap,
460                            descriptionMap, xsd, serviceContext);
461            }
462    
463            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
464                    long groupId, java.lang.String structureKey,
465                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
466                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
467                    java.lang.String xsd,
468                    com.liferay.portal.service.ServiceContext serviceContext)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return _ddmStructureLocalService.updateStructure(groupId, structureKey,
472                            nameMap, descriptionMap, xsd, serviceContext);
473            }
474    
475            /**
476             * @deprecated Renamed to {@link #getWrappedService}
477             */
478            public DDMStructureLocalService getWrappedDDMStructureLocalService() {
479                    return _ddmStructureLocalService;
480            }
481    
482            /**
483             * @deprecated Renamed to {@link #setWrappedService}
484             */
485            public void setWrappedDDMStructureLocalService(
486                    DDMStructureLocalService ddmStructureLocalService) {
487                    _ddmStructureLocalService = ddmStructureLocalService;
488            }
489    
490            public DDMStructureLocalService getWrappedService() {
491                    return _ddmStructureLocalService;
492            }
493    
494            public void setWrappedService(
495                    DDMStructureLocalService ddmStructureLocalService) {
496                    _ddmStructureLocalService = ddmStructureLocalService;
497            }
498    
499            private DDMStructureLocalService _ddmStructureLocalService;
500    }