001    /**
002     * Copyright (c) 2000-2012 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.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.
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.
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.
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            * 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.
253            *
254            * @param dlFileEntryType the document library file entry type
255            * @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.
256            * @return the document library file entry type that was updated
257            * @throws SystemException if a system exception occurred
258            */
259            public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
260                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
261                    boolean merge)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _dlFileEntryTypeLocalService.updateDLFileEntryType(dlFileEntryType,
264                            merge);
265            }
266    
267            /**
268            * Returns the Spring bean ID for this bean.
269            *
270            * @return the Spring bean ID for this bean
271            */
272            public java.lang.String getBeanIdentifier() {
273                    return _dlFileEntryTypeLocalService.getBeanIdentifier();
274            }
275    
276            /**
277            * Sets the Spring bean ID for this bean.
278            *
279            * @param beanIdentifier the Spring bean ID for this bean
280            */
281            public void setBeanIdentifier(java.lang.String beanIdentifier) {
282                    _dlFileEntryTypeLocalService.setBeanIdentifier(beanIdentifier);
283            }
284    
285            public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
286                    long userId, long groupId, java.lang.String name,
287                    java.lang.String description, long[] ddmStructureIds,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _dlFileEntryTypeLocalService.addFileEntryType(userId, groupId,
292                            name, description, ddmStructureIds, serviceContext);
293            }
294    
295            public void cascadeFileEntryTypes(long userId,
296                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _dlFileEntryTypeLocalService.cascadeFileEntryTypes(userId, dlFolder);
300            }
301    
302            public void deleteFileEntryType(
303                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _dlFileEntryTypeLocalService.deleteFileEntryType(dlFileEntryType);
307            }
308    
309            public void deleteFileEntryType(long fileEntryTypeId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _dlFileEntryTypeLocalService.deleteFileEntryType(fileEntryTypeId);
313            }
314    
315            public void deleteFileEntryTypes(long groupId)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _dlFileEntryTypeLocalService.deleteFileEntryTypes(groupId);
319            }
320    
321            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
322                    long fileEntryTypeId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _dlFileEntryTypeLocalService.fetchFileEntryType(fileEntryTypeId);
325            }
326    
327            public long getDefaultFileEntryTypeId(long folderId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return _dlFileEntryTypeLocalService.getDefaultFileEntryTypeId(folderId);
331            }
332    
333            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
334                    long fileEntryTypeId)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    return _dlFileEntryTypeLocalService.getFileEntryType(fileEntryTypeId);
338            }
339    
340            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
341                    long groupId, java.lang.String name)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _dlFileEntryTypeLocalService.getFileEntryType(groupId, name);
345            }
346    
347            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
348                    long[] groupIds)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _dlFileEntryTypeLocalService.getFileEntryTypes(groupIds);
351            }
352    
353            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
354                    long[] groupIds, long folderId, boolean inherited)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _dlFileEntryTypeLocalService.getFolderFileEntryTypes(groupIds,
358                            folderId, inherited);
359            }
360    
361            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
362                    long companyId, long[] groupIds, java.lang.String keywords,
363                    boolean includeBasicFileEntryType, int start, int end,
364                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _dlFileEntryTypeLocalService.search(companyId, groupIds,
367                            keywords, includeBasicFileEntryType, start, end, orderByComparator);
368            }
369    
370            public int searchCount(long companyId, long[] groupIds,
371                    java.lang.String keywords, boolean includeBasicFileEntryType)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _dlFileEntryTypeLocalService.searchCount(companyId, groupIds,
374                            keywords, includeBasicFileEntryType);
375            }
376    
377            public void unsetFolderFileEntryTypes(long folderId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    _dlFileEntryTypeLocalService.unsetFolderFileEntryTypes(folderId);
380            }
381    
382            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
383                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
384                    com.liferay.portal.service.ServiceContext serviceContext)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _dlFileEntryTypeLocalService.updateFileEntryFileEntryType(dlFileEntry,
388                            serviceContext);
389            }
390    
391            public void updateFileEntryType(long userId, long fileEntryTypeId,
392                    java.lang.String name, java.lang.String description,
393                    long[] ddmStructureIds,
394                    com.liferay.portal.service.ServiceContext serviceContext)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    _dlFileEntryTypeLocalService.updateFileEntryType(userId,
398                            fileEntryTypeId, name, description, ddmStructureIds, serviceContext);
399            }
400    
401            public void updateFolderFileEntryTypes(
402                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
403                    java.util.List<java.lang.Long> fileEntryTypeIds,
404                    long defaultFileEntryTypeId,
405                    com.liferay.portal.service.ServiceContext serviceContext)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    _dlFileEntryTypeLocalService.updateFolderFileEntryTypes(dlFolder,
409                            fileEntryTypeIds, defaultFileEntryTypeId, serviceContext);
410            }
411    
412            /**
413             * @deprecated Renamed to {@link #getWrappedService}
414             */
415            public DLFileEntryTypeLocalService getWrappedDLFileEntryTypeLocalService() {
416                    return _dlFileEntryTypeLocalService;
417            }
418    
419            /**
420             * @deprecated Renamed to {@link #setWrappedService}
421             */
422            public void setWrappedDLFileEntryTypeLocalService(
423                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
424                    _dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
425            }
426    
427            public DLFileEntryTypeLocalService getWrappedService() {
428                    return _dlFileEntryTypeLocalService;
429            }
430    
431            public void setWrappedService(
432                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
433                    _dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
434            }
435    
436            private DLFileEntryTypeLocalService _dlFileEntryTypeLocalService;
437    }