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