001
014
015 package com.liferay.portlet.dynamicdatalists.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.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface DDLRecordLocalService extends BaseLocalService,
040 PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.dynamicdatalists.model.DDLRecord addDDLRecord(
055 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.dynamicdatalists.model.DDLRecord createDDLRecord(
065 long recordId);
066
067
075 public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteDDLRecord(
076 long recordId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080
087 public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteDDLRecord(
088 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
092
093
100 @SuppressWarnings("rawtypes")
101 public java.util.List dynamicQuery(
102 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105
118 @SuppressWarnings("rawtypes")
119 public java.util.List dynamicQuery(
120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121 int end) throws com.liferay.portal.kernel.exception.SystemException;
122
123
137 @SuppressWarnings("rawtypes")
138 public java.util.List dynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
151 public long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 public long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
165 com.liferay.portal.kernel.dao.orm.Projection projection)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchDDLRecord(
170 long recordId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchDDLRecordByUuidAndCompanyId(
183 java.lang.String uuid, long companyId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchDDLRecordByUuidAndGroupId(
196 java.lang.String uuid, long groupId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecord(
209 long recordId)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException;
212
213 @Override
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portal.model.PersistedModel getPersistedModel(
216 java.io.Serializable primaryKeyObj)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecordByUuidAndCompanyId(
231 java.lang.String uuid, long companyId)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecordByUuidAndGroupId(
246 java.lang.String uuid, long groupId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getDDLRecords(
264 int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public int getDDLRecordsCount()
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277
284 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
285 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288
293 public java.lang.String getBeanIdentifier();
294
295
300 public void setBeanIdentifier(java.lang.String beanIdentifier);
301
302 public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
303 long userId, long groupId, long recordSetId, int displayIndex,
304 com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
305 com.liferay.portal.service.ServiceContext serviceContext)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
310 long userId, long groupId, long recordSetId, int displayIndex,
311 java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
312 com.liferay.portal.service.ServiceContext serviceContext)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException;
315
316 public void deleteRecord(
317 com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void deleteRecord(long recordId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(
326 long recordId, java.util.Locale locale,
327 com.liferay.portal.service.ServiceContext serviceContext)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 public void deleteRecords(long recordSetId)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(
337 long recordId)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getCompanyRecords(
342 long companyId, int status, int scope, int start, int end,
343 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getCompanyRecords(
352 long companyId, int scope, int start, int end,
353 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public int getCompanyRecordsCount(long companyId, int scope)
362 throws com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public int getCompanyRecordsCount(long companyId, int status, int scope)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(
370 long recordId)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException;
373
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.lang.Long[] getMinAndMaxCompanyRecordIds(long companyId,
376 int status, int scope)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getMinAndMaxCompanyRecords(
381 long companyId, int status, int scope, long minRecordId,
382 long maxRecordId)
383 throws com.liferay.portal.kernel.exception.SystemException;
384
385 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386 public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
387 long recordId)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException;
390
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
393 long recordSetId)
394 throws com.liferay.portal.kernel.exception.SystemException;
395
396 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
398 long recordSetId, int status, int start, int end,
399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400 throws com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
404 long recordSetId, long userId)
405 throws com.liferay.portal.kernel.exception.SystemException;
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public int getRecordsCount(long recordSetId, int status)
409 throws com.liferay.portal.kernel.exception.SystemException;
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
413 long recordVersionId)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException;
416
417 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
419 long recordId, java.lang.String version)
420 throws com.liferay.portal.kernel.exception.PortalException,
421 com.liferay.portal.kernel.exception.SystemException;
422
423 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
425 long recordId, int start, int end,
426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427 throws com.liferay.portal.kernel.exception.SystemException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public int getRecordVersionsCount(long recordId)
431 throws com.liferay.portal.kernel.exception.SystemException;
432
433 public void revertRecordVersion(long userId, long recordId,
434 java.lang.String version,
435 com.liferay.portal.service.ServiceContext serviceContext)
436 throws com.liferay.portal.kernel.exception.PortalException,
437 com.liferay.portal.kernel.exception.SystemException;
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public com.liferay.portal.kernel.search.Hits search(
441 com.liferay.portal.kernel.search.SearchContext searchContext)
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444 public void updateAsset(long userId,
445 com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
446 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
447 long[] assetCategoryIds, java.lang.String[] assetTagNames,
448 java.util.Locale locale)
449 throws com.liferay.portal.kernel.exception.PortalException,
450 com.liferay.portal.kernel.exception.SystemException;
451
452 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
453 long userId, long recordId, boolean majorVersion, int displayIndex,
454 com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
455 boolean mergeFields,
456 com.liferay.portal.service.ServiceContext serviceContext)
457 throws com.liferay.portal.kernel.exception.PortalException,
458 com.liferay.portal.kernel.exception.SystemException;
459
460 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
461 long userId, long recordId, int displayIndex,
462 java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
463 boolean mergeFields,
464 com.liferay.portal.service.ServiceContext serviceContext)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException;
467
468 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(
469 long userId, long recordVersionId, int status,
470 com.liferay.portal.service.ServiceContext serviceContext)
471 throws com.liferay.portal.kernel.exception.PortalException,
472 com.liferay.portal.kernel.exception.SystemException;
473 }