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 Spring bean ID for this bean.
302            *
303            * @return the Spring bean ID for this bean
304            */
305            public static java.lang.String getBeanIdentifier() {
306                    return getService().getBeanIdentifier();
307            }
308    
309            /**
310            * Returns the document library file entry type with the primary key.
311            *
312            * @param fileEntryTypeId the primary key of the document library file entry type
313            * @return the document library file entry type
314            * @throws PortalException if a document library file entry type with the primary key could not be found
315            */
316            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
317                    long fileEntryTypeId)
318                    throws com.liferay.portal.kernel.exception.PortalException {
319                    return getService().getDLFileEntryType(fileEntryTypeId);
320            }
321    
322            /**
323            * Returns the document library file entry type matching the UUID and group.
324            *
325            * @param uuid the document library file entry type's UUID
326            * @param groupId the primary key of the group
327            * @return the matching document library file entry type
328            * @throws PortalException if a matching document library file entry type could not be found
329            */
330            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
331                    java.lang.String uuid, long groupId)
332                    throws com.liferay.portal.kernel.exception.PortalException {
333                    return getService().getDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
334            }
335    
336            /**
337            * Returns a range of all the document library file entry types.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param start the lower bound of the range of document library file entry types
344            * @param end the upper bound of the range of document library file entry types (not inclusive)
345            * @return the range of document library file entry types
346            */
347            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
348                    int start, int end) {
349                    return getService().getDLFileEntryTypes(start, end);
350            }
351    
352            /**
353            * Returns all the document library file entry types matching the UUID and company.
354            *
355            * @param uuid the UUID of the document library file entry types
356            * @param companyId the primary key of the company
357            * @return the matching document library file entry types, or an empty list if no matches were found
358            */
359            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
360                    java.lang.String uuid, long companyId) {
361                    return getService()
362                                       .getDLFileEntryTypesByUuidAndCompanyId(uuid, companyId);
363            }
364    
365            /**
366            * Returns a range of document library file entry types matching the UUID and company.
367            *
368            * @param uuid the UUID of the document library file entry types
369            * @param companyId the primary key of the company
370            * @param start the lower bound of the range of document library file entry types
371            * @param end the upper bound of the range of document library file entry types (not inclusive)
372            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
373            * @return the range of matching document library file entry types, or an empty list if no matches were found
374            */
375            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
376                    java.lang.String uuid, long companyId, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
378                    return getService()
379                                       .getDLFileEntryTypesByUuidAndCompanyId(uuid, companyId,
380                            start, end, orderByComparator);
381            }
382    
383            /**
384            * Returns the number of document library file entry types.
385            *
386            * @return the number of document library file entry types
387            */
388            public static int getDLFileEntryTypesCount() {
389                    return getService().getDLFileEntryTypesCount();
390            }
391    
392            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
393                    long folderId) {
394                    return getService().getDLFolderDLFileEntryTypes(folderId);
395            }
396    
397            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
398                    long folderId, int start, int end) {
399                    return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
400            }
401    
402            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
403                    long folderId, int start, int end,
404                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
405                    return getService()
406                                       .getDLFolderDLFileEntryTypes(folderId, start, end,
407                            orderByComparator);
408            }
409    
410            public static int getDLFolderDLFileEntryTypesCount(long folderId) {
411                    return getService().getDLFolderDLFileEntryTypesCount(folderId);
412            }
413    
414            /**
415            * Returns the folderIds of the document library folders associated with the document library file entry type.
416            *
417            * @param fileEntryTypeId the fileEntryTypeId of the document library file entry type
418            * @return long[] the folderIds of document library folders associated with the document library file entry type
419            */
420            public static long[] getDLFolderPrimaryKeys(long fileEntryTypeId) {
421                    return getService().getDLFolderPrimaryKeys(fileEntryTypeId);
422            }
423    
424            public static long getDefaultFileEntryTypeId(long folderId)
425                    throws com.liferay.portal.kernel.exception.PortalException {
426                    return getService().getDefaultFileEntryTypeId(folderId);
427            }
428    
429            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
430                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
431                    return getService().getExportActionableDynamicQuery(portletDataContext);
432            }
433    
434            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
435                    long fileEntryTypeId)
436                    throws com.liferay.portal.kernel.exception.PortalException {
437                    return getService().getFileEntryType(fileEntryTypeId);
438            }
439    
440            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
441                    long groupId, java.lang.String fileEntryTypeKey)
442                    throws com.liferay.portal.kernel.exception.PortalException {
443                    return getService().getFileEntryType(groupId, fileEntryTypeKey);
444            }
445    
446            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
447                    long ddmStructureId)
448                    throws com.liferay.portal.kernel.exception.PortalException {
449                    return getService().getFileEntryTypes(ddmStructureId);
450            }
451    
452            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
453                    long[] groupIds) {
454                    return getService().getFileEntryTypes(groupIds);
455            }
456    
457            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
458                    long[] groupIds, long folderId, boolean inherited)
459                    throws com.liferay.portal.kernel.exception.PortalException {
460                    return getService()
461                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
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            /**
496            * Sets the Spring bean ID for this bean.
497            *
498            * @param beanIdentifier the Spring bean ID for this bean
499            */
500            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
501                    getService().setBeanIdentifier(beanIdentifier);
502            }
503    
504            public static void setDLFolderDLFileEntryTypes(long folderId,
505                    long[] fileEntryTypeIds) {
506                    getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
507            }
508    
509            public static void unsetFolderFileEntryTypes(long folderId) {
510                    getService().unsetFolderFileEntryTypes(folderId);
511            }
512    
513            public static void updateDDMStructureLinks(long fileEntryTypeId,
514                    java.util.Set<java.lang.Long> ddmStructureIds)
515                    throws com.liferay.portal.kernel.exception.PortalException {
516                    getService().updateDDMStructureLinks(fileEntryTypeId, ddmStructureIds);
517            }
518    
519            /**
520            * 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.
521            *
522            * @param dlFileEntryType the document library file entry type
523            * @return the document library file entry type that was updated
524            */
525            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
526                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
527                    return getService().updateDLFileEntryType(dlFileEntryType);
528            }
529    
530            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
531                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
532                    com.liferay.portal.service.ServiceContext serviceContext)
533                    throws com.liferay.portal.kernel.exception.PortalException {
534                    return getService()
535                                       .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
536            }
537    
538            public static void updateFileEntryType(long userId, long fileEntryTypeId,
539                    java.lang.String name, java.lang.String description,
540                    long[] ddmStructureIds,
541                    com.liferay.portal.service.ServiceContext serviceContext)
542                    throws com.liferay.portal.kernel.exception.PortalException {
543                    getService()
544                            .updateFileEntryType(userId, fileEntryTypeId, name, description,
545                            ddmStructureIds, serviceContext);
546            }
547    
548            public static void updateFileEntryType(long userId, long fileEntryTypeId,
549                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
550                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
551                    long[] ddmStructureIds,
552                    com.liferay.portal.service.ServiceContext serviceContext)
553                    throws com.liferay.portal.kernel.exception.PortalException {
554                    getService()
555                            .updateFileEntryType(userId, fileEntryTypeId, nameMap,
556                            descriptionMap, ddmStructureIds, serviceContext);
557            }
558    
559            public static void updateFolderFileEntryTypes(
560                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
561                    java.util.List<java.lang.Long> fileEntryTypeIds,
562                    long defaultFileEntryTypeId,
563                    com.liferay.portal.service.ServiceContext serviceContext) {
564                    getService()
565                            .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
566                            defaultFileEntryTypeId, serviceContext);
567            }
568    
569            public static DLFileEntryTypeLocalService getService() {
570                    if (_service == null) {
571                            _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
572    
573                            ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
574                                    "_service");
575                    }
576    
577                    return _service;
578            }
579    
580            /**
581             * @deprecated As of 6.2.0
582             */
583            @Deprecated
584            public void setService(DLFileEntryTypeLocalService service) {
585            }
586    
587            private static DLFileEntryTypeLocalService _service;
588    }