001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface DLFileEntryTypeLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
054 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
064 long fileEntryTypeId);
065
066
073 public void deleteDLFileEntryType(long fileEntryTypeId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteDLFileEntryType(
084 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
151 long fileEntryTypeId)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
164 long fileEntryTypeId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portal.model.PersistedModel getPersistedModel(
170 java.io.Serializable primaryKeyObj)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
185 java.lang.String uuid, long groupId)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException;
188
189
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
203 int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int getDLFileEntryTypesCount()
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216
223 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
224 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227
235 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
236 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
237 boolean merge)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240
245 public java.lang.String getBeanIdentifier();
246
247
252 public void setBeanIdentifier(java.lang.String beanIdentifier);
253
254 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
255 long userId, long groupId, java.lang.String name,
256 java.lang.String description, long[] ddmStructureIds,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void cascadeFileEntryTypes(long userId,
262 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void deleteFileEntryType(
267 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void deleteFileEntryType(long fileEntryTypeId)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public void deleteFileEntryTypes(long groupId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
281 long fileEntryTypeId)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public long getDefaultFileEntryTypeId(long folderId)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
291 long fileEntryTypeId)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
297 long groupId, java.lang.String name)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
303 long[] groupIds)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
308 long[] groupIds, long folderId, boolean inherited)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
314 long companyId, long[] groupIds, java.lang.String keywords,
315 boolean includeBasicFileEntryType, int start, int end,
316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public int searchCount(long companyId, long[] groupIds,
321 java.lang.String keywords, boolean includeBasicFileEntryType)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 public void unsetFolderFileEntryTypes(long folderId)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
328 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
329 com.liferay.portal.service.ServiceContext serviceContext)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 public void updateFileEntryType(long userId, long fileEntryTypeId,
334 java.lang.String name, java.lang.String description,
335 long[] ddmStructureIds,
336 com.liferay.portal.service.ServiceContext serviceContext)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public void updateFolderFileEntryTypes(
341 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
342 java.util.List<java.lang.Long> fileEntryTypeIds,
343 long defaultFileEntryTypeId,
344 com.liferay.portal.service.ServiceContext serviceContext)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException;
347 }