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