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.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.model.SystemEventConstants;
026    import com.liferay.portal.service.BaseLocalService;
027    import com.liferay.portal.service.PersistedModelLocalService;
028    
029    /**
030     * Provides the local service interface for DLFileEntryType. Methods of this
031     * service will not have security checks based on the propagated JAAS
032     * credentials because this service can only be accessed from within the same
033     * VM.
034     *
035     * @author Brian Wing Shun Chan
036     * @see DLFileEntryTypeLocalServiceUtil
037     * @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeLocalServiceBaseImpl
038     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl
039     * @generated
040     */
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface DLFileEntryTypeLocalService extends BaseLocalService,
045            PersistedModelLocalService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link DLFileEntryTypeLocalServiceUtil} to access the document library file entry type local service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051    
052            /**
053            * Adds the document library file entry type to the database. Also notifies the appropriate model listeners.
054            *
055            * @param dlFileEntryType the document library file entry type
056            * @return the document library file entry type that was added
057            * @throws SystemException if a system exception occurred
058            */
059            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060            public com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
061                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            /**
065            * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.
066            *
067            * @param fileEntryTypeId the primary key for the new document library file entry type
068            * @return the new document library file entry type
069            */
070            public com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
071                    long fileEntryTypeId);
072    
073            /**
074            * Deletes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.
075            *
076            * @param fileEntryTypeId the primary key of the document library file entry type
077            * @return the document library file entry type that was removed
078            * @throws PortalException if a document library file entry type with the primary key could not be found
079            * @throws SystemException if a system exception occurred
080            */
081            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082            public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
083                    long fileEntryTypeId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Deletes the document library file entry type from the database. Also notifies the appropriate model listeners.
089            *
090            * @param dlFileEntryType the document library file entry type
091            * @return the document library file entry type that was removed
092            * @throws SystemException if a system exception occurred
093            */
094            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095            public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
096                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100    
101            /**
102            * Performs a dynamic query on the database and returns the matching rows.
103            *
104            * @param dynamicQuery the dynamic query
105            * @return the matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Performs a dynamic query on the database and returns a range of the matching rows.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @return the range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end) throws com.liferay.portal.kernel.exception.SystemException;
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 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    
152            /**
153            * Returns the number of rows that match the dynamic query.
154            *
155            * @param dynamicQuery the dynamic query
156            * @return the number of rows that match the dynamic query
157            * @throws SystemException if a system exception occurred
158            */
159            public long dynamicQueryCount(
160                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            /**
164            * Returns the number of rows that match the dynamic query.
165            *
166            * @param dynamicQuery the dynamic query
167            * @param projection the projection to apply to the query
168            * @return the number of rows that match the dynamic query
169            * @throws SystemException if a system exception occurred
170            */
171            public long dynamicQueryCount(
172                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173                    com.liferay.portal.kernel.dao.orm.Projection projection)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
178                    long fileEntryTypeId)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the document library file entry type with the matching UUID and company.
183            *
184            * @param uuid the document library file entry type's UUID
185            * @param companyId the primary key of the company
186            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndCompanyId(
191                    java.lang.String uuid, long companyId)
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Returns the document library file entry type matching the UUID and group.
196            *
197            * @param uuid the document library file entry type's UUID
198            * @param groupId the primary key of the group
199            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the document library file entry type with the primary key.
209            *
210            * @param fileEntryTypeId the primary key of the document library file entry type
211            * @return the document library file entry type
212            * @throws PortalException if a document library file entry type with the primary key could not be found
213            * @throws SystemException if a system exception occurred
214            */
215            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
217                    long fileEntryTypeId)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException;
220    
221            @Override
222            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223            public com.liferay.portal.model.PersistedModel getPersistedModel(
224                    java.io.Serializable primaryKeyObj)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Returns the document library file entry type with the matching UUID and company.
230            *
231            * @param uuid the document library file entry type's UUID
232            * @param companyId the primary key of the company
233            * @return the matching document library file entry type
234            * @throws PortalException if a matching document library file entry type could not be found
235            * @throws SystemException if a system exception occurred
236            */
237            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndCompanyId(
239                    java.lang.String uuid, long companyId)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException;
242    
243            /**
244            * Returns the document library file entry type matching the UUID and group.
245            *
246            * @param uuid the document library file entry type's UUID
247            * @param groupId the primary key of the group
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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
254                    java.lang.String uuid, long groupId)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException;
257    
258            /**
259            * Returns a range of all the document library file entry types.
260            *
261            * <p>
262            * 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.
263            * </p>
264            *
265            * @param start the lower bound of the range of document library file entry types
266            * @param end the upper bound of the range of document library file entry types (not inclusive)
267            * @return the range of document library file entry types
268            * @throws SystemException if a system exception occurred
269            */
270            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
272                    int start, int end)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the number of document library file entry types.
277            *
278            * @return the number of document library file entry types
279            * @throws SystemException if a system exception occurred
280            */
281            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282            public int getDLFileEntryTypesCount()
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * 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.
287            *
288            * @param dlFileEntryType the document library file entry type
289            * @return the document library file entry type that was updated
290            * @throws SystemException if a system exception occurred
291            */
292            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
293            public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
294                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * @throws SystemException if a system exception occurred
305            */
306            public void addDLFolderDLFileEntryType(long folderId,
307                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            /**
311            * @throws SystemException if a system exception occurred
312            */
313            public void addDLFolderDLFileEntryTypes(long folderId,
314                    long[] fileEntryTypeIds)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            /**
318            * @throws SystemException if a system exception occurred
319            */
320            public void addDLFolderDLFileEntryTypes(long folderId,
321                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public void clearDLFolderDLFileEntryTypes(long folderId)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * @throws SystemException if a system exception occurred
332            */
333            public void deleteDLFolderDLFileEntryType(long folderId,
334                    long fileEntryTypeId)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * @throws SystemException if a system exception occurred
339            */
340            public void deleteDLFolderDLFileEntryType(long folderId,
341                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * @throws SystemException if a system exception occurred
346            */
347            public void deleteDLFolderDLFileEntryTypes(long folderId,
348                    long[] fileEntryTypeIds)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * @throws SystemException if a system exception occurred
353            */
354            public void deleteDLFolderDLFileEntryTypes(long folderId,
355                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
356                    throws com.liferay.portal.kernel.exception.SystemException;
357    
358            /**
359            * @throws SystemException if a system exception occurred
360            */
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
363                    long folderId)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * @throws SystemException if a system exception occurred
368            */
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
371                    long folderId, int start, int end)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * @throws SystemException if a system exception occurred
376            */
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
379                    long folderId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * @throws SystemException if a system exception occurred
385            */
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public int getDLFolderDLFileEntryTypesCount(long folderId)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * @throws SystemException if a system exception occurred
392            */
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public boolean hasDLFolderDLFileEntryType(long folderId,
395                    long fileEntryTypeId)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * @throws SystemException if a system exception occurred
400            */
401            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402            public boolean hasDLFolderDLFileEntryTypes(long folderId)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * @throws SystemException if a system exception occurred
407            */
408            public void setDLFolderDLFileEntryTypes(long folderId,
409                    long[] fileEntryTypeIds)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * @throws SystemException if a system exception occurred
414            */
415            public void addDDMStructureDLFileEntryType(long structureId,
416                    long fileEntryTypeId)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            /**
420            * @throws SystemException if a system exception occurred
421            */
422            public void addDDMStructureDLFileEntryType(long structureId,
423                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * @throws SystemException if a system exception occurred
428            */
429            public void addDDMStructureDLFileEntryTypes(long structureId,
430                    long[] fileEntryTypeIds)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            /**
434            * @throws SystemException if a system exception occurred
435            */
436            public void addDDMStructureDLFileEntryTypes(long structureId,
437                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
438                    throws com.liferay.portal.kernel.exception.SystemException;
439    
440            /**
441            * @throws SystemException if a system exception occurred
442            */
443            public void clearDDMStructureDLFileEntryTypes(long structureId)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * @throws SystemException if a system exception occurred
448            */
449            public void deleteDDMStructureDLFileEntryType(long structureId,
450                    long fileEntryTypeId)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * @throws SystemException if a system exception occurred
455            */
456            public void deleteDDMStructureDLFileEntryType(long structureId,
457                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            /**
461            * @throws SystemException if a system exception occurred
462            */
463            public void deleteDDMStructureDLFileEntryTypes(long structureId,
464                    long[] fileEntryTypeIds)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * @throws SystemException if a system exception occurred
469            */
470            public void deleteDDMStructureDLFileEntryTypes(long structureId,
471                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
472                    throws com.liferay.portal.kernel.exception.SystemException;
473    
474            /**
475            * @throws SystemException if a system exception occurred
476            */
477            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
479                    long structureId)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * @throws SystemException if a system exception occurred
484            */
485            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
487                    long structureId, int start, int end)
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * @throws SystemException if a system exception occurred
492            */
493            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
495                    long structureId, int start, int end,
496                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * @throws SystemException if a system exception occurred
501            */
502            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503            public int getDDMStructureDLFileEntryTypesCount(long structureId)
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * @throws SystemException if a system exception occurred
508            */
509            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510            public boolean hasDDMStructureDLFileEntryType(long structureId,
511                    long fileEntryTypeId)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * @throws SystemException if a system exception occurred
516            */
517            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518            public boolean hasDDMStructureDLFileEntryTypes(long structureId)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * @throws SystemException if a system exception occurred
523            */
524            public void setDDMStructureDLFileEntryTypes(long structureId,
525                    long[] fileEntryTypeIds)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            /**
529            * Returns the Spring bean ID for this bean.
530            *
531            * @return the Spring bean ID for this bean
532            */
533            public java.lang.String getBeanIdentifier();
534    
535            /**
536            * Sets the Spring bean ID for this bean.
537            *
538            * @param beanIdentifier the Spring bean ID for this bean
539            */
540            public void setBeanIdentifier(java.lang.String beanIdentifier);
541    
542            public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
543                    long userId, long groupId, java.lang.String fileEntryTypeKey,
544                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
545                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
546                    long[] ddmStructureIds,
547                    com.liferay.portal.service.ServiceContext serviceContext)
548                    throws com.liferay.portal.kernel.exception.PortalException,
549                            com.liferay.portal.kernel.exception.SystemException;
550    
551            public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
552                    long userId, long groupId, java.lang.String name,
553                    java.lang.String description, long[] ddmStructureIds,
554                    com.liferay.portal.service.ServiceContext serviceContext)
555                    throws com.liferay.portal.kernel.exception.PortalException,
556                            com.liferay.portal.kernel.exception.SystemException;
557    
558            public void cascadeFileEntryTypes(long userId,
559                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
560                    throws com.liferay.portal.kernel.exception.PortalException,
561                            com.liferay.portal.kernel.exception.SystemException;
562    
563            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
564            public void deleteFileEntryType(
565                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
566                    throws com.liferay.portal.kernel.exception.PortalException,
567                            com.liferay.portal.kernel.exception.SystemException;
568    
569            public void deleteFileEntryType(long fileEntryTypeId)
570                    throws com.liferay.portal.kernel.exception.PortalException,
571                            com.liferay.portal.kernel.exception.SystemException;
572    
573            public void deleteFileEntryTypes(long groupId)
574                    throws com.liferay.portal.kernel.exception.PortalException,
575                            com.liferay.portal.kernel.exception.SystemException;
576    
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
579                    long fileEntryTypeId)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
583            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
584                    long groupId, java.lang.String fileEntryTypeKey)
585                    throws com.liferay.portal.kernel.exception.SystemException;
586    
587            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
588            public long getDefaultFileEntryTypeId(long folderId)
589                    throws com.liferay.portal.kernel.exception.PortalException,
590                            com.liferay.portal.kernel.exception.SystemException;
591    
592            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
593            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
594                    long fileEntryTypeId)
595                    throws com.liferay.portal.kernel.exception.PortalException,
596                            com.liferay.portal.kernel.exception.SystemException;
597    
598            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
599            public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
600                    long groupId, java.lang.String fileEntryTypeKey)
601                    throws com.liferay.portal.kernel.exception.PortalException,
602                            com.liferay.portal.kernel.exception.SystemException;
603    
604            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
606                    long[] groupIds)
607                    throws com.liferay.portal.kernel.exception.SystemException;
608    
609            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
610            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
611                    long[] groupIds, long folderId, boolean inherited)
612                    throws com.liferay.portal.kernel.exception.PortalException,
613                            com.liferay.portal.kernel.exception.SystemException;
614    
615            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
616            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
617                    long companyId, long[] groupIds, java.lang.String keywords,
618                    boolean includeBasicFileEntryType, int start, int end,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
623            public int searchCount(long companyId, long[] groupIds,
624                    java.lang.String keywords, boolean includeBasicFileEntryType)
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            public void unsetFolderFileEntryTypes(long folderId)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
631                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
632                    com.liferay.portal.service.ServiceContext serviceContext)
633                    throws com.liferay.portal.kernel.exception.PortalException,
634                            com.liferay.portal.kernel.exception.SystemException;
635    
636            public void updateFileEntryType(long userId, long fileEntryTypeId,
637                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
638                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
639                    long[] ddmStructureIds,
640                    com.liferay.portal.service.ServiceContext serviceContext)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException;
643    
644            public void updateFileEntryType(long userId, long fileEntryTypeId,
645                    java.lang.String name, java.lang.String description,
646                    long[] ddmStructureIds,
647                    com.liferay.portal.service.ServiceContext serviceContext)
648                    throws com.liferay.portal.kernel.exception.PortalException,
649                            com.liferay.portal.kernel.exception.SystemException;
650    
651            public void updateFolderFileEntryTypes(
652                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
653                    java.util.List<java.lang.Long> fileEntryTypeIds,
654                    long defaultFileEntryTypeId,
655                    com.liferay.portal.service.ServiceContext serviceContext)
656                    throws com.liferay.portal.kernel.exception.PortalException,
657                            com.liferay.portal.kernel.exception.SystemException;
658    }