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