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
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
159 long fileEntryTypeId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getDLFileEntryTypesCount()
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
203 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
204 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
216 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
217 boolean merge)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220
225 public java.lang.String getBeanIdentifier();
226
227
232 public void setBeanIdentifier(java.lang.String beanIdentifier);
233
234 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
235 long userId, long groupId, java.lang.String name,
236 java.lang.String description, long[] ddmStructureIds,
237 com.liferay.portal.service.ServiceContext serviceContext)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public void cascadeFileEntryTypes(long userId,
242 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void deleteFileEntryType(long fileEntryTypeId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void deleteFileEntryTypes(long folderId)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public long getDefaultFileEntryType(long folderId)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
260 long fileEntryTypeId)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
266 long groupId, java.lang.String name)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
272 long groupId, int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
277 long[] groupIds)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
282 long[] groupIds, long folderId, boolean inherited)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
288 long companyId, long[] groupIds, java.lang.String keywords, int start,
289 int end,
290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int searchCount(long companyId, long[] groupIds,
295 java.lang.String keywords)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 public void updateFileEntryType(long userId, long fileEntryTypeId,
299 java.lang.String name, java.lang.String description,
300 long[] ddmStructureIds,
301 com.liferay.portal.service.ServiceContext serviceContext)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304
305 public void updateFolderFileEntryTypes(
306 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
307 java.util.List<java.lang.Long> fileEntryTypeIds,
308 long defaultFileEntryTypeId,
309 com.liferay.portal.service.ServiceContext serviceContext)
310 throws com.liferay.portal.kernel.exception.SystemException;
311 }