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