001    /**
002     * Copyright (c) 2000-2013 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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the document library file entry type local service. This utility wraps {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
022     *
023     * <p>
024     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see DLFileEntryTypeLocalService
029     * @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeLocalServiceBaseImpl
030     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl
031     * @generated
032     */
033    public class DLFileEntryTypeLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Adds the document library file entry type to the database. Also notifies the appropriate model listeners.
042            *
043            * @param dlFileEntryType the document library file entry type
044            * @return the document library file entry type that was added
045            * @throws SystemException if a system exception occurred
046            */
047            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
048                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getService().addDLFileEntryType(dlFileEntryType);
051            }
052    
053            /**
054            * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.
055            *
056            * @param fileEntryTypeId the primary key for the new document library file entry type
057            * @return the new document library file entry type
058            */
059            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
060                    long fileEntryTypeId) {
061                    return getService().createDLFileEntryType(fileEntryTypeId);
062            }
063    
064            /**
065            * Deletes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param fileEntryTypeId the primary key of the document library file entry type
068            * @return the document library file entry type that was removed
069            * @throws PortalException if a document library file entry type with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
073                    long fileEntryTypeId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().deleteDLFileEntryType(fileEntryTypeId);
077            }
078    
079            /**
080            * Deletes the document library file entry type from the database. Also notifies the appropriate model listeners.
081            *
082            * @param dlFileEntryType the document library file entry type
083            * @return the document library file entry type that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
087                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getService().deleteDLFileEntryType(dlFileEntryType);
090            }
091    
092            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return getService().dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public static java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * 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.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @SuppressWarnings("rawtypes")
124            public static java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService().dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public static java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            public static long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getService().dynamicQueryCount(dynamicQuery);
165            }
166    
167            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
168                    long fileEntryTypeId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().fetchDLFileEntryType(fileEntryTypeId);
171            }
172    
173            /**
174            * Returns the document library file entry type with the primary key.
175            *
176            * @param fileEntryTypeId the primary key of the document library file entry type
177            * @return the document library file entry type
178            * @throws PortalException if a document library file entry type with the primary key could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
182                    long fileEntryTypeId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getDLFileEntryType(fileEntryTypeId);
186            }
187    
188            public static com.liferay.portal.model.PersistedModel getPersistedModel(
189                    java.io.Serializable primaryKeyObj)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getService().getPersistedModel(primaryKeyObj);
193            }
194    
195            /**
196            * Returns the document library file entry type matching the UUID and group.
197            *
198            * @param uuid the document library file entry type's UUID
199            * @param groupId the primary key of the group
200            * @return the matching document library file entry type
201            * @throws PortalException if a matching document library file entry type could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
205                    java.lang.String uuid, long groupId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
209            }
210    
211            /**
212            * Returns a range of all the document library file entry types.
213            *
214            * <p>
215            * 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.
216            * </p>
217            *
218            * @param start the lower bound of the range of document library file entry types
219            * @param end the upper bound of the range of document library file entry types (not inclusive)
220            * @return the range of document library file entry types
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
224                    int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getDLFileEntryTypes(start, end);
227            }
228    
229            /**
230            * Returns the number of document library file entry types.
231            *
232            * @return the number of document library file entry types
233            * @throws SystemException if a system exception occurred
234            */
235            public static int getDLFileEntryTypesCount()
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getDLFileEntryTypesCount();
238            }
239    
240            /**
241            * 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.
242            *
243            * @param dlFileEntryType the document library file entry type
244            * @return the document library file entry type that was updated
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
248                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService().updateDLFileEntryType(dlFileEntryType);
251            }
252    
253            /**
254            * @throws SystemException if a system exception occurred
255            */
256            public static void addDLFolderDLFileEntryType(long folderId,
257                    long fileEntryTypeId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getService().addDLFolderDLFileEntryType(folderId, fileEntryTypeId);
260            }
261    
262            /**
263            * @throws SystemException if a system exception occurred
264            */
265            public static void addDLFolderDLFileEntryType(long folderId,
266                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    getService().addDLFolderDLFileEntryType(folderId, dlFileEntryType);
269            }
270    
271            /**
272            * @throws SystemException if a system exception occurred
273            */
274            public static void addDLFolderDLFileEntryTypes(long folderId,
275                    long[] fileEntryTypeIds)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    getService().addDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
278            }
279    
280            /**
281            * @throws SystemException if a system exception occurred
282            */
283            public static void addDLFolderDLFileEntryTypes(long folderId,
284                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    getService().addDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public static void clearDLFolderDLFileEntryTypes(long folderId)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    getService().clearDLFolderDLFileEntryTypes(folderId);
295            }
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public static void deleteDLFolderDLFileEntryType(long folderId,
301                    long fileEntryTypeId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    getService().deleteDLFolderDLFileEntryType(folderId, fileEntryTypeId);
304            }
305    
306            /**
307            * @throws SystemException if a system exception occurred
308            */
309            public static void deleteDLFolderDLFileEntryType(long folderId,
310                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    getService().deleteDLFolderDLFileEntryType(folderId, dlFileEntryType);
313            }
314    
315            /**
316            * @throws SystemException if a system exception occurred
317            */
318            public static void deleteDLFolderDLFileEntryTypes(long folderId,
319                    long[] fileEntryTypeIds)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    getService().deleteDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
322            }
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public static void deleteDLFolderDLFileEntryTypes(long folderId,
328                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    getService().deleteDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
331            }
332    
333            /**
334            * @throws SystemException if a system exception occurred
335            */
336            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
337                    long folderId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getService().getDLFolderDLFileEntryTypes(folderId);
340            }
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
346                    long folderId, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
349            }
350    
351            /**
352            * @throws SystemException if a system exception occurred
353            */
354            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
355                    long folderId, int start, int end,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getService()
359                                       .getDLFolderDLFileEntryTypes(folderId, start, end,
360                            orderByComparator);
361            }
362    
363            /**
364            * @throws SystemException if a system exception occurred
365            */
366            public static int getDLFolderDLFileEntryTypesCount(long folderId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getService().getDLFolderDLFileEntryTypesCount(folderId);
369            }
370    
371            /**
372            * @throws SystemException if a system exception occurred
373            */
374            public static boolean hasDLFolderDLFileEntryType(long folderId,
375                    long fileEntryTypeId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return getService().hasDLFolderDLFileEntryType(folderId, fileEntryTypeId);
378            }
379    
380            /**
381            * @throws SystemException if a system exception occurred
382            */
383            public static boolean hasDLFolderDLFileEntryTypes(long folderId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getService().hasDLFolderDLFileEntryTypes(folderId);
386            }
387    
388            /**
389            * @throws SystemException if a system exception occurred
390            */
391            public static void setDLFolderDLFileEntryTypes(long folderId,
392                    long[] fileEntryTypeIds)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
395            }
396    
397            /**
398            * @throws SystemException if a system exception occurred
399            */
400            public static void addDDMStructureDLFileEntryType(long structureId,
401                    long fileEntryTypeId)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    getService().addDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
404            }
405    
406            /**
407            * @throws SystemException if a system exception occurred
408            */
409            public static void addDDMStructureDLFileEntryType(long structureId,
410                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    getService().addDDMStructureDLFileEntryType(structureId, dlFileEntryType);
413            }
414    
415            /**
416            * @throws SystemException if a system exception occurred
417            */
418            public static void addDDMStructureDLFileEntryTypes(long structureId,
419                    long[] fileEntryTypeIds)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    getService()
422                            .addDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
423            }
424    
425            /**
426            * @throws SystemException if a system exception occurred
427            */
428            public static void addDDMStructureDLFileEntryTypes(long structureId,
429                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    getService()
432                            .addDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
433            }
434    
435            /**
436            * @throws SystemException if a system exception occurred
437            */
438            public static void clearDDMStructureDLFileEntryTypes(long structureId)
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    getService().clearDDMStructureDLFileEntryTypes(structureId);
441            }
442    
443            /**
444            * @throws SystemException if a system exception occurred
445            */
446            public static void deleteDDMStructureDLFileEntryType(long structureId,
447                    long fileEntryTypeId)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    getService()
450                            .deleteDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
451            }
452    
453            /**
454            * @throws SystemException if a system exception occurred
455            */
456            public static void deleteDDMStructureDLFileEntryType(long structureId,
457                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    getService()
460                            .deleteDDMStructureDLFileEntryType(structureId, dlFileEntryType);
461            }
462    
463            /**
464            * @throws SystemException if a system exception occurred
465            */
466            public static void deleteDDMStructureDLFileEntryTypes(long structureId,
467                    long[] fileEntryTypeIds)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    getService()
470                            .deleteDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
471            }
472    
473            /**
474            * @throws SystemException if a system exception occurred
475            */
476            public static void deleteDDMStructureDLFileEntryTypes(long structureId,
477                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    getService()
480                            .deleteDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
481            }
482    
483            /**
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
487                    long structureId)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getService().getDDMStructureDLFileEntryTypes(structureId);
490            }
491    
492            /**
493            * @throws SystemException if a system exception occurred
494            */
495            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
496                    long structureId, int start, int end)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    return getService()
499                                       .getDDMStructureDLFileEntryTypes(structureId, start, end);
500            }
501    
502            /**
503            * @throws SystemException if a system exception occurred
504            */
505            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
506                    long structureId, int start, int end,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getService()
510                                       .getDDMStructureDLFileEntryTypes(structureId, start, end,
511                            orderByComparator);
512            }
513    
514            /**
515            * @throws SystemException if a system exception occurred
516            */
517            public static int getDDMStructureDLFileEntryTypesCount(long structureId)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return getService().getDDMStructureDLFileEntryTypesCount(structureId);
520            }
521    
522            /**
523            * @throws SystemException if a system exception occurred
524            */
525            public static boolean hasDDMStructureDLFileEntryType(long structureId,
526                    long fileEntryTypeId)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getService()
529                                       .hasDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
530            }
531    
532            /**
533            * @throws SystemException if a system exception occurred
534            */
535            public static boolean hasDDMStructureDLFileEntryTypes(long structureId)
536                    throws com.liferay.portal.kernel.exception.SystemException {
537                    return getService().hasDDMStructureDLFileEntryTypes(structureId);
538            }
539    
540            /**
541            * @throws SystemException if a system exception occurred
542            */
543            public static void setDDMStructureDLFileEntryTypes(long structureId,
544                    long[] fileEntryTypeIds)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    getService()
547                            .setDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
548            }
549    
550            /**
551            * Returns the Spring bean ID for this bean.
552            *
553            * @return the Spring bean ID for this bean
554            */
555            public static java.lang.String getBeanIdentifier() {
556                    return getService().getBeanIdentifier();
557            }
558    
559            /**
560            * Sets the Spring bean ID for this bean.
561            *
562            * @param beanIdentifier the Spring bean ID for this bean
563            */
564            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
565                    getService().setBeanIdentifier(beanIdentifier);
566            }
567    
568            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
569                    long userId, long groupId, java.lang.String name,
570                    java.lang.String description, long[] ddmStructureIds,
571                    com.liferay.portal.service.ServiceContext serviceContext)
572                    throws com.liferay.portal.kernel.exception.PortalException,
573                            com.liferay.portal.kernel.exception.SystemException {
574                    return getService()
575                                       .addFileEntryType(userId, groupId, name, description,
576                            ddmStructureIds, serviceContext);
577            }
578    
579            public static void cascadeFileEntryTypes(long userId,
580                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
581                    throws com.liferay.portal.kernel.exception.PortalException,
582                            com.liferay.portal.kernel.exception.SystemException {
583                    getService().cascadeFileEntryTypes(userId, dlFolder);
584            }
585    
586            public static void deleteFileEntryType(
587                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
588                    throws com.liferay.portal.kernel.exception.PortalException,
589                            com.liferay.portal.kernel.exception.SystemException {
590                    getService().deleteFileEntryType(dlFileEntryType);
591            }
592    
593            public static void deleteFileEntryType(long fileEntryTypeId)
594                    throws com.liferay.portal.kernel.exception.PortalException,
595                            com.liferay.portal.kernel.exception.SystemException {
596                    getService().deleteFileEntryType(fileEntryTypeId);
597            }
598    
599            public static void deleteFileEntryTypes(long groupId)
600                    throws com.liferay.portal.kernel.exception.PortalException,
601                            com.liferay.portal.kernel.exception.SystemException {
602                    getService().deleteFileEntryTypes(groupId);
603            }
604    
605            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
606                    long fileEntryTypeId)
607                    throws com.liferay.portal.kernel.exception.SystemException {
608                    return getService().fetchFileEntryType(fileEntryTypeId);
609            }
610    
611            public static long getDefaultFileEntryTypeId(long folderId)
612                    throws com.liferay.portal.kernel.exception.PortalException,
613                            com.liferay.portal.kernel.exception.SystemException {
614                    return getService().getDefaultFileEntryTypeId(folderId);
615            }
616    
617            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
618                    long fileEntryTypeId)
619                    throws com.liferay.portal.kernel.exception.PortalException,
620                            com.liferay.portal.kernel.exception.SystemException {
621                    return getService().getFileEntryType(fileEntryTypeId);
622            }
623    
624            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
625                    long groupId, java.lang.String name)
626                    throws com.liferay.portal.kernel.exception.PortalException,
627                            com.liferay.portal.kernel.exception.SystemException {
628                    return getService().getFileEntryType(groupId, name);
629            }
630    
631            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
632                    long[] groupIds)
633                    throws com.liferay.portal.kernel.exception.SystemException {
634                    return getService().getFileEntryTypes(groupIds);
635            }
636    
637            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
638                    long[] groupIds, long folderId, boolean inherited)
639                    throws com.liferay.portal.kernel.exception.PortalException,
640                            com.liferay.portal.kernel.exception.SystemException {
641                    return getService()
642                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
643            }
644    
645            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
646                    long companyId, long[] groupIds, java.lang.String keywords,
647                    boolean includeBasicFileEntryType, int start, int end,
648                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return getService()
651                                       .search(companyId, groupIds, keywords,
652                            includeBasicFileEntryType, start, end, orderByComparator);
653            }
654    
655            public static int searchCount(long companyId, long[] groupIds,
656                    java.lang.String keywords, boolean includeBasicFileEntryType)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    return getService()
659                                       .searchCount(companyId, groupIds, keywords,
660                            includeBasicFileEntryType);
661            }
662    
663            public static void unsetFolderFileEntryTypes(long folderId)
664                    throws com.liferay.portal.kernel.exception.SystemException {
665                    getService().unsetFolderFileEntryTypes(folderId);
666            }
667    
668            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
669                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
670                    com.liferay.portal.service.ServiceContext serviceContext)
671                    throws com.liferay.portal.kernel.exception.PortalException,
672                            com.liferay.portal.kernel.exception.SystemException {
673                    return getService()
674                                       .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
675            }
676    
677            public static void updateFileEntryType(long userId, long fileEntryTypeId,
678                    java.lang.String name, java.lang.String description,
679                    long[] ddmStructureIds,
680                    com.liferay.portal.service.ServiceContext serviceContext)
681                    throws com.liferay.portal.kernel.exception.PortalException,
682                            com.liferay.portal.kernel.exception.SystemException {
683                    getService()
684                            .updateFileEntryType(userId, fileEntryTypeId, name, description,
685                            ddmStructureIds, serviceContext);
686            }
687    
688            public static void updateFolderFileEntryTypes(
689                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
690                    java.util.List<java.lang.Long> fileEntryTypeIds,
691                    long defaultFileEntryTypeId,
692                    com.liferay.portal.service.ServiceContext serviceContext)
693                    throws com.liferay.portal.kernel.exception.PortalException,
694                            com.liferay.portal.kernel.exception.SystemException {
695                    getService()
696                            .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
697                            defaultFileEntryTypeId, serviceContext);
698            }
699    
700            public static DLFileEntryTypeLocalService getService() {
701                    if (_service == null) {
702                            _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
703    
704                            ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
705                                    "_service");
706                    }
707    
708                    return _service;
709            }
710    
711            /**
712             * @deprecated As of 6.2.0
713             */
714            public void setService(DLFileEntryTypeLocalService service) {
715            }
716    
717            private static DLFileEntryTypeLocalService _service;
718    }