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