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