1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.api.repository;
17
18 import org.kuali.rice.core.api.criteria.QueryByCriteria;
19 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
20 import org.kuali.rice.krms.api.KrmsConstants;
21 import org.kuali.rice.krms.api.repository.agenda.AgendaDefinition;
22 import org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition;
23 import org.kuali.rice.krms.api.repository.context.ContextDefinition;
24 import org.kuali.rice.krms.api.repository.language.NaturalLanguageUsage;
25 import org.kuali.rice.krms.api.repository.proposition.PropositionDefinition;
26 import org.kuali.rice.krms.api.repository.reference.ReferenceObjectBinding;
27 import org.kuali.rice.krms.api.repository.rule.RuleDefinition;
28 import org.springframework.cache.annotation.CacheEvict;
29 import org.springframework.cache.annotation.Cacheable;
30
31 import javax.jws.WebMethod;
32 import javax.jws.WebParam;
33 import javax.jws.WebResult;
34 import javax.jws.WebService;
35 import javax.jws.soap.SOAPBinding;
36 import javax.xml.bind.annotation.XmlElement;
37 import javax.xml.bind.annotation.XmlElementWrapper;
38 import java.util.List;
39 import java.util.Set;
40 import org.kuali.rice.krms.api.repository.action.ActionDefinition;
41 import org.kuali.rice.krms.api.repository.agenda.AgendaTreeDefinition;
42 import org.kuali.rice.krms.api.repository.context.ContextSelectionCriteria;
43 import org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplate;
44
45
46
47
48
49
50
51 @WebService(name = "ruleManagementService", targetNamespace = KrmsConstants.Namespaces.KRMS_NAMESPACE_2_0)
52 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
53 parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
54 public interface RuleManagementService extends TranslateBusinessMethods {
55
56
57
58
59
60
61
62
63
64 @WebMethod(operationName = "createReferenceObjectBinding")
65 @WebResult(name = "referenceObjectBinding")
66 @CacheEvict(value={ReferenceObjectBinding.Cache.NAME}, allEntries = true)
67 public ReferenceObjectBinding createReferenceObjectBinding(@WebParam(
68 name = "referenceObjectDefinition") ReferenceObjectBinding referenceObjectDefinition) throws RiceIllegalArgumentException;
69
70
71
72
73
74
75
76
77
78 @WebMethod(operationName = "getReferenceObjectBinding")
79 @WebResult(name = "referenceObjectBinding")
80 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'id=' + #p0")
81 public ReferenceObjectBinding getReferenceObjectBinding(@WebParam(
82 name = "id") String id) throws RiceIllegalArgumentException;
83
84
85
86
87
88
89
90
91
92 @WebMethod(operationName = "getReferenceObjectBindings")
93 @XmlElementWrapper(name = "referenceObjectBindings", required = true)
94 @XmlElement(name = "referenceObjectBinding", required = false)
95 @WebResult(name = "referenceObjectBindings")
96 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'ids=' + #p0")
97 List<ReferenceObjectBinding> getReferenceObjectBindings(@WebParam(
98 name = "ids") List<String> ids) throws RiceIllegalArgumentException;
99
100
101
102
103
104
105
106
107
108
109
110 @WebMethod(operationName = "findReferenceObjectBindingsByReferenceDiscriminatorType")
111 @XmlElementWrapper(name = "referenceObjectBindings", required = true)
112 @XmlElement(name = "referenceObjectBinding", required = false)
113 @WebResult(name = "referenceObjectBindings")
114 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'referenceObjectReferenceDiscriminatorType=' + #p0")
115 public List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceDiscriminatorType(
116 @WebParam(name = "referenceObjectReferenceDiscriminatorType") String referenceObjectReferenceDiscriminatorType) throws RiceIllegalArgumentException;
117
118
119
120
121
122
123
124
125
126
127
128 @WebMethod(operationName = "findReferenceObjectBindingsByKrmsDiscriminatorType")
129 @XmlElementWrapper(name = "referenceObjectBindings", required = true)
130 @XmlElement(name = "referenceObjectBinding", required = false)
131 @WebResult(name = "referenceObjectBindings")
132 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'referenceObjectKrmsDiscriminatorType=' + #p0")
133 public List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsDiscriminatorType(
134 @WebParam(name = "referenceObjectKrmsDiscriminatorType") String referenceObjectKrmsDiscriminatorType) throws RiceIllegalArgumentException;
135
136
137
138
139
140
141
142
143
144
145
146
147
148 @WebMethod(operationName = "findReferenceObjectBindingsByReferenceObject")
149 @XmlElementWrapper(name = "referenceObjectBindings", required = true)
150 @XmlElement(name = "referenceObjectBinding", required = false)
151 @WebResult(name = "referenceObjectBindings")
152 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'referenceObjectReferenceDiscriminatorType=' + #p0 + '|' + 'referenceObjectId=' + #p1")
153 public List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceObject (
154 @WebParam(name = "referenceObjectReferenceDiscriminatorType") String referenceObjectReferenceDiscriminatorType,
155 @WebParam(name = "referenceObjectId") String referenceObjectId)
156 throws RiceIllegalArgumentException;
157
158
159
160
161
162
163
164
165
166
167
168
169 @WebMethod(operationName = "findReferenceObjectBindingsByReferenceObjectIds")
170 @XmlElementWrapper(name = "referenceObjectBindings", required = true)
171 @XmlElement(name = "referenceObjectBinding", required = false)
172 @WebResult(name = "referenceObjectBindings")
173 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'referenceObjectReferenceDiscriminatorType=' + #p0 + '|' + 'referenceObjectIds=' + #p1")
174 public List<ReferenceObjectBinding> findReferenceObjectBindingsByReferenceObjectIds (
175 @WebParam(name = "referenceObjectReferenceDiscriminatorType") String referenceObjectReferenceDiscriminatorType,
176 @WebParam(name = "referenceObjectId") List<String> referenceObjectIds)
177 throws RiceIllegalArgumentException;
178
179
180
181
182
183
184
185
186
187
188 @WebMethod(operationName = "findReferenceObjectBindingsByKrmsObjectId")
189 @XmlElementWrapper(name = "referenceObjectBindings", required = true)
190 @XmlElement(name = "referenceObjectBinding", required = false)
191 @WebResult(name = "referenceObjectBindings")
192 @Cacheable(value= ReferenceObjectBinding.Cache.NAME, key="'krmsObjectId=' + #p0")
193 public List<ReferenceObjectBinding> findReferenceObjectBindingsByKrmsObject(
194 @WebParam(name = "krmsObjectId") String krmsObjectId) throws RiceIllegalArgumentException;
195
196
197
198
199
200
201
202
203
204 @WebMethod(operationName = "updateReferenceObjectBinding")
205 @CacheEvict(value={ReferenceObjectBinding.Cache.NAME}, allEntries = true)
206 public void updateReferenceObjectBinding(ReferenceObjectBinding referenceObjectBindingDefinition) throws RiceIllegalArgumentException;
207
208
209
210
211
212
213
214 @WebMethod(operationName = "deleteReferenceObjectBinding")
215 @CacheEvict(value={ReferenceObjectBinding.Cache.NAME}, allEntries = true)
216 public void deleteReferenceObjectBinding(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231 @WebMethod(operationName = "findReferenceObjectBindingIds")
232 @XmlElementWrapper(name = "referenceObjectBindingIds", required = true)
233 @XmlElement(name = "referenceObjectBindingId", required = false)
234 @WebResult(name = "referenceObjectBindingIds")
235 List<String> findReferenceObjectBindingIds(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
236
237
238
239
240
241
242
243
244
245
246
247
248 @WebMethod(operationName = "createAgenda")
249 @WebResult(name = "agenda")
250 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true)
251 public AgendaDefinition createAgenda(@WebParam(name = "AgendaDefinition") AgendaDefinition agendaDefinition) throws RiceIllegalArgumentException;
252
253
254
255
256
257
258
259
260
261 @WebMethod(operationName = "findCreateAgenda")
262 @WebResult(name = "agenda")
263 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true)
264 public AgendaDefinition findCreateAgenda(@WebParam(name = "AgendaDefinition") AgendaDefinition agendaDefinition) throws RiceIllegalArgumentException;
265
266
267
268
269
270
271
272
273 @WebMethod(operationName = "getAgenda")
274 @WebResult(name = "agenda")
275 @Cacheable(value= AgendaDefinition.Cache.NAME, key="'id=' + #p0")
276 public AgendaDefinition getAgenda(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
277
278
279
280
281
282
283
284
285
286
287
288 @WebMethod(operationName = "getAgendaByNameAndContextId")
289 @WebResult(name = "agenda")
290 @Cacheable(value= AgendaDefinition.Cache.NAME, key="'name=' + #p0 + '|' + 'contextId=' + #p1")
291 public AgendaDefinition getAgendaByNameAndContextId (@WebParam(name = "name") String name,
292 @WebParam(name = "contextId") String contextId);
293
294
295
296
297
298
299
300
301
302 @WebMethod(operationName = "getAgendasByType")
303 @XmlElementWrapper(name = "agendas", required = true)
304 @XmlElement(name = "agenda", required = false)
305 @WebResult(name = "agendas")
306 @Cacheable(value= AgendaDefinition.Cache.NAME, key="'typeId=' + #p0")
307 public List<AgendaDefinition> getAgendasByType(@WebParam(name = "typeId") String typeId) throws RiceIllegalArgumentException;
308
309
310
311
312
313
314
315
316
317 @WebMethod(operationName = "getAgendasByContext")
318 @XmlElementWrapper(name = "agendas", required = true)
319 @XmlElement(name = "agenda", required = false)
320 @WebResult(name = "agendas")
321 @Cacheable(value= AgendaDefinition.Cache.NAME, key="'contextId=' + #p0")
322 public List<AgendaDefinition> getAgendasByContext(@WebParam(name = "contextId") String contextId) throws RiceIllegalArgumentException;
323
324
325
326
327
328
329
330
331
332
333 @WebMethod(operationName = "getAgendasByTypeAndContext")
334 @XmlElementWrapper(name = "agendas", required = true)
335 @XmlElement(name = "agenda", required = false)
336 @WebResult(name = "agendas")
337 @Cacheable(value= AgendaDefinition.Cache.NAME, key="'typeId=' + #p0 + '|' + 'contextId=' + #p1")
338 public List<AgendaDefinition> getAgendasByTypeAndContext(@WebParam(name = "typeId") String typeId,
339 @WebParam(name = "contextId") String contextId) throws RiceIllegalArgumentException;
340
341
342
343
344
345
346
347
348 @WebMethod(operationName = "updateAgenda")
349 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true)
350 public void updateAgenda(@WebParam(name = "agendaDefinition") AgendaDefinition agendaDefinition) throws RiceIllegalArgumentException;
351
352
353
354
355
356
357
358 @WebMethod(operationName = "deleteAgenda")
359 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true)
360 public void deleteAgenda(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
361
362
363
364
365
366
367
368
369
370
371
372
373 @WebMethod(operationName = "createAgendaItem")
374 @WebResult(name = "agendaItem")
375 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true)
376 public AgendaItemDefinition createAgendaItem(@WebParam(name = "AgendaItemDefinition") AgendaItemDefinition agendaItemDefinition) throws RiceIllegalArgumentException;
377
378
379
380
381
382
383
384
385 @WebMethod(operationName = "getAgendaItem")
386 @WebResult(name = "agendaItem")
387 @Cacheable(value= AgendaItemDefinition.Cache.NAME, key="'id=' + #p0")
388 public AgendaItemDefinition getAgendaItem(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
389
390
391
392
393
394
395
396
397
398 @WebMethod(operationName = "getAgendaItemsByType")
399 @XmlElementWrapper(name = "agendaItems", required = true)
400 @XmlElement(name = "agendaItem", required = false)
401 @WebResult(name = "agendaItems")
402 @Cacheable(value= AgendaItemDefinition.Cache.NAME, key="'typeId=' + #p0")
403 public List<AgendaItemDefinition> getAgendaItemsByType(@WebParam(name = "typeId") String typeId) throws RiceIllegalArgumentException;
404
405
406
407
408
409
410
411
412
413 @WebMethod(operationName = "getAgendaItemsByContext")
414 @XmlElementWrapper(name = "agendaItems", required = true)
415 @XmlElement(name = "agendaItem", required = false)
416 @WebResult(name = "agendaItems")
417 @Cacheable(value= AgendaItemDefinition.Cache.NAME, key="'contextId=' + #p0")
418 public List<AgendaItemDefinition> getAgendaItemsByContext(@WebParam(name = "contextId") String contextId) throws RiceIllegalArgumentException;
419
420
421
422
423
424
425
426
427
428
429 @WebMethod(operationName = "getAgendaItemsByTypeAndContext")
430 @XmlElementWrapper(name = "agendaItems", required = true)
431 @XmlElement(name = "agendaItem", required = false)
432 @WebResult(name = "agendaItems")
433 @Cacheable(value= AgendaItemDefinition.Cache.NAME, key="'typeId=' + #p0 + '|' + 'contextId=' + #p1")
434 public List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(@WebParam(name = "typeId") String typeId,
435 @WebParam(name = "contextId") String contextId) throws RiceIllegalArgumentException;
436
437
438
439
440
441
442
443
444 @WebMethod(operationName = "updateAgendaItem")
445 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true, beforeInvocation = true)
446 public void updateAgendaItem(@WebParam(name = "agendaItemDefinition") AgendaItemDefinition agendaItemDefinition) throws RiceIllegalArgumentException;
447
448
449
450
451
452
453
454 @WebMethod(operationName = "deleteAgendaItem")
455 @CacheEvict(value={AgendaTreeDefinition.Cache.NAME, AgendaDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME, ContextDefinition.Cache.NAME}, allEntries = true)
456 public void deleteAgendaItem(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
457
458
459
460
461
462
463
464
465
466
467
468
469 @WebMethod(operationName = "createRule")
470 @WebResult(name = "rule")
471 @CacheEvict(value={RuleDefinition.Cache.NAME, PropositionDefinition.Cache.NAME, ActionDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME}, allEntries = true)
472 public RuleDefinition createRule(@WebParam(name = "ruleDefinition") RuleDefinition ruleDefinition) throws RiceIllegalArgumentException;
473
474
475
476
477
478
479
480
481
482
483
484
485 @WebMethod(operationName = "getRule")
486 @WebResult(name = "rule")
487 @Cacheable(value= RuleDefinition.Cache.NAME, key="'ruleId=' + #p0")
488 public RuleDefinition getRule(@WebParam(name = "ruleId") String ruleId);
489
490
491
492
493
494
495
496
497
498
499
500
501
502 @WebMethod(operationName = "getRuleByNameAndNamespace")
503 @WebResult(name = "rule")
504 @Cacheable(value= RuleDefinition.Cache.NAME, key="'name=' + #p0 + '|' + 'namespace=' + #p1")
505 public RuleDefinition getRuleByNameAndNamespace(@WebParam(name = "name") String name,
506 @WebParam(name = "namespace") String namespace);
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527 @WebMethod(operationName = "getRules")
528 @XmlElementWrapper(name = "rules", required = true)
529 @XmlElement(name = "rule", required = false)
530 @WebResult(name = "rules")
531 @Cacheable(value= RuleDefinition.Cache.NAME, key="'ruleIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0)")
532 public List<RuleDefinition> getRules(@WebParam(name = "ruleIds") List<String> ruleIds);
533
534
535
536
537
538
539
540
541 @WebMethod(operationName = "updateRule")
542 @CacheEvict(value={RuleDefinition.Cache.NAME, PropositionDefinition.Cache.NAME, ActionDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME}, allEntries = true)
543 public void updateRule(@WebParam(name = "ruleDefinition") RuleDefinition ruleDefinition) throws RiceIllegalArgumentException;
544
545
546
547
548
549
550
551 @WebMethod(operationName = "deleteRule")
552 @CacheEvict(value={RuleDefinition.Cache.NAME, PropositionDefinition.Cache.NAME, ActionDefinition.Cache.NAME, AgendaItemDefinition.Cache.NAME}, allEntries = true)
553 public void deleteRule(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
554
555
556
557
558
559
560
561
562
563
564
565
566 @WebMethod(operationName = "createAction")
567 @WebResult(name = "action")
568 @CacheEvict(value={ActionDefinition.Cache.NAME, RuleDefinition.Cache.NAME}, allEntries = true)
569 public ActionDefinition createAction(@WebParam(name = "actionDefinition") ActionDefinition actionDefinition) throws RiceIllegalArgumentException;
570
571
572
573
574
575
576
577
578
579
580
581
582 @WebMethod(operationName = "getAction")
583 @WebResult(name = "action")
584 @Cacheable(value= ActionDefinition.Cache.NAME, key="'actionId=' + #p0")
585 public ActionDefinition getAction(@WebParam(name = "actionId") String actionId) throws RiceIllegalArgumentException;
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603 @WebMethod(operationName = "getActions")
604 @XmlElementWrapper(name = "actions", required = true)
605 @XmlElement(name = "action", required = false)
606 @WebResult(name = "actions")
607 @Cacheable(value= ActionDefinition.Cache.NAME, key="'actionIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0)")
608 public List<ActionDefinition> getActions(@WebParam(name = "actionIds") List<String> actionIds) throws RiceIllegalArgumentException;
609
610
611
612
613
614
615
616
617
618 @WebMethod(operationName = "updateAction")
619 @CacheEvict(value={ActionDefinition.Cache.NAME, RuleDefinition.Cache.NAME}, allEntries = true)
620 public void updateAction(@WebParam(name = "actionDefinition") ActionDefinition actionDefinition) throws RiceIllegalArgumentException;
621
622
623
624
625
626
627
628 @WebMethod(operationName = "deleteAction")
629 @CacheEvict(value={ActionDefinition.Cache.NAME, RuleDefinition.Cache.NAME}, allEntries = true)
630 public void deleteAction(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
631
632
633
634
635
636
637
638
639
640
641
642
643
644 @WebMethod(operationName = "createProposition")
645 @WebResult(name = "proposition")
646 @CacheEvict(value={PropositionDefinition.Cache.NAME, RuleDefinition.Cache.NAME}, allEntries = true)
647 public PropositionDefinition createProposition(@WebParam(name = "propositionDefinition") PropositionDefinition propositionDefinition) throws RiceIllegalArgumentException;
648
649
650
651
652
653
654
655
656 @WebMethod(operationName = "getProposition")
657 @WebResult(name = "proposition")
658 @Cacheable(value= PropositionDefinition.Cache.NAME, key="'id=' + #p0")
659 public PropositionDefinition getProposition(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
660
661
662
663
664
665
666
667
668
669 @WebMethod(operationName = "getPropositionsByType")
670 @XmlElementWrapper(name = "propositions", required = true)
671 @XmlElement(name = "proposition", required = false)
672 @WebResult(name = "propositions")
673 @Cacheable(value= PropositionDefinition.Cache.NAME, key="'typeId=' + #p0")
674 public Set<PropositionDefinition> getPropositionsByType(@WebParam(name = "typeId") String typeId) throws RiceIllegalArgumentException;
675
676
677
678
679
680
681
682
683
684 @WebMethod(operationName = "getPropositionsByRule")
685 @XmlElementWrapper(name = "propositions", required = true)
686 @XmlElement(name = "proposition", required = false)
687 @WebResult(name = "propositions")
688 @Cacheable(value= PropositionDefinition.Cache.NAME, key="'ruleId=' + #p0")
689 public Set<PropositionDefinition> getPropositionsByRule(@WebParam(name = "ruleId") String ruleId) throws RiceIllegalArgumentException;
690
691
692
693
694
695
696
697
698 @WebMethod(operationName = "updateProposition")
699 @CacheEvict(value={PropositionDefinition.Cache.NAME, RuleDefinition.Cache.NAME}, allEntries = true)
700 public void updateProposition(
701 @WebParam(name = "propositionDefinition") PropositionDefinition propositionDefinition) throws RiceIllegalArgumentException;
702
703
704
705
706
707
708
709 @WebMethod(operationName = "deleteProposition")
710 @CacheEvict(value={PropositionDefinition.Cache.NAME, RuleDefinition.Cache.NAME}, allEntries = true)
711 public void deleteProposition(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
712
713
714
715
716
717
718
719
720
721
722
723
724 @WebMethod(operationName = "createNaturalLanguageUsage")
725 @WebResult(name = "naturalLanguageUsage")
726 @CacheEvict(value={NaturalLanguageUsage.Cache.NAME, NaturalLanguageTemplate.Cache.NAME}, allEntries = true)
727 public NaturalLanguageUsage createNaturalLanguageUsage(@WebParam(name = "naturalLanguageUsage") NaturalLanguageUsage naturalLanguageUsage) throws RiceIllegalArgumentException;
728
729
730
731
732
733
734
735
736 @WebMethod(operationName = "getNaturalLanguageUsage")
737 @WebResult(name = "naturalLanguageUsage")
738 @Cacheable(value= NaturalLanguageUsage.Cache.NAME, key="'id=' + #p0")
739 public NaturalLanguageUsage getNaturalLanguageUsage(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
740
741
742
743
744
745
746
747
748
749
750
751
752 @WebMethod(operationName = "getNaturalLanguageUsageByNameAndNamespace")
753 @WebResult(name = "naturalLanguageUsage")
754 @Cacheable(value= NaturalLanguageUsage.Cache.NAME, key="'name=' + #p0 + '|' + 'namespace=' + #p1")
755 public NaturalLanguageUsage getNaturalLanguageUsageByNameAndNamespace(@WebParam(name = "name") String name,
756 @WebParam(name = "namespace") String namespace)
757 throws RiceIllegalArgumentException;
758
759
760
761
762
763
764
765
766 @WebMethod(operationName = "updateNaturalLanguageUsage")
767 @CacheEvict(value={NaturalLanguageUsage.Cache.NAME, NaturalLanguageTemplate.Cache.NAME}, allEntries = true)
768 public void updateNaturalLanguageUsage(@WebParam(name = "naturalLanguageUsage") NaturalLanguageUsage naturalLanguageUsage) throws RiceIllegalArgumentException;
769
770
771
772
773
774
775
776 @WebMethod(operationName = "deleteNaturalLanguageUsage")
777 @CacheEvict(value={NaturalLanguageUsage.Cache.NAME, NaturalLanguageTemplate.Cache.NAME}, allEntries = true)
778 public void deleteNaturalLanguageUsage(@WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId) throws RiceIllegalArgumentException;
779
780
781
782
783
784
785
786
787 @WebMethod(operationName = "getNaturalLanguageUsagesByNamespace")
788 @XmlElementWrapper(name = "naturalLanguageUsages", required = true)
789 @XmlElement(name = "naturalLanguageUsage", required = false)
790 @WebResult(name = "naturalLanguageUsages")
791 @Cacheable(value= NaturalLanguageUsage.Cache.NAME, key="'namespace=' + #p0")
792 public List<NaturalLanguageUsage> getNaturalLanguageUsagesByNamespace(@WebParam(name = "namespace") String namespace)
793 throws RiceIllegalArgumentException;
794
795
796
797
798
799
800
801
802
803
804
805
806 @WebMethod(operationName = "createContext")
807 @WebResult(name = "context")
808 @CacheEvict(value={ContextDefinition.Cache.NAME}, allEntries = true)
809 public ContextDefinition createContext(@WebParam(name = "contextDefinition") ContextDefinition contextDefinition) throws RiceIllegalArgumentException;
810
811
812
813
814
815
816
817
818
819
820
821
822
823 @WebMethod(operationName = "findCreateContext")
824 @WebResult(name = "context")
825 @CacheEvict(value={ContextDefinition.Cache.NAME}, allEntries = true)
826 public ContextDefinition findCreateContext(@WebParam(name = "contextDefinition") ContextDefinition contextDefinition) throws RiceIllegalArgumentException;
827
828
829
830
831
832
833
834
835
836
837 @WebMethod(operationName = "updateContext")
838 @CacheEvict(value={ContextDefinition.Cache.NAME}, allEntries = true)
839 public void updateContext(@WebParam(name = "contextDefinition") ContextDefinition contextDefinition) throws RiceIllegalArgumentException;
840
841
842
843
844
845
846
847 @WebMethod(operationName = "deleteContext")
848 @CacheEvict(value={ContextDefinition.Cache.NAME}, allEntries = true)
849 public void deleteContext(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
850
851
852
853
854
855
856
857
858 @WebMethod(operationName = "getContext")
859 @WebResult(name = "context")
860 @Cacheable(value= ContextDefinition.Cache.NAME, key="'id=' + #p0")
861 public ContextDefinition getContext(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
862
863
864
865
866
867
868
869
870
871
872
873
874
875 @WebMethod(operationName = "getContextByNameAndNamespace")
876 @WebResult(name = "context")
877 @Cacheable(value= ContextDefinition.Cache.NAME, key="'name=' + #p0 + '|' + 'namespace=' + #p1")
878 public ContextDefinition getContextByNameAndNamespace(@WebParam(name = "name") String name,
879 @WebParam(name = "namespace") String namespace)
880 throws RiceIllegalArgumentException;
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896 @WebMethod(operationName = "createNaturalLanguageTemplate")
897 @WebResult(name = "naturalLanguageTemplate")
898 @CacheEvict(value={NaturalLanguageTemplate.Cache.NAME}, allEntries = true)
899 public NaturalLanguageTemplate createNaturalLanguageTemplate(@WebParam(name = "naturalLanguageTemplate") NaturalLanguageTemplate naturalLanguageTemplate)
900 throws RiceIllegalArgumentException;
901
902
903
904
905
906
907
908
909
910 @WebMethod(operationName = "getNaturalLanguageTemplate")
911 @WebResult(name = "naturalLanguageTemplate")
912 @Cacheable(value= NaturalLanguageTemplate.Cache.NAME, key="'naturalLanguageTemplateId=' + #p0")
913 public NaturalLanguageTemplate getNaturalLanguageTemplate(@WebParam(name = "naturalLanguageTemplateId") String naturalLanguageTemplateId)
914 throws RiceIllegalArgumentException;
915
916
917
918
919
920
921
922
923
924 @WebMethod(operationName = "updateNaturalLanguageTemplate")
925 @CacheEvict(value={NaturalLanguageTemplate.Cache.NAME}, allEntries = true)
926 public void updateNaturalLanguageTemplate(@WebParam(name = "naturalLanguageTemplate") NaturalLanguageTemplate naturalLanguageTemplate)
927 throws RiceIllegalArgumentException;
928
929
930
931
932
933
934
935
936 @WebMethod(operationName = "deleteNaturalLanguageTemplate")
937 @CacheEvict(value={NaturalLanguageTemplate.Cache.NAME}, allEntries = true)
938 public void deleteNaturalLanguageTemplate(@WebParam(name = "naturalLanguageTemplateId") String naturalLanguageTemplateId)
939 throws RiceIllegalArgumentException;
940
941
942
943
944
945
946
947 @WebMethod(operationName = "findNaturalLanguageTemplatesByLanguageCode")
948 @XmlElementWrapper(name = "naturalLangaugeTemplates", required = true)
949 @XmlElement(name = "naturalLangaugeTemplate", required = false)
950 @WebResult(name = "naturalLangaugeTemplates")
951 @Cacheable(value= NaturalLanguageTemplate.Cache.NAME, key="'languageCode=' + #p0")
952 public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByLanguageCode(@WebParam(name = "languageCode") String languageCode)
953 throws RiceIllegalArgumentException;
954
955 @WebMethod(operationName = "findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId")
956 @WebResult(name = "naturalLangaugeTemplate")
957 @Cacheable(value= NaturalLanguageTemplate.Cache.NAME, key="'languageCode=' + #p0 + '|' + 'typeId=' + #p1 + '|' + 'naturalLanguageUsageId=' + #p2")
958 public NaturalLanguageTemplate findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(@WebParam(name = "languageCode") String languageCode,
959 @WebParam(name = "typeId") String typeId,
960 @WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId)
961 throws RiceIllegalArgumentException;
962
963
964
965
966
967
968
969 @WebMethod(operationName = "findNaturalLanguageTemplatesByNaturalLanguageUsage")
970 @XmlElementWrapper(name = "naturalLangaugeTemplates", required = true)
971 @XmlElement(name = "naturalLangaugeTemplate", required = false)
972 @WebResult(name = "naturalLangaugeTemplates")
973 @Cacheable(value= NaturalLanguageTemplate.Cache.NAME, key="'naturalLanguageUsageId=' + #p0")
974 public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByNaturalLanguageUsage(@WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId)
975 throws RiceIllegalArgumentException;
976
977
978
979
980
981
982
983
984
985
986 @WebMethod(operationName = "findNaturalLanguageTemplatesByType")
987 @XmlElementWrapper(name = "naturalLangaugeTemplates", required = true)
988 @XmlElement(name = "naturalLangaugeTemplate", required = false)
989 @WebResult(name = "naturalLangaugeTemplates")
990 @Cacheable(value= NaturalLanguageTemplate.Cache.NAME, key="'typeId=' + #p0")
991 public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByType(@WebParam(name = "typeId") String typeId)
992 throws RiceIllegalArgumentException;
993
994
995
996
997
998
999
1000 @WebMethod(operationName = "findNaturalLanguageTemplatesByTemplate")
1001 @XmlElementWrapper(name = "naturalLangaugeTemplates", required = true)
1002 @XmlElement(name = "naturalLangaugeTemplate", required = false)
1003 @WebResult(name = "naturalLangaugeTemplates")
1004 @Cacheable(value= NaturalLanguageTemplate.Cache.NAME, key="'template=' + #p0")
1005 public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByTemplate(@WebParam(name = "template") String template)
1006 throws RiceIllegalArgumentException;
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026 @WebMethod(operationName = "translateNaturalLanguageForObject")
1027 @WebResult(name = "naturalLanguage")
1028 @Override
1029 public String translateNaturalLanguageForObject(@WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId,
1030 @WebParam(name = "typeId") String typeId, @WebParam(name = "krmsObjectId") String krmsObjectId,
1031 @WebParam(name = "languageCode") String languageCode) throws RiceIllegalArgumentException;
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048 @WebMethod(operationName = "translateNaturalLanguageForObjects")
1049 @WebResult(name = "naturalLanguages")
1050 public List<NaturalLanguage> translateNaturalLanguageForObjects(@WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId,
1051 @WebParam(name = "typeId") String typeId, @WebParam(name = "krmsObjectIds") List<String> krmsObjectIds,
1052 @WebParam(name = "languageCode") String languageCode) throws RiceIllegalArgumentException;
1053
1054
1055
1056
1057
1058
1059 @WebMethod(operationName = "translateNaturalLanguageForProposition")
1060 @WebResult(name = "naturalLanguage")
1061 @Override
1062 public String translateNaturalLanguageForProposition(@WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId,
1063 @WebParam(name = "propositionDefinintion") PropositionDefinition propositionDefinintion,
1064 @WebParam(name = "languageCode") String languageCode)
1065 throws RiceIllegalArgumentException;
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082 @WebMethod(operationName = "translateNaturalLanguageTreeForProposition")
1083 @WebResult(name = "naturalLanguageTree")
1084 @Override
1085 public NaturalLanguageTree translateNaturalLanguageTreeForProposition(@WebParam(name = "naturalLanguageUsageId") String naturalLanguageUsageId,
1086 @WebParam(name = "propositionDefinintion") PropositionDefinition propositionDefinintion,
1087 @WebParam(name = "languageCode") String languageCode)
1088 throws RiceIllegalArgumentException;
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103 @WebMethod(operationName = "findContextIds")
1104 @XmlElementWrapper(name = "contextIds", required = true)
1105 @XmlElement(name = "context", required = false)
1106 @WebResult(name = "contextIds")
1107 List<String> findContextIds(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121 @WebMethod(operationName = "findAgendaIds")
1122 @XmlElementWrapper(name = "contextIds", required = true)
1123 @XmlElement(name = "agenda", required = false)
1124 @WebResult(name = "agendaIds")
1125 List<String> findAgendaIds(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139 @WebMethod(operationName = "findRuleIds")
1140 @XmlElementWrapper(name = "ruleIds", required = true)
1141 @XmlElement(name = "rule", required = false)
1142 @WebResult(name = "ruleIds")
1143 List<String> findRuleIds(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157 @WebMethod(operationName = "findPropositionIds")
1158 @XmlElementWrapper(name = "propositionIds", required = true)
1159 @XmlElement(name = "proposition", required = false)
1160 @WebResult(name = "propositionIds")
1161 List<String> findPropositionIds(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175 @WebMethod(operationName = "findActionIds")
1176 @XmlElementWrapper(name = "actionIds", required = true)
1177 @XmlElement(name = "action", required = false)
1178 @WebResult(name = "actionIds")
1179 List<String> findActionIds(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199 @WebMethod(operationName = "selectContext")
1200 @WebResult(name = "contextDefinition")
1201 public ContextDefinition selectContext(@WebParam(name = "contextSelectionCriteria") ContextSelectionCriteria contextSelectionCriteria)
1202 throws RiceIllegalArgumentException;
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216 @WebMethod(operationName = "getAgendaTree")
1217 @WebResult(name = "agendaTree")
1218 @Cacheable(value= AgendaTreeDefinition.Cache.NAME, key="'agendaId=' + #p0")
1219 public AgendaTreeDefinition getAgendaTree(@WebParam(name = "agendaId") String agendaId)
1220 throws RiceIllegalArgumentException;
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243 @WebMethod(operationName = "getAgendaTrees")
1244 @XmlElementWrapper(name = "agendaTrees", required = true)
1245 @XmlElement(name = "agendaTree", required = false)
1246 @WebResult(name = "agendaTrees")
1247 @Cacheable(value= AgendaTreeDefinition.Cache.NAME, key="'agendaIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0)")
1248 public List<AgendaTreeDefinition> getAgendaTrees(@WebParam(name = "agendaIds") List<String> agendaIds)
1249 throws RiceIllegalArgumentException;
1250
1251
1252 }