001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service;
016    
017    import 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    
044            /**
045            * Adds the document library file entry type to the database. Also notifies the appropriate model listeners.
046            *
047            * @param dlFileEntryType the document library file entry type
048            * @return the document library file entry type that was added
049            * @throws SystemException if a system exception occurred
050            */
051            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
052                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().addDLFileEntryType(dlFileEntryType);
055            }
056    
057            /**
058            * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.
059            *
060            * @param fileEntryTypeId the primary key for the new document library file entry type
061            * @return the new document library file entry type
062            */
063            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
064                    long fileEntryTypeId) {
065                    return getService().createDLFileEntryType(fileEntryTypeId);
066            }
067    
068            /**
069            * Deletes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param fileEntryTypeId the primary key of the document library file entry type
072            * @return the document library file entry type that was removed
073            * @throws PortalException if a document library file entry type with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
077                    long fileEntryTypeId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().deleteDLFileEntryType(fileEntryTypeId);
081            }
082    
083            /**
084            * Deletes the document library file entry type from the database. Also notifies the appropriate model listeners.
085            *
086            * @param dlFileEntryType the document library file entry type
087            * @return the document library file entry type that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
091                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService().deleteDLFileEntryType(dlFileEntryType);
094            }
095    
096            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097                    return getService().dynamicQuery();
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public static java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public static java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @SuppressWarnings("rawtypes")
149            public static java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            public static long dynamicQueryCount(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().dynamicQueryCount(dynamicQuery);
169            }
170    
171            /**
172            * Returns the number of rows that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @param projection the projection to apply to the query
176            * @return the number of rows that match the dynamic query
177            * @throws SystemException if a system exception occurred
178            */
179            public static long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().dynamicQueryCount(dynamicQuery, projection);
184            }
185    
186            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
187                    long fileEntryTypeId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getService().fetchDLFileEntryType(fileEntryTypeId);
190            }
191    
192            /**
193            * Returns the document library file entry type with the matching UUID and company.
194            *
195            * @param uuid the document library file entry type's UUID
196            * @param companyId the primary key of the company
197            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndCompanyId(
201                    java.lang.String uuid, long companyId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getService()
204                                       .fetchDLFileEntryTypeByUuidAndCompanyId(uuid, companyId);
205            }
206    
207            /**
208            * Returns the document library file entry type matching the UUID and group.
209            *
210            * @param uuid the document library file entry type's UUID
211            * @param groupId the primary key of the group
212            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
213            * @throws SystemException if a system exception occurred
214            */
215            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
216                    java.lang.String uuid, long groupId)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getService().fetchDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
219            }
220    
221            /**
222            * Returns the document library file entry type with the primary key.
223            *
224            * @param fileEntryTypeId the primary key of the document library file entry type
225            * @return the document library file entry type
226            * @throws PortalException if a document library file entry type with the primary key could not be found
227            * @throws SystemException if a system exception occurred
228            */
229            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
230                    long fileEntryTypeId)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException {
233                    return getService().getDLFileEntryType(fileEntryTypeId);
234            }
235    
236            public static com.liferay.portal.model.PersistedModel getPersistedModel(
237                    java.io.Serializable primaryKeyObj)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException {
240                    return getService().getPersistedModel(primaryKeyObj);
241            }
242    
243            /**
244            * Returns the document library file entry type with the matching UUID and company.
245            *
246            * @param uuid the document library file entry type's UUID
247            * @param companyId the primary key of the company
248            * @return the matching document library file entry type
249            * @throws PortalException if a matching document library file entry type could not be found
250            * @throws SystemException if a system exception occurred
251            */
252            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndCompanyId(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    return getService().getDLFileEntryTypeByUuidAndCompanyId(uuid, companyId);
257            }
258    
259            /**
260            * Returns the document library file entry type matching the UUID and group.
261            *
262            * @param uuid the document library file entry type's UUID
263            * @param groupId the primary key of the group
264            * @return the matching document library file entry type
265            * @throws PortalException if a matching document library file entry type could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
269                    java.lang.String uuid, long groupId)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return getService().getDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
273            }
274    
275            /**
276            * Returns a range of all the document library file entry types.
277            *
278            * <p>
279            * 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.
280            * </p>
281            *
282            * @param start the lower bound of the range of document library file entry types
283            * @param end the upper bound of the range of document library file entry types (not inclusive)
284            * @return the range of document library file entry types
285            * @throws SystemException if a system exception occurred
286            */
287            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
288                    int start, int end)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    return getService().getDLFileEntryTypes(start, end);
291            }
292    
293            /**
294            * Returns the number of document library file entry types.
295            *
296            * @return the number of document library file entry types
297            * @throws SystemException if a system exception occurred
298            */
299            public static int getDLFileEntryTypesCount()
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getService().getDLFileEntryTypesCount();
302            }
303    
304            /**
305            * 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.
306            *
307            * @param dlFileEntryType the document library file entry type
308            * @return the document library file entry type that was updated
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
312                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return getService().updateDLFileEntryType(dlFileEntryType);
315            }
316    
317            /**
318            * @throws SystemException if a system exception occurred
319            */
320            public static void addDLFolderDLFileEntryType(long folderId,
321                    long fileEntryTypeId)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    getService().addDLFolderDLFileEntryType(folderId, fileEntryTypeId);
324            }
325    
326            /**
327            * @throws SystemException if a system exception occurred
328            */
329            public static void addDLFolderDLFileEntryType(long folderId,
330                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    getService().addDLFolderDLFileEntryType(folderId, dlFileEntryType);
333            }
334    
335            /**
336            * @throws SystemException if a system exception occurred
337            */
338            public static void addDLFolderDLFileEntryTypes(long folderId,
339                    long[] fileEntryTypeIds)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    getService().addDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
342            }
343    
344            /**
345            * @throws SystemException if a system exception occurred
346            */
347            public static void addDLFolderDLFileEntryTypes(long folderId,
348                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    getService().addDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
351            }
352    
353            /**
354            * @throws SystemException if a system exception occurred
355            */
356            public static void clearDLFolderDLFileEntryTypes(long folderId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    getService().clearDLFolderDLFileEntryTypes(folderId);
359            }
360    
361            /**
362            * @throws SystemException if a system exception occurred
363            */
364            public static void deleteDLFolderDLFileEntryType(long folderId,
365                    long fileEntryTypeId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    getService().deleteDLFolderDLFileEntryType(folderId, fileEntryTypeId);
368            }
369    
370            /**
371            * @throws SystemException if a system exception occurred
372            */
373            public static void deleteDLFolderDLFileEntryType(long folderId,
374                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    getService().deleteDLFolderDLFileEntryType(folderId, dlFileEntryType);
377            }
378    
379            /**
380            * @throws SystemException if a system exception occurred
381            */
382            public static void deleteDLFolderDLFileEntryTypes(long folderId,
383                    long[] fileEntryTypeIds)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    getService().deleteDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
386            }
387    
388            /**
389            * @throws SystemException if a system exception occurred
390            */
391            public static void deleteDLFolderDLFileEntryTypes(long folderId,
392                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    getService().deleteDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
395            }
396    
397            /**
398            * @throws SystemException if a system exception occurred
399            */
400            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
401                    long folderId)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return getService().getDLFolderDLFileEntryTypes(folderId);
404            }
405    
406            /**
407            * @throws SystemException if a system exception occurred
408            */
409            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
410                    long folderId, int start, int end)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
413            }
414    
415            /**
416            * @throws SystemException if a system exception occurred
417            */
418            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
419                    long folderId, int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getService()
423                                       .getDLFolderDLFileEntryTypes(folderId, start, end,
424                            orderByComparator);
425            }
426    
427            /**
428            * @throws SystemException if a system exception occurred
429            */
430            public static int getDLFolderDLFileEntryTypesCount(long folderId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getService().getDLFolderDLFileEntryTypesCount(folderId);
433            }
434    
435            /**
436            * @throws SystemException if a system exception occurred
437            */
438            public static boolean hasDLFolderDLFileEntryType(long folderId,
439                    long fileEntryTypeId)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    return getService().hasDLFolderDLFileEntryType(folderId, fileEntryTypeId);
442            }
443    
444            /**
445            * @throws SystemException if a system exception occurred
446            */
447            public static boolean hasDLFolderDLFileEntryTypes(long folderId)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getService().hasDLFolderDLFileEntryTypes(folderId);
450            }
451    
452            /**
453            * @throws SystemException if a system exception occurred
454            */
455            public static void setDLFolderDLFileEntryTypes(long folderId,
456                    long[] fileEntryTypeIds)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
459            }
460    
461            /**
462            * @throws SystemException if a system exception occurred
463            */
464            public static void addDDMStructureDLFileEntryType(long structureId,
465                    long fileEntryTypeId)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    getService().addDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
468            }
469    
470            /**
471            * @throws SystemException if a system exception occurred
472            */
473            public static void addDDMStructureDLFileEntryType(long structureId,
474                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    getService().addDDMStructureDLFileEntryType(structureId, dlFileEntryType);
477            }
478    
479            /**
480            * @throws SystemException if a system exception occurred
481            */
482            public static void addDDMStructureDLFileEntryTypes(long structureId,
483                    long[] fileEntryTypeIds)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    getService()
486                            .addDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
487            }
488    
489            /**
490            * @throws SystemException if a system exception occurred
491            */
492            public static void addDDMStructureDLFileEntryTypes(long structureId,
493                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    getService()
496                            .addDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
497            }
498    
499            /**
500            * @throws SystemException if a system exception occurred
501            */
502            public static void clearDDMStructureDLFileEntryTypes(long structureId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    getService().clearDDMStructureDLFileEntryTypes(structureId);
505            }
506    
507            /**
508            * @throws SystemException if a system exception occurred
509            */
510            public static void deleteDDMStructureDLFileEntryType(long structureId,
511                    long fileEntryTypeId)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    getService()
514                            .deleteDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
515            }
516    
517            /**
518            * @throws SystemException if a system exception occurred
519            */
520            public static void deleteDDMStructureDLFileEntryType(long structureId,
521                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    getService()
524                            .deleteDDMStructureDLFileEntryType(structureId, dlFileEntryType);
525            }
526    
527            /**
528            * @throws SystemException if a system exception occurred
529            */
530            public static void deleteDDMStructureDLFileEntryTypes(long structureId,
531                    long[] fileEntryTypeIds)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    getService()
534                            .deleteDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
535            }
536    
537            /**
538            * @throws SystemException if a system exception occurred
539            */
540            public static void deleteDDMStructureDLFileEntryTypes(long structureId,
541                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    getService()
544                            .deleteDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
545            }
546    
547            /**
548            * @throws SystemException if a system exception occurred
549            */
550            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
551                    long structureId)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getService().getDDMStructureDLFileEntryTypes(structureId);
554            }
555    
556            /**
557            * @throws SystemException if a system exception occurred
558            */
559            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
560                    long structureId, int start, int end)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    return getService()
563                                       .getDDMStructureDLFileEntryTypes(structureId, start, end);
564            }
565    
566            /**
567            * @throws SystemException if a system exception occurred
568            */
569            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
570                    long structureId, int start, int end,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return getService()
574                                       .getDDMStructureDLFileEntryTypes(structureId, start, end,
575                            orderByComparator);
576            }
577    
578            /**
579            * @throws SystemException if a system exception occurred
580            */
581            public static int getDDMStructureDLFileEntryTypesCount(long structureId)
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    return getService().getDDMStructureDLFileEntryTypesCount(structureId);
584            }
585    
586            /**
587            * @throws SystemException if a system exception occurred
588            */
589            public static boolean hasDDMStructureDLFileEntryType(long structureId,
590                    long fileEntryTypeId)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    return getService()
593                                       .hasDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
594            }
595    
596            /**
597            * @throws SystemException if a system exception occurred
598            */
599            public static boolean hasDDMStructureDLFileEntryTypes(long structureId)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getService().hasDDMStructureDLFileEntryTypes(structureId);
602            }
603    
604            /**
605            * @throws SystemException if a system exception occurred
606            */
607            public static void setDDMStructureDLFileEntryTypes(long structureId,
608                    long[] fileEntryTypeIds)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    getService()
611                            .setDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
612            }
613    
614            /**
615            * Returns the Spring bean ID for this bean.
616            *
617            * @return the Spring bean ID for this bean
618            */
619            public static java.lang.String getBeanIdentifier() {
620                    return getService().getBeanIdentifier();
621            }
622    
623            /**
624            * Sets the Spring bean ID for this bean.
625            *
626            * @param beanIdentifier the Spring bean ID for this bean
627            */
628            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
629                    getService().setBeanIdentifier(beanIdentifier);
630            }
631    
632            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
633                    long userId, long groupId, java.lang.String fileEntryTypeKey,
634                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
635                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
636                    long[] ddmStructureIds,
637                    com.liferay.portal.service.ServiceContext serviceContext)
638                    throws com.liferay.portal.kernel.exception.PortalException,
639                            com.liferay.portal.kernel.exception.SystemException {
640                    return getService()
641                                       .addFileEntryType(userId, groupId, fileEntryTypeKey,
642                            nameMap, descriptionMap, ddmStructureIds, serviceContext);
643            }
644    
645            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
646                    long userId, long groupId, java.lang.String name,
647                    java.lang.String description, long[] ddmStructureIds,
648                    com.liferay.portal.service.ServiceContext serviceContext)
649                    throws com.liferay.portal.kernel.exception.PortalException,
650                            com.liferay.portal.kernel.exception.SystemException {
651                    return getService()
652                                       .addFileEntryType(userId, groupId, name, description,
653                            ddmStructureIds, serviceContext);
654            }
655    
656            public static void cascadeFileEntryTypes(long userId,
657                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
658                    throws com.liferay.portal.kernel.exception.PortalException,
659                            com.liferay.portal.kernel.exception.SystemException {
660                    getService().cascadeFileEntryTypes(userId, dlFolder);
661            }
662    
663            public static void deleteFileEntryType(
664                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
665                    throws com.liferay.portal.kernel.exception.PortalException,
666                            com.liferay.portal.kernel.exception.SystemException {
667                    getService().deleteFileEntryType(dlFileEntryType);
668            }
669    
670            public static void deleteFileEntryType(long fileEntryTypeId)
671                    throws com.liferay.portal.kernel.exception.PortalException,
672                            com.liferay.portal.kernel.exception.SystemException {
673                    getService().deleteFileEntryType(fileEntryTypeId);
674            }
675    
676            public static void deleteFileEntryTypes(long groupId)
677                    throws com.liferay.portal.kernel.exception.PortalException,
678                            com.liferay.portal.kernel.exception.SystemException {
679                    getService().deleteFileEntryTypes(groupId);
680            }
681    
682            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
683                    long fileEntryTypeId)
684                    throws com.liferay.portal.kernel.exception.SystemException {
685                    return getService().fetchFileEntryType(fileEntryTypeId);
686            }
687    
688            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
689                    long groupId, java.lang.String fileEntryTypeKey)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getService().fetchFileEntryType(groupId, fileEntryTypeKey);
692            }
693    
694            public static long getDefaultFileEntryTypeId(long folderId)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException {
697                    return getService().getDefaultFileEntryTypeId(folderId);
698            }
699    
700            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
701                    long fileEntryTypeId)
702                    throws com.liferay.portal.kernel.exception.PortalException,
703                            com.liferay.portal.kernel.exception.SystemException {
704                    return getService().getFileEntryType(fileEntryTypeId);
705            }
706    
707            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
708                    long groupId, java.lang.String fileEntryTypeKey)
709                    throws com.liferay.portal.kernel.exception.PortalException,
710                            com.liferay.portal.kernel.exception.SystemException {
711                    return getService().getFileEntryType(groupId, fileEntryTypeKey);
712            }
713    
714            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
715                    long[] groupIds)
716                    throws com.liferay.portal.kernel.exception.SystemException {
717                    return getService().getFileEntryTypes(groupIds);
718            }
719    
720            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
721                    long[] groupIds, long folderId, boolean inherited)
722                    throws com.liferay.portal.kernel.exception.PortalException,
723                            com.liferay.portal.kernel.exception.SystemException {
724                    return getService()
725                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
726            }
727    
728            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
729                    long companyId, long[] groupIds, java.lang.String keywords,
730                    boolean includeBasicFileEntryType, int start, int end,
731                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
732                    throws com.liferay.portal.kernel.exception.SystemException {
733                    return getService()
734                                       .search(companyId, groupIds, keywords,
735                            includeBasicFileEntryType, start, end, orderByComparator);
736            }
737    
738            public static int searchCount(long companyId, long[] groupIds,
739                    java.lang.String keywords, boolean includeBasicFileEntryType)
740                    throws com.liferay.portal.kernel.exception.SystemException {
741                    return getService()
742                                       .searchCount(companyId, groupIds, keywords,
743                            includeBasicFileEntryType);
744            }
745    
746            public static void unsetFolderFileEntryTypes(long folderId)
747                    throws com.liferay.portal.kernel.exception.SystemException {
748                    getService().unsetFolderFileEntryTypes(folderId);
749            }
750    
751            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
752                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
753                    com.liferay.portal.service.ServiceContext serviceContext)
754                    throws com.liferay.portal.kernel.exception.PortalException,
755                            com.liferay.portal.kernel.exception.SystemException {
756                    return getService()
757                                       .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
758            }
759    
760            public static void updateFileEntryType(long userId, long fileEntryTypeId,
761                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
762                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
763                    long[] ddmStructureIds,
764                    com.liferay.portal.service.ServiceContext serviceContext)
765                    throws com.liferay.portal.kernel.exception.PortalException,
766                            com.liferay.portal.kernel.exception.SystemException {
767                    getService()
768                            .updateFileEntryType(userId, fileEntryTypeId, nameMap,
769                            descriptionMap, ddmStructureIds, serviceContext);
770            }
771    
772            public static void updateFileEntryType(long userId, long fileEntryTypeId,
773                    java.lang.String name, java.lang.String description,
774                    long[] ddmStructureIds,
775                    com.liferay.portal.service.ServiceContext serviceContext)
776                    throws com.liferay.portal.kernel.exception.PortalException,
777                            com.liferay.portal.kernel.exception.SystemException {
778                    getService()
779                            .updateFileEntryType(userId, fileEntryTypeId, name, description,
780                            ddmStructureIds, serviceContext);
781            }
782    
783            public static void updateFolderFileEntryTypes(
784                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
785                    java.util.List<java.lang.Long> fileEntryTypeIds,
786                    long defaultFileEntryTypeId,
787                    com.liferay.portal.service.ServiceContext serviceContext)
788                    throws com.liferay.portal.kernel.exception.PortalException,
789                            com.liferay.portal.kernel.exception.SystemException {
790                    getService()
791                            .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
792                            defaultFileEntryTypeId, serviceContext);
793            }
794    
795            public static DLFileEntryTypeLocalService getService() {
796                    if (_service == null) {
797                            _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
798    
799                            ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
800                                    "_service");
801                    }
802    
803                    return _service;
804            }
805    
806            /**
807             * @deprecated As of 6.2.0
808             */
809            public void setService(DLFileEntryTypeLocalService service) {
810            }
811    
812            private static DLFileEntryTypeLocalService _service;
813    }