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.
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.
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 with the UUID in the group.
197            *
198            * @param uuid the UUID of document library file entry type
199            * @param groupId the group id of the document library file entry type
200            * @return the document library file entry type
201            * @throws PortalException if a document library file entry type with the UUID in the group 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.
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            * 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.
255            *
256            * @param dlFileEntryType the document library file entry type
257            * @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.
258            * @return the document library file entry type that was updated
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
262                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
263                    boolean merge)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getService().updateDLFileEntryType(dlFileEntryType, merge);
266            }
267    
268            /**
269            * @throws SystemException if a system exception occurred
270            */
271            public static void addDLFolderDLFileEntryType(long folderId,
272                    long fileEntryTypeId)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    getService().addDLFolderDLFileEntryType(folderId, fileEntryTypeId);
275            }
276    
277            /**
278            * @throws SystemException if a system exception occurred
279            */
280            public static void addDLFolderDLFileEntryType(long folderId,
281                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    getService().addDLFolderDLFileEntryType(folderId, dlFileEntryType);
284            }
285    
286            /**
287            * @throws SystemException if a system exception occurred
288            */
289            public static void addDLFolderDLFileEntryTypes(long folderId,
290                    long[] fileEntryTypeIds)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    getService().addDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
293            }
294    
295            /**
296            * @throws SystemException if a system exception occurred
297            */
298            public static void addDLFolderDLFileEntryTypes(long folderId,
299                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    getService().addDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
302            }
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            public static void clearDLFolderDLFileEntryTypes(long folderId)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    getService().clearDLFolderDLFileEntryTypes(folderId);
310            }
311    
312            /**
313            * @throws SystemException if a system exception occurred
314            */
315            public static void deleteDLFolderDLFileEntryType(long folderId,
316                    long fileEntryTypeId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    getService().deleteDLFolderDLFileEntryType(folderId, fileEntryTypeId);
319            }
320    
321            /**
322            * @throws SystemException if a system exception occurred
323            */
324            public static void deleteDLFolderDLFileEntryType(long folderId,
325                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    getService().deleteDLFolderDLFileEntryType(folderId, dlFileEntryType);
328            }
329    
330            /**
331            * @throws SystemException if a system exception occurred
332            */
333            public static void deleteDLFolderDLFileEntryTypes(long folderId,
334                    long[] fileEntryTypeIds)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    getService().deleteDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
337            }
338    
339            /**
340            * @throws SystemException if a system exception occurred
341            */
342            public static void deleteDLFolderDLFileEntryTypes(long folderId,
343                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    getService().deleteDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
346            }
347    
348            /**
349            * @throws SystemException if a system exception occurred
350            */
351            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
352                    long folderId)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getService().getDLFolderDLFileEntryTypes(folderId);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
361                    long folderId, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
364            }
365    
366            /**
367            * @throws SystemException if a system exception occurred
368            */
369            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
370                    long folderId, int start, int end,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getService()
374                                       .getDLFolderDLFileEntryTypes(folderId, start, end,
375                            orderByComparator);
376            }
377    
378            /**
379            * @throws SystemException if a system exception occurred
380            */
381            public static int getDLFolderDLFileEntryTypesCount(long folderId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return getService().getDLFolderDLFileEntryTypesCount(folderId);
384            }
385    
386            /**
387            * @throws SystemException if a system exception occurred
388            */
389            public static boolean hasDLFolderDLFileEntryType(long folderId,
390                    long fileEntryTypeId)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return getService().hasDLFolderDLFileEntryType(folderId, fileEntryTypeId);
393            }
394    
395            /**
396            * @throws SystemException if a system exception occurred
397            */
398            public static boolean hasDLFolderDLFileEntryTypes(long folderId)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return getService().hasDLFolderDLFileEntryTypes(folderId);
401            }
402    
403            /**
404            * @throws SystemException if a system exception occurred
405            */
406            public static void setDLFolderDLFileEntryTypes(long folderId,
407                    long[] fileEntryTypeIds)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
410            }
411    
412            /**
413            * @throws SystemException if a system exception occurred
414            */
415            public static void addDDMStructureDLFileEntryType(long structureId,
416                    long fileEntryTypeId)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    getService().addDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
419            }
420    
421            /**
422            * @throws SystemException if a system exception occurred
423            */
424            public static void addDDMStructureDLFileEntryType(long structureId,
425                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    getService().addDDMStructureDLFileEntryType(structureId, dlFileEntryType);
428            }
429    
430            /**
431            * @throws SystemException if a system exception occurred
432            */
433            public static void addDDMStructureDLFileEntryTypes(long structureId,
434                    long[] fileEntryTypeIds)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    getService()
437                            .addDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
438            }
439    
440            /**
441            * @throws SystemException if a system exception occurred
442            */
443            public static void addDDMStructureDLFileEntryTypes(long structureId,
444                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
445                    throws com.liferay.portal.kernel.exception.SystemException {
446                    getService()
447                            .addDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
448            }
449    
450            /**
451            * @throws SystemException if a system exception occurred
452            */
453            public static void clearDDMStructureDLFileEntryTypes(long structureId)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    getService().clearDDMStructureDLFileEntryTypes(structureId);
456            }
457    
458            /**
459            * @throws SystemException if a system exception occurred
460            */
461            public static void deleteDDMStructureDLFileEntryType(long structureId,
462                    long fileEntryTypeId)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    getService()
465                            .deleteDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
466            }
467    
468            /**
469            * @throws SystemException if a system exception occurred
470            */
471            public static void deleteDDMStructureDLFileEntryType(long structureId,
472                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    getService()
475                            .deleteDDMStructureDLFileEntryType(structureId, dlFileEntryType);
476            }
477    
478            /**
479            * @throws SystemException if a system exception occurred
480            */
481            public static void deleteDDMStructureDLFileEntryTypes(long structureId,
482                    long[] fileEntryTypeIds)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    getService()
485                            .deleteDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
486            }
487    
488            /**
489            * @throws SystemException if a system exception occurred
490            */
491            public static void deleteDDMStructureDLFileEntryTypes(long structureId,
492                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    getService()
495                            .deleteDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
496            }
497    
498            /**
499            * @throws SystemException if a system exception occurred
500            */
501            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
502                    long structureId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return getService().getDDMStructureDLFileEntryTypes(structureId);
505            }
506    
507            /**
508            * @throws SystemException if a system exception occurred
509            */
510            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
511                    long structureId, int start, int end)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getService()
514                                       .getDDMStructureDLFileEntryTypes(structureId, start, end);
515            }
516    
517            /**
518            * @throws SystemException if a system exception occurred
519            */
520            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
521                    long structureId, int start, int end,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return getService()
525                                       .getDDMStructureDLFileEntryTypes(structureId, start, end,
526                            orderByComparator);
527            }
528    
529            /**
530            * @throws SystemException if a system exception occurred
531            */
532            public static int getDDMStructureDLFileEntryTypesCount(long structureId)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getService().getDDMStructureDLFileEntryTypesCount(structureId);
535            }
536    
537            /**
538            * @throws SystemException if a system exception occurred
539            */
540            public static boolean hasDDMStructureDLFileEntryType(long structureId,
541                    long fileEntryTypeId)
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    return getService()
544                                       .hasDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
545            }
546    
547            /**
548            * @throws SystemException if a system exception occurred
549            */
550            public static boolean hasDDMStructureDLFileEntryTypes(long structureId)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getService().hasDDMStructureDLFileEntryTypes(structureId);
553            }
554    
555            /**
556            * @throws SystemException if a system exception occurred
557            */
558            public static void setDDMStructureDLFileEntryTypes(long structureId,
559                    long[] fileEntryTypeIds)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    getService()
562                            .setDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
563            }
564    
565            /**
566            * Returns the Spring bean ID for this bean.
567            *
568            * @return the Spring bean ID for this bean
569            */
570            public static java.lang.String getBeanIdentifier() {
571                    return getService().getBeanIdentifier();
572            }
573    
574            /**
575            * Sets the Spring bean ID for this bean.
576            *
577            * @param beanIdentifier the Spring bean ID for this bean
578            */
579            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
580                    getService().setBeanIdentifier(beanIdentifier);
581            }
582    
583            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
584                    long userId, long groupId, java.lang.String name,
585                    java.lang.String description, long[] ddmStructureIds,
586                    com.liferay.portal.service.ServiceContext serviceContext)
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException {
589                    return getService()
590                                       .addFileEntryType(userId, groupId, name, description,
591                            ddmStructureIds, serviceContext);
592            }
593    
594            public static void cascadeFileEntryTypes(long userId,
595                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException {
598                    getService().cascadeFileEntryTypes(userId, dlFolder);
599            }
600    
601            public static void deleteFileEntryType(
602                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
603                    throws com.liferay.portal.kernel.exception.PortalException,
604                            com.liferay.portal.kernel.exception.SystemException {
605                    getService().deleteFileEntryType(dlFileEntryType);
606            }
607    
608            public static void deleteFileEntryType(long fileEntryTypeId)
609                    throws com.liferay.portal.kernel.exception.PortalException,
610                            com.liferay.portal.kernel.exception.SystemException {
611                    getService().deleteFileEntryType(fileEntryTypeId);
612            }
613    
614            public static void deleteFileEntryTypes(long groupId)
615                    throws com.liferay.portal.kernel.exception.PortalException,
616                            com.liferay.portal.kernel.exception.SystemException {
617                    getService().deleteFileEntryTypes(groupId);
618            }
619    
620            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
621                    long fileEntryTypeId)
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return getService().fetchFileEntryType(fileEntryTypeId);
624            }
625    
626            public static long getDefaultFileEntryTypeId(long folderId)
627                    throws com.liferay.portal.kernel.exception.PortalException,
628                            com.liferay.portal.kernel.exception.SystemException {
629                    return getService().getDefaultFileEntryTypeId(folderId);
630            }
631    
632            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
633                    long fileEntryTypeId)
634                    throws com.liferay.portal.kernel.exception.PortalException,
635                            com.liferay.portal.kernel.exception.SystemException {
636                    return getService().getFileEntryType(fileEntryTypeId);
637            }
638    
639            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
640                    long groupId, java.lang.String name)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException {
643                    return getService().getFileEntryType(groupId, name);
644            }
645    
646            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
647                    long[] groupIds)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    return getService().getFileEntryTypes(groupIds);
650            }
651    
652            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
653                    long[] groupIds, long folderId, boolean inherited)
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException {
656                    return getService()
657                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
658            }
659    
660            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
661                    long companyId, long[] groupIds, java.lang.String keywords,
662                    boolean includeBasicFileEntryType, int start, int end,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException {
665                    return getService()
666                                       .search(companyId, groupIds, keywords,
667                            includeBasicFileEntryType, start, end, orderByComparator);
668            }
669    
670            public static int searchCount(long companyId, long[] groupIds,
671                    java.lang.String keywords, boolean includeBasicFileEntryType)
672                    throws com.liferay.portal.kernel.exception.SystemException {
673                    return getService()
674                                       .searchCount(companyId, groupIds, keywords,
675                            includeBasicFileEntryType);
676            }
677    
678            public static void unsetFolderFileEntryTypes(long folderId)
679                    throws com.liferay.portal.kernel.exception.SystemException {
680                    getService().unsetFolderFileEntryTypes(folderId);
681            }
682    
683            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
684                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
685                    com.liferay.portal.service.ServiceContext serviceContext)
686                    throws com.liferay.portal.kernel.exception.PortalException,
687                            com.liferay.portal.kernel.exception.SystemException {
688                    return getService()
689                                       .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
690            }
691    
692            public static void updateFileEntryType(long userId, long fileEntryTypeId,
693                    java.lang.String name, java.lang.String description,
694                    long[] ddmStructureIds,
695                    com.liferay.portal.service.ServiceContext serviceContext)
696                    throws com.liferay.portal.kernel.exception.PortalException,
697                            com.liferay.portal.kernel.exception.SystemException {
698                    getService()
699                            .updateFileEntryType(userId, fileEntryTypeId, name, description,
700                            ddmStructureIds, serviceContext);
701            }
702    
703            public static void updateFolderFileEntryTypes(
704                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
705                    java.util.List<java.lang.Long> fileEntryTypeIds,
706                    long defaultFileEntryTypeId,
707                    com.liferay.portal.service.ServiceContext serviceContext)
708                    throws com.liferay.portal.kernel.exception.PortalException,
709                            com.liferay.portal.kernel.exception.SystemException {
710                    getService()
711                            .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
712                            defaultFileEntryTypeId, serviceContext);
713            }
714    
715            public static DLFileEntryTypeLocalService getService() {
716                    if (_service == null) {
717                            _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
718    
719                            ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
720                                    "_service");
721                    }
722    
723                    return _service;
724            }
725    
726            /**
727             * @deprecated
728             */
729            public void setService(DLFileEntryTypeLocalService service) {
730            }
731    
732            private static DLFileEntryTypeLocalService _service;
733    }