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 addDDMStructureLinks(long fileEntryTypeId,
044                    java.util.Set<java.lang.Long> ddmStructureIds) {
045                    getService().addDDMStructureLinks(fileEntryTypeId, ddmStructureIds);
046            }
047    
048            /**
049            * Adds the document library file entry type to the database. Also notifies the appropriate model listeners.
050            *
051            * @param dlFileEntryType the document library file entry type
052            * @return the document library file entry type that was added
053            */
054            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
055                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
056                    return getService().addDLFileEntryType(dlFileEntryType);
057            }
058    
059            public static void addDLFolderDLFileEntryType(long folderId,
060                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
061                    getService().addDLFolderDLFileEntryType(folderId, dlFileEntryType);
062            }
063    
064            public static void addDLFolderDLFileEntryType(long folderId,
065                    long fileEntryTypeId) {
066                    getService().addDLFolderDLFileEntryType(folderId, fileEntryTypeId);
067            }
068    
069            public static void addDLFolderDLFileEntryTypes(long folderId,
070                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes) {
071                    getService().addDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
072            }
073    
074            public static void addDLFolderDLFileEntryTypes(long folderId,
075                    long[] fileEntryTypeIds) {
076                    getService().addDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
077            }
078    
079            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
080                    long userId, long groupId, java.lang.String fileEntryTypeKey,
081                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
082                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
083                    long[] ddmStructureIds,
084                    com.liferay.portal.service.ServiceContext serviceContext)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    return getService()
087                                       .addFileEntryType(userId, groupId, fileEntryTypeKey,
088                            nameMap, descriptionMap, ddmStructureIds, serviceContext);
089            }
090    
091            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
092                    long userId, long groupId, java.lang.String name,
093                    java.lang.String description, long[] ddmStructureIds,
094                    com.liferay.portal.service.ServiceContext serviceContext)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    return getService()
097                                       .addFileEntryType(userId, groupId, name, description,
098                            ddmStructureIds, serviceContext);
099            }
100    
101            public static void cascadeFileEntryTypes(long userId,
102                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
103                    throws com.liferay.portal.kernel.exception.PortalException {
104                    getService().cascadeFileEntryTypes(userId, dlFolder);
105            }
106    
107            public static void clearDLFolderDLFileEntryTypes(long folderId) {
108                    getService().clearDLFolderDLFileEntryTypes(folderId);
109            }
110    
111            /**
112            * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.
113            *
114            * @param fileEntryTypeId the primary key for the new document library file entry type
115            * @return the new document library file entry type
116            */
117            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
118                    long fileEntryTypeId) {
119                    return getService().createDLFileEntryType(fileEntryTypeId);
120            }
121    
122            /**
123            * Deletes the document library file entry type from the database. Also notifies the appropriate model listeners.
124            *
125            * @param dlFileEntryType the document library file entry type
126            * @return the document library file entry type that was removed
127            */
128            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
129                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
130                    return getService().deleteDLFileEntryType(dlFileEntryType);
131            }
132    
133            /**
134            * Deletes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.
135            *
136            * @param fileEntryTypeId the primary key of the document library file entry type
137            * @return the document library file entry type that was removed
138            * @throws PortalException if a document library file entry type with the primary key could not be found
139            */
140            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
141                    long fileEntryTypeId)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return getService().deleteDLFileEntryType(fileEntryTypeId);
144            }
145    
146            public static void deleteDLFolderDLFileEntryType(long folderId,
147                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
148                    getService().deleteDLFolderDLFileEntryType(folderId, dlFileEntryType);
149            }
150    
151            public static void deleteDLFolderDLFileEntryType(long folderId,
152                    long fileEntryTypeId) {
153                    getService().deleteDLFolderDLFileEntryType(folderId, fileEntryTypeId);
154            }
155    
156            public static void deleteDLFolderDLFileEntryTypes(long folderId,
157                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes) {
158                    getService().deleteDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
159            }
160    
161            public static void deleteDLFolderDLFileEntryTypes(long folderId,
162                    long[] fileEntryTypeIds) {
163                    getService().deleteDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
164            }
165    
166            public static void deleteFileEntryType(
167                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
168                    throws com.liferay.portal.kernel.exception.PortalException {
169                    getService().deleteFileEntryType(dlFileEntryType);
170            }
171    
172            public static void deleteFileEntryType(long fileEntryTypeId)
173                    throws com.liferay.portal.kernel.exception.PortalException {
174                    getService().deleteFileEntryType(fileEntryTypeId);
175            }
176    
177            public static void deleteFileEntryTypes(long groupId)
178                    throws com.liferay.portal.kernel.exception.PortalException {
179                    getService().deleteFileEntryTypes(groupId);
180            }
181    
182            /**
183            * @throws PortalException
184            */
185            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
186                    com.liferay.portal.model.PersistedModel persistedModel)
187                    throws com.liferay.portal.kernel.exception.PortalException {
188                    return getService().deletePersistedModel(persistedModel);
189            }
190    
191            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
192                    return getService().dynamicQuery();
193            }
194    
195            /**
196            * Performs a dynamic query on the database and returns the matching rows.
197            *
198            * @param dynamicQuery the dynamic query
199            * @return the matching rows
200            */
201            public static <T> java.util.List<T> dynamicQuery(
202                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
203                    return getService().dynamicQuery(dynamicQuery);
204            }
205    
206            /**
207            * Performs a dynamic query on the database and returns a range of the matching rows.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param dynamicQuery the dynamic query
214            * @param start the lower bound of the range of model instances
215            * @param end the upper bound of the range of model instances (not inclusive)
216            * @return the range of matching rows
217            */
218            public static <T> java.util.List<T> dynamicQuery(
219                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
220                    int end) {
221                    return getService().dynamicQuery(dynamicQuery, start, end);
222            }
223    
224            /**
225            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param dynamicQuery the dynamic query
232            * @param start the lower bound of the range of model instances
233            * @param end the upper bound of the range of model instances (not inclusive)
234            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
235            * @return the ordered range of matching rows
236            */
237            public static <T> java.util.List<T> dynamicQuery(
238                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
239                    int end,
240                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
241                    return getService()
242                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
243            }
244    
245            /**
246            * Returns the number of rows matching the dynamic query.
247            *
248            * @param dynamicQuery the dynamic query
249            * @return the number of rows matching the dynamic query
250            */
251            public static long dynamicQueryCount(
252                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
253                    return getService().dynamicQueryCount(dynamicQuery);
254            }
255    
256            /**
257            * Returns the number of rows matching the dynamic query.
258            *
259            * @param dynamicQuery the dynamic query
260            * @param projection the projection to apply to the query
261            * @return the number of rows matching the dynamic query
262            */
263            public static long dynamicQueryCount(
264                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
265                    com.liferay.portal.kernel.dao.orm.Projection projection) {
266                    return getService().dynamicQueryCount(dynamicQuery, projection);
267            }
268    
269            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
270                    long fileEntryTypeId) {
271                    return getService().fetchDLFileEntryType(fileEntryTypeId);
272            }
273    
274            /**
275            * Returns the document library file entry type matching the UUID and group.
276            *
277            * @param uuid the document library file entry type's UUID
278            * @param groupId the primary key of the group
279            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
280            */
281            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
282                    java.lang.String uuid, long groupId) {
283                    return getService().fetchDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
284            }
285    
286            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
287                    long fileEntryTypeId) {
288                    return getService().fetchFileEntryType(fileEntryTypeId);
289            }
290    
291            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
292                    long groupId, java.lang.String fileEntryTypeKey) {
293                    return getService().fetchFileEntryType(groupId, fileEntryTypeKey);
294            }
295    
296            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
297                    return getService().getActionableDynamicQuery();
298            }
299    
300            /**
301            * Returns the document library file entry type with the primary key.
302            *
303            * @param fileEntryTypeId the primary key of the document library file entry type
304            * @return the document library file entry type
305            * @throws PortalException if a document library file entry type with the primary key could not be found
306            */
307            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
308                    long fileEntryTypeId)
309                    throws com.liferay.portal.kernel.exception.PortalException {
310                    return getService().getDLFileEntryType(fileEntryTypeId);
311            }
312    
313            /**
314            * Returns the document library file entry type matching the UUID and group.
315            *
316            * @param uuid the document library file entry type's UUID
317            * @param groupId the primary key of the group
318            * @return the matching document library file entry type
319            * @throws PortalException if a matching document library file entry type could not be found
320            */
321            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
322                    java.lang.String uuid, long groupId)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return getService().getDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
325            }
326    
327            /**
328            * Returns a range of all the document library file entry types.
329            *
330            * <p>
331            * 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.
332            * </p>
333            *
334            * @param start the lower bound of the range of document library file entry types
335            * @param end the upper bound of the range of document library file entry types (not inclusive)
336            * @return the range of document library file entry types
337            */
338            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
339                    int start, int end) {
340                    return getService().getDLFileEntryTypes(start, end);
341            }
342    
343            /**
344            * Returns all the document library file entry types matching the UUID and company.
345            *
346            * @param uuid the UUID of the document library file entry types
347            * @param companyId the primary key of the company
348            * @return the matching document library file entry types, or an empty list if no matches were found
349            */
350            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
351                    java.lang.String uuid, long companyId) {
352                    return getService()
353                                       .getDLFileEntryTypesByUuidAndCompanyId(uuid, companyId);
354            }
355    
356            /**
357            * Returns a range of document library file entry types matching the UUID and company.
358            *
359            * @param uuid the UUID of the document library file entry types
360            * @param companyId the primary key of the company
361            * @param start the lower bound of the range of document library file entry types
362            * @param end the upper bound of the range of document library file entry types (not inclusive)
363            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
364            * @return the range of matching document library file entry types, or an empty list if no matches were found
365            */
366            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
367                    java.lang.String uuid, long companyId, int start, int end,
368                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
369                    return getService()
370                                       .getDLFileEntryTypesByUuidAndCompanyId(uuid, companyId,
371                            start, end, orderByComparator);
372            }
373    
374            /**
375            * Returns the number of document library file entry types.
376            *
377            * @return the number of document library file entry types
378            */
379            public static int getDLFileEntryTypesCount() {
380                    return getService().getDLFileEntryTypesCount();
381            }
382    
383            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
384                    long folderId) {
385                    return getService().getDLFolderDLFileEntryTypes(folderId);
386            }
387    
388            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
389                    long folderId, int start, int end) {
390                    return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
391            }
392    
393            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
394                    long folderId, int start, int end,
395                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
396                    return getService()
397                                       .getDLFolderDLFileEntryTypes(folderId, start, end,
398                            orderByComparator);
399            }
400    
401            public static int getDLFolderDLFileEntryTypesCount(long folderId) {
402                    return getService().getDLFolderDLFileEntryTypesCount(folderId);
403            }
404    
405            /**
406            * Returns the folderIds of the document library folders associated with the document library file entry type.
407            *
408            * @param fileEntryTypeId the fileEntryTypeId of the document library file entry type
409            * @return long[] the folderIds of document library folders associated with the document library file entry type
410            */
411            public static long[] getDLFolderPrimaryKeys(long fileEntryTypeId) {
412                    return getService().getDLFolderPrimaryKeys(fileEntryTypeId);
413            }
414    
415            public static long getDefaultFileEntryTypeId(long folderId)
416                    throws com.liferay.portal.kernel.exception.PortalException {
417                    return getService().getDefaultFileEntryTypeId(folderId);
418            }
419    
420            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
421                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
422                    return getService().getExportActionableDynamicQuery(portletDataContext);
423            }
424    
425            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
426                    long fileEntryTypeId)
427                    throws com.liferay.portal.kernel.exception.PortalException {
428                    return getService().getFileEntryType(fileEntryTypeId);
429            }
430    
431            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
432                    long groupId, java.lang.String fileEntryTypeKey)
433                    throws com.liferay.portal.kernel.exception.PortalException {
434                    return getService().getFileEntryType(groupId, fileEntryTypeKey);
435            }
436    
437            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
438                    long ddmStructureId)
439                    throws com.liferay.portal.kernel.exception.PortalException {
440                    return getService().getFileEntryTypes(ddmStructureId);
441            }
442    
443            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
444                    long[] groupIds) {
445                    return getService().getFileEntryTypes(groupIds);
446            }
447    
448            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
449                    long[] groupIds, long folderId, boolean inherited)
450                    throws com.liferay.portal.kernel.exception.PortalException {
451                    return getService()
452                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
453            }
454    
455            /**
456            * Returns the OSGi service identifier.
457            *
458            * @return the OSGi service identifier
459            */
460            public static java.lang.String getOSGiServiceIdentifier() {
461                    return getService().getOSGiServiceIdentifier();
462            }
463    
464            public static com.liferay.portal.model.PersistedModel getPersistedModel(
465                    java.io.Serializable primaryKeyObj)
466                    throws com.liferay.portal.kernel.exception.PortalException {
467                    return getService().getPersistedModel(primaryKeyObj);
468            }
469    
470            public static boolean hasDLFolderDLFileEntryType(long folderId,
471                    long fileEntryTypeId) {
472                    return getService().hasDLFolderDLFileEntryType(folderId, fileEntryTypeId);
473            }
474    
475            public static boolean hasDLFolderDLFileEntryTypes(long folderId) {
476                    return getService().hasDLFolderDLFileEntryTypes(folderId);
477            }
478    
479            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
480                    long companyId, long[] groupIds, java.lang.String keywords,
481                    boolean includeBasicFileEntryType, int start, int end,
482                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
483                    return getService()
484                                       .search(companyId, groupIds, keywords,
485                            includeBasicFileEntryType, start, end, orderByComparator);
486            }
487    
488            public static int searchCount(long companyId, long[] groupIds,
489                    java.lang.String keywords, boolean includeBasicFileEntryType) {
490                    return getService()
491                                       .searchCount(companyId, groupIds, keywords,
492                            includeBasicFileEntryType);
493            }
494    
495            public static void setDLFolderDLFileEntryTypes(long folderId,
496                    long[] fileEntryTypeIds) {
497                    getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
498            }
499    
500            public static void unsetFolderFileEntryTypes(long folderId) {
501                    getService().unsetFolderFileEntryTypes(folderId);
502            }
503    
504            public static void updateDDMStructureLinks(long fileEntryTypeId,
505                    java.util.Set<java.lang.Long> ddmStructureIds)
506                    throws com.liferay.portal.kernel.exception.PortalException {
507                    getService().updateDDMStructureLinks(fileEntryTypeId, ddmStructureIds);
508            }
509    
510            /**
511            * 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.
512            *
513            * @param dlFileEntryType the document library file entry type
514            * @return the document library file entry type that was updated
515            */
516            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
517                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
518                    return getService().updateDLFileEntryType(dlFileEntryType);
519            }
520    
521            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
522                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
523                    com.liferay.portal.service.ServiceContext serviceContext)
524                    throws com.liferay.portal.kernel.exception.PortalException {
525                    return getService()
526                                       .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
527            }
528    
529            public static void updateFileEntryType(long userId, long fileEntryTypeId,
530                    java.lang.String name, java.lang.String description,
531                    long[] ddmStructureIds,
532                    com.liferay.portal.service.ServiceContext serviceContext)
533                    throws com.liferay.portal.kernel.exception.PortalException {
534                    getService()
535                            .updateFileEntryType(userId, fileEntryTypeId, name, description,
536                            ddmStructureIds, serviceContext);
537            }
538    
539            public static void updateFileEntryType(long userId, long fileEntryTypeId,
540                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
541                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
542                    long[] ddmStructureIds,
543                    com.liferay.portal.service.ServiceContext serviceContext)
544                    throws com.liferay.portal.kernel.exception.PortalException {
545                    getService()
546                            .updateFileEntryType(userId, fileEntryTypeId, nameMap,
547                            descriptionMap, ddmStructureIds, serviceContext);
548            }
549    
550            public static void updateFolderFileEntryTypes(
551                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
552                    java.util.List<java.lang.Long> fileEntryTypeIds,
553                    long defaultFileEntryTypeId,
554                    com.liferay.portal.service.ServiceContext serviceContext) {
555                    getService()
556                            .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
557                            defaultFileEntryTypeId, serviceContext);
558            }
559    
560            public static DLFileEntryTypeLocalService getService() {
561                    if (_service == null) {
562                            _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
563    
564                            ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
565                                    "_service");
566                    }
567    
568                    return _service;
569            }
570    
571            /**
572             * @deprecated As of 6.2.0
573             */
574            @Deprecated
575            public void setService(DLFileEntryTypeLocalService service) {
576            }
577    
578            private static DLFileEntryTypeLocalService _service;
579    }