001
014
015 package com.liferay.portlet.dynamicdatamapping.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
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface DDMStructureLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addDDMStructure(
056 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure createDDMStructure(
066 long structureId);
067
068
076 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure deleteDDMStructure(
077 long structureId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure deleteDDMStructure(
089 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchDDMStructure(
158 long structureId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure(
171 long structureId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructureByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getDDMStructuresCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure(
231 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
242 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure(
243 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure,
244 boolean merge)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
250 public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
251 long structureId)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254
257 public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
258 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261
264 public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
265 long[] structureIds)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268
271 public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
272 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> DDMStructures)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275
278 public void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281
284 public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
285 long structureId)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288
291 public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
292 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295
298 public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
299 long[] structureIds)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302
305 public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
306 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> DDMStructures)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeDDMStructures(
314 long fileEntryTypeId)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeDDMStructures(
322 long fileEntryTypeId, int start, int end)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeDDMStructures(
330 long fileEntryTypeId, int start, int end,
331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId)
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId,
346 long structureId)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356
359 public void setDLFileEntryTypeDDMStructures(long fileEntryTypeId,
360 long[] structureIds)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363
368 public java.lang.String getBeanIdentifier();
369
370
375 public void setBeanIdentifier(java.lang.String beanIdentifier);
376
377 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
378 long userId, long groupId, long classNameId,
379 java.lang.String structureKey,
380 java.util.Map<java.util.Locale, java.lang.String> nameMap,
381 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
382 java.lang.String xsd, java.lang.String storageType, int type,
383 com.liferay.portal.service.ServiceContext serviceContext)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException;
386
387 public void addStructureResources(
388 com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
389 boolean addGroupPermissions, boolean addGuestPermissions)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException;
392
393 public void addStructureResources(
394 com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
395 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
396 throws com.liferay.portal.kernel.exception.PortalException,
397 com.liferay.portal.kernel.exception.SystemException;
398
399 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
400 long userId, long structureId,
401 java.util.Map<java.util.Locale, java.lang.String> nameMap,
402 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
403 com.liferay.portal.service.ServiceContext serviceContext)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 public void deleteStructure(
408 com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 public void deleteStructure(long structureId)
413 throws com.liferay.portal.kernel.exception.PortalException,
414 com.liferay.portal.kernel.exception.SystemException;
415
416 public void deleteStructure(long groupId, java.lang.String structureKey)
417 throws com.liferay.portal.kernel.exception.PortalException,
418 com.liferay.portal.kernel.exception.SystemException;
419
420 public void deleteStructures(long groupId)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException;
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
426 long structureId)
427 throws com.liferay.portal.kernel.exception.SystemException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
431 long groupId, java.lang.String structureKey)
432 throws com.liferay.portal.kernel.exception.SystemException;
433
434
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
439 long classNameId)
440 throws com.liferay.portal.kernel.exception.SystemException;
441
442
445 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
446 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
447 long classNameId, int start, int end)
448 throws com.liferay.portal.kernel.exception.SystemException;
449
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
452 long companyId, long classNameId)
453 throws com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
457 long companyId, long classNameId, int start, int end)
458 throws com.liferay.portal.kernel.exception.SystemException;
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
462 long companyId, long classNameId,
463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464 throws com.liferay.portal.kernel.exception.SystemException;
465
466
469 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
470 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
471 long classNameId,
472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473 throws com.liferay.portal.kernel.exception.SystemException;
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeStructures(
477 long dlFileEntryTypeId)
478 throws com.liferay.portal.kernel.exception.SystemException;
479
480 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
482 long structureId)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
488 long groupId, java.lang.String structureKey)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException;
491
492 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructure(
494 long groupId, java.lang.String name, java.lang.String description)
495 throws com.liferay.portal.kernel.exception.SystemException;
496
497
500 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries()
502 throws com.liferay.portal.kernel.exception.SystemException;
503
504
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
509 long groupId)
510 throws com.liferay.portal.kernel.exception.SystemException;
511
512
515 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
517 long groupId, int start, int end)
518 throws com.liferay.portal.kernel.exception.SystemException;
519
520 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures()
522 throws com.liferay.portal.kernel.exception.SystemException;
523
524 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
526 long groupId)
527 throws com.liferay.portal.kernel.exception.SystemException;
528
529 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
530 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
531 long groupId, int start, int end)
532 throws com.liferay.portal.kernel.exception.SystemException;
533
534 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535 public int getStructuresCount(long groupId)
536 throws com.liferay.portal.kernel.exception.SystemException;
537
538 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
539 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
540 long companyId, long[] groupIds, long[] classNameIds,
541 java.lang.String keywords, int start, int end,
542 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
543 throws com.liferay.portal.kernel.exception.SystemException;
544
545 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
547 long companyId, long[] groupIds, long[] classNameIds,
548 java.lang.String name, java.lang.String description,
549 java.lang.String storageType, int type, boolean andOperator, int start,
550 int end,
551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552 throws com.liferay.portal.kernel.exception.SystemException;
553
554 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
555 public int searchCount(long companyId, long[] groupIds,
556 long[] classNameIds, java.lang.String keywords)
557 throws com.liferay.portal.kernel.exception.SystemException;
558
559 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560 public int searchCount(long companyId, long[] groupIds,
561 long[] classNameIds, java.lang.String name,
562 java.lang.String description, java.lang.String storageType, int type,
563 boolean andOperator)
564 throws com.liferay.portal.kernel.exception.SystemException;
565
566 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
567 long structureId,
568 java.util.Map<java.util.Locale, java.lang.String> nameMap,
569 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
570 java.lang.String xsd,
571 com.liferay.portal.service.ServiceContext serviceContext)
572 throws com.liferay.portal.kernel.exception.PortalException,
573 com.liferay.portal.kernel.exception.SystemException;
574
575 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
576 long groupId, java.lang.String structureKey,
577 java.util.Map<java.util.Locale, java.lang.String> nameMap,
578 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
579 java.lang.String xsd,
580 com.liferay.portal.service.ServiceContext serviceContext)
581 throws com.liferay.portal.kernel.exception.PortalException,
582 com.liferay.portal.kernel.exception.SystemException;
583 }