Änderungen von Dokument 08 Schnittstelle ONYX Reporter

Zuletzt geändert von Carina Enke am 13.02.2024

Von Version 239.1
bearbeitet von Carina Enke
am 19.05.2020
Änderungskommentar: Mittels Scroll Versions veröffentlicht aus dem Bereich ONYXintern und Version 9.0.
Auf Version 398.1
bearbeitet von Carina Enke
am 13.02.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Titel
... ... @@ -1,1 +1,1 @@
1 -Schnittstelle ONYX Reporter
1 +10 Schnittstelle ONYX Reporter
Übergeordnete Seite
... ... @@ -1,0 +1,1 @@
1 +ONYX.Systeminformationen.WebHome
Inhalt
... ... @@ -1,102 +2,17 @@
1 -{{sv-translation language="de"}}
2 2  {{layout}}
3 -{{layout-section ac:type="single"}}
4 -{{layout-cell}}
5 -
6 -
7 -{{details}}
8 -(% class="wrapped" %)
9 -|=(((
10 -Verantwortlicher
11 -)))|(((
12 -\\
13 -)))
14 -|=(% colspan="1" %)(% colspan="1" %)
15 -(((
16 -Status
17 -)))|(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)
18 -(((
19 -(% class="content-wrapper" %)
20 -(((
21 -{{sv-metadata type="workflow-status"/}}
22 -
23 -{{status colour="Green" title="Fertig"/}}
24 -)))
25 -)))
26 -|=(% colspan="1" %)(% colspan="1" %)
27 -(((
28 -Varianten
29 -)))|(% colspan="1" %)(% colspan="1" %)
30 -(((
31 -(% class="content-wrapper" %)
32 -(((
33 -{{sv-metadata type="variants"/}}
34 -)))
35 -)))
36 -|=(% colspan="1" %)(% colspan="1" %)
37 -(((
38 -Attribute
39 -)))|(% colspan="1" %)(% colspan="1" %)
40 -(((
41 -(% class="content-wrapper" %)
42 -(((
43 -{{sv-metadata type="attributes"/}}
44 -)))
45 -)))
46 -|=(% colspan="1" %)(% colspan="1" %)
47 -(((
48 -Pagekey
49 -)))|(% colspan="1" %)(% colspan="1" %)
50 -(((
51 -(% class="content-wrapper" %)
52 -(((
53 -{{sv-metadata type="pagekey"/}}
54 -)))
55 -)))
56 -|=(% colspan="1" %)(% colspan="1" %)
57 -(((
58 -Übersetzung
59 -)))|(% colspan="1" %)(% colspan="1" %)
60 -(((
61 -(% class="content-wrapper" %)
62 -(((
63 - ONYX Reporter interface
64 -
65 -{{status colour="Green" title="Fertig"/}}
66 -)))
67 -)))
68 -|=(% colspan="1" %)(% colspan="1" %)
69 -(((
70 -TODOs
71 -)))|(% colspan="1" %)(% colspan="1" %)
72 -(((
73 -(% class="content-wrapper" %)
74 -(((
75 -(% class="task-list" %)
76 -(((
77 -{{task reference="/Tasks/Task_9" status="Done"}}
78 -carina {{mention reference="XWiki.0a49950f5c0f19a8015c101b60e10001" style="FULL_NAME" anchor="XWiki-0a49950f5c0f19a8015c101b60e10001-ysSwd"/}}: Übersetzung offen
79 -{{/task}}
80 -)))
81 -)))
82 -)))
83 -{{/details}}
84 -{{/layout-cell}}
85 -{{/layout-section}}
86 -
87 87  {{layout-section ac:type="two_right_sidebar"}}
88 88  {{layout-cell}}
89 -\\
4 +
90 90  {{/layout-cell}}
91 91  
92 92  {{layout-cell}}
93 -{{scroll-ignore}}
94 94  {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}}
9 +{{toc start="2"/}}
95 95  
11 + **Weitere Informationen:**
96 96  
97 -{{toc/}}
13 +* [[Schnittstelle ONYX Player>>doc:ONYX.Systeminformationen.Schnittstelle ONYX Player.WebHome]]
98 98  {{/panel}}
99 -{{/scroll-ignore}}
100 100  {{/layout-cell}}
101 101  {{/layout-section}}
102 102  
... ... @@ -278,7 +278,6 @@
278 278  
279 279  == Abmeldung durch LMS ==
280 280  
281 -\\
282 282  
283 283  {{code}}
284 284  @WebMethod(operationName = „disarmSite")
... ... @@ -290,7 +290,6 @@
290 290  }
291 291  {{/code}}
292 292  
293 -\\
294 294  
295 295  === Parameter disarmSite ===
296 296  
... ... @@ -428,377 +428,27 @@
428 428  
429 429  HashMapWrapper.java:
430 430  
431 -[[image:attach:HashMapWrapperjava.png]]
344 +[[image:attach:HashMapWrapperjava.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
432 432  
433 -[[image:attach:HashMapWrapperjava2.png]]
346 +[[image:attach:HashMapWrapperjava2.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
434 434  
435 435  === Wrapper für die ArrayList<ResultsForStudent> ===
436 436  
437 437  ResultsForStudentsWrapper.java:
438 438  
439 -[[image:attach:ResultsForStudentsWrapperjava.png]]
352 +[[image:attach:ResultsForStudentsWrapperjava.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
440 440  {{/layout-cell}}
441 441  {{/layout-section}}
442 442  
443 443  {{layout-section ac:type="two_right_sidebar"}}
444 444  {{layout-cell}}
445 -\\
358 +
446 446  {{/layout-cell}}
447 447  
448 448  {{layout-cell}}
449 449  ====== relevante Links: ======
450 450  
451 -* [[doc:ONYX Player Interface]]
364 +* [[ONYX Player Interface>>doc:ONYX.Systeminformationen.Schnittstelle ONYX Player.WebHome]]
452 452  {{/layout-cell}}
453 453  {{/layout-section}}
454 454  {{/layout}}
455 -{{/sv-translation}}
456 -
457 -{{sv-translation language="en"}}
458 -{{layout}}
459 -{{layout-section ac:type="two_equal"}}
460 -{{layout-cell}}
461 -====== Content: ======
462 -
463 -
464 -
465 -{{toc maxLevel="5" outline="true" absoluteUrl="true" style="square"/}}
466 -{{/layout-cell}}
467 -
468 -{{layout-cell}}
469 -
470 -{{/layout-cell}}
471 -{{/layout-section}}
472 -
473 -{{layout-section ac:type="single"}}
474 -{{layout-cell}}
475 -== General information ==
476 -
477 -The API to the ONYX WebReporter enables the communication between the LMS and the Reporter. Therefore, a couple of commands will be executed:
478 -
479 -|(((
480 -armSite
481 -)))|(((
482 -Registration of sequence requests at the ONYX Reporter
483 -)))
484 -|(((
485 -initiateSite
486 -)))|(((
487 -Initiates the Reporter session (transmission of the CP).
488 -)))
489 -|(((
490 -disarmSite
491 -)))|(((
492 -Release of all Reporter resources for this session.
493 -)))
494 -|(((
495 -getResultValues
496 -)))|(((
497 -Returns all (requested) results for the test. Condition: There is only one student in the list transmitted with initiateSite.
498 -)))
499 -|(% colspan="1" %)(% colspan="1" %)
500 -(((
501 -getResultVariables
502 -)))|(% colspan="1" %)(% colspan="1" %)
503 -(((
504 -Returns all (requested) outcome variables for the test. No armSite, initiateSite, or disarmSite is required.
505 -)))
506 -
507 -== Login through the LMS ==
508 -
509 -{{code language="xml" title="Login through the LMS"}}
510 -@WebMethod(operationName = „armSite")
511 -public String armSite(
512 -@WebParam(name = „version") final Integer version,
513 -@WebParam(name = „userId") final String userId,
514 -@WebParam(name = „optionalRole") final Integer role,
515 -@WebParam(name = „secretToShare") final String secretToShare,
516 -@WebParam(name = „optionalUserLastName") final String userLastName,
517 -@WebParam(name = „optionalUserFirstName") final String userFirstName,
518 -@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) {
519 -}
520 -{{/code}}
521 -
522 -=== Parameter armSite ===
523 -
524 -|(((
525 -version
526 -)))|(((
527 -Requested version: 1
528 -)))
529 -|(((
530 -userId
531 -)))|(((
532 -UserId of the requested Reporter user
533 -)))
534 -|(((
535 -optionalRole
536 -)))|(((
537 -Optional. User role. 0 = student, 1 = tutor
538 -)))
539 -|(((
540 -secretToShare
541 -)))|(((
542 -A secret string that allows the server and client to encrypt their communication. Must remain the same for any further communication.
543 -)))
544 -|(((
545 -optionalUserLastName
546 -)))|(((
547 -Optional. Last name of the user.
548 -)))
549 -|(% colspan="1" %)(% colspan="1" %)
550 -(((
551 -optionalUserFirstName
552 -)))|(% colspan="1" %)(% colspan="1" %)
553 -(((
554 -Optional. First name of the user.
555 -)))
556 -|(% colspan="1" %)(% colspan="1" %)
557 -(((
558 -additionalParams
559 -)))|(% colspan="1" %)(% colspan="1" %)
560 -(((
561 -Reserved for future use.
562 -)))
563 -
564 -=== ReturnValue armSite ===
565 -
566 -|(((
567 -String
568 -)))|(((
569 -Session ID which has to be used to mark any other Reporter call.
570 -)))
571 -
572 -== Initialisation through LMS ==
573 -
574 -{{code language="xml" title="Initialisation through LMS"}}
575 -@WebMethod(operationName = „initiateSite")
576 -public String initiateSite(
577 -@WebParam(name = „version") final Integer version,
578 -@WebParam(name = „sessionId") final String sessionId,
579 -@WebParam(name = „secretToShare") final String secretToShare,
580 -@WebParam(name = „students") final ArrayList<ResultsForStudent> students,
581 -@WebParam(name = „optionalContentPackage") final byte[] contentPackage,
582 -@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) {
583 -}
584 -{{/code}}
585 -
586 -=== Parameter initiateSite ===
587 -
588 -|(((
589 -version
590 -)))|(((
591 -Requested version: 1
592 -)))
593 -|(% colspan="1" %)(% colspan="1" %)
594 -(((
595 -sessionId
596 -)))|(% colspan="1" %)(% colspan="1" %)
597 -(((
598 -SessionId, as returned by armSite.
599 -)))
600 -|(((
601 -secretToShare
602 -)))|(((
603 -A secret string that allows the server and client to encrypt their communication. Must remain the same for any further communication.
604 -)))
605 -|(((
606 -students
607 -)))|(((
608 -List of students and their results. See below.
609 -)))
610 -|(((
611 -optionalContentPackage
612 -)))|(((
613 -Optional. Content package (zipped) as byte array.
614 -)))
615 -|(((
616 -additionalParams
617 -)))|(((
618 -Reserved for future use.
619 -)))
620 -
621 -=== ReturnValue initiateSite ===
622 -
623 -|(((
624 -String
625 -)))|(((
626 -Absolute URL of the Reporter site for the IFrame. The URL has to be amended by the LMS with the following URL parameters:
627 -
628 -* sid: Session ID, as returned by armSite
629 -* (((
630 -uid: Student ID, as registrated in the initiateSite at the ONYX Reporter
631 -)))
632 -)))
633 -
634 -{{code language="xml"}}
635 -public class ResultsForStudent {
636 -   private String studentId = „";
637 -   private String firstname = „";
638 -   private String lastname = „";
639 -   private String groupname = „";
640 -   private String tutorname = „";
641 -   private File contentFile = null;
642 -   private byte[] resultsFile = null;
643 -}
644 -{{/code}}
645 -
646 -== Logout through the LMS ==
647 -
648 -
649 -
650 -{{code}}
651 -@WebMethod(operationName = „disarmSite")
652 -public Boolean disarmSite(
653 -@WebParam(name = „version") final Integer version,
654 -@WebParam(name = „sessionId") final String sessionId,
655 -@WebParam(name = „secretToShare") final String secretToShare,
656 -@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) {
657 -}
658 -{{/code}}
659 -
660 -
661 -
662 -=== Parameter disarmSite ===
663 -
664 -|(((
665 -version
666 -)))|(((
667 -Requested version: 1
668 -)))
669 -|(% colspan="1" %)(% colspan="1" %)
670 -(((
671 -sessionId
672 -)))|(% colspan="1" %)(% colspan="1" %)
673 -(((
674 -SessionId, as returned by armSite.
675 -)))
676 -|(((
677 -secretToShare
678 -)))|(((
679 -A secret string that allows the server and client to encrypt their communication. Must remain the same for any further communication.
680 -)))
681 -|(((
682 -additionalParams
683 -)))|(((
684 -Reserved for future use.
685 -)))
686 -
687 -=== ReturnValue disarmSite ===
688 -
689 -|(((
690 -Boolean
691 -)))|(((
692 -True in the case of success, otherwise false.
693 -)))
694 -
695 -== Request of learner results through the LMS ==
696 -
697 -{{code language="xml" title="Request of learner results through the LMS"}}
698 - @WebMethod(operationName = „getResultValues")
699 -public HashMapWrapper getResultValues(
700 - @WebParam(name = „version") final Integer version,
701 - @WebParam(name = „sessionId") final String sessionId,
702 - @WebParam(name = „secretToShare") final String secretToShare,
703 - @WebParam(name = „requestedValues") final HashMap<String, String>
704 - requestedValues,
705 - @WebParam(name = „additionalParams") final HashMapWrapper additionalParams) {
706 -}
707 -{{/code}}
708 -
709 -=== Parameter getResultValues ===
710 -
711 -|(((
712 -version
713 -)))|(((
714 -Requested version: 1
715 -)))
716 -|(% colspan="1" %)(% colspan="1" %)
717 -(((
718 -sessionId
719 -)))|(% colspan="1" %)(% colspan="1" %)
720 -(((
721 -SessionId, as returned by armSite.
722 -)))
723 -|(((
724 -secretToShare
725 -)))|(((
726 -A secret string that allows the server and client to encrypt their communication. Must remain the same for any further communication.
727 -)))
728 -|(((
729 -requestedValues
730 -)))|(((
731 -Can be empty, in which case all result variables are returned. If keys are included, only the keys will be returned.
732 -)))
733 -|(((
734 -additionalParams
735 -)))|(((
736 -Reserved for future use.
737 -)))
738 -
739 -=== ReturnValue getResultValues ===
740 -
741 -|(((
742 -HashMap<String, String>
743 -)))|(((
744 -Map of result variables, key is the variable name, value is the respective variable's value (HashMap is wrapped)
745 -)))
746 -
747 -== Request of result variables through the LMS ==
748 -
749 -{{code language="xml" title="Request of result variables through the LMS"}}
750 - @WebMethod(operationName = „getResultVariables")
751 -public HashMapWrapper getResultVariables(
752 -@WebParam(name = „version") final Integer version,
753 -@WebParam(name = „contentPackage") final byte[] contentPackage,
754 -@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) {
755 -}
756 -{{/code}}
757 -
758 -=== Parameter getResultVariables ===
759 -
760 -|(((
761 -version
762 -)))|(((
763 -Requested version: 1
764 -)))
765 -|(((
766 -contentPackage
767 -)))|(((
768 -Content package (zipped) as byte array.
769 -)))
770 -|(((
771 -additionalParams
772 -)))|(((
773 -Reserved for future use.
774 -)))
775 -
776 -=== ReturnValue getResultVariables ===
777 -
778 -|(((
779 -HashMap<String, String>
780 -)))|(((
781 -Map of result variables, key is the variable name, value is the respective variable's value (HashMap is wrapped)
782 -)))
783 -
784 -== Wrapper ==
785 -
786 -Since the transmission of maps and lists via JAX-WS can cause problems, they have to be wrapped.
787 -
788 -=== Wrapper for HashMap<String, String> ===
789 -
790 -HashMapWrapper.java:
791 -
792 -[[image:attach:HashMapWrapperjava.png]]
793 -
794 -[[image:attach:HashMapWrapperjava2.png]]
795 -
796 -=== Wrapper for the ArrayList<ResultsForStudent> ===
797 -
798 -ResultsForStudentsWrapper.java:
799 -
800 -[[image:attach:ResultsForStudentsWrapperjava.png]]
801 -{{/layout-cell}}
802 -{{/layout-section}}
803 -{{/layout}}
804 -{{/sv-translation}}
HashMapWrapperjava.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Größe
... ... @@ -1,0 +1,1 @@
1 +135.3 KB
Inhalt
HashMapWrapperjava2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Größe
... ... @@ -1,0 +1,1 @@
1 +187.3 KB
Inhalt
ResultsForStudentsWrapperjava.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Größe
... ... @@ -1,0 +1,1 @@
1 +83.3 KB
Inhalt
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -337413507
1 +3342390
url
... ... @@ -1,1 +1,1 @@
1 -https://www.bps-system.de/help/display/SOV/wiki/spaces/ONYX/pages/337413507/Schnittstelle ONYX Reporter
1 +https://www.bps-system.de/help/display/SOV/wiki/spaces/ONYX/pages/3342390/Schnittstelle ONYX Reporter