Änderungen von Dokument 08 Schnittstelle ONYX Reporter
Zuletzt geändert von Carina Enke am 13.02.2024
Von Version 397.1
bearbeitet von Carina Enke
am 13.02.2024
am 13.02.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Auf Version 322.1
bearbeitet von Carina Enke
am 30.04.2018
am 30.04.2018
Änderungskommentar:
Mittels Scroll Versions veröffentlicht aus dem Bereich ONYXintern und Version 1.11.1.
Zusammenfassung
-
Seiteneigenschaften (3 geändert, 0 hinzugefügt, 0 gelöscht)
-
Anhänge (0 geändert, 0 hinzugefügt, 3 gelöscht)
-
Objekte (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Titel
-
... ... @@ -1,1 +1,1 @@ 1 - 10Schnittstelle ONYX Reporter1 +Schnittstelle ONYX Reporter - Übergeordnete Seite
-
... ... @@ -1,1 +1,0 @@ 1 -ONYX.Systeminformationen.WebHome - Inhalt
-
... ... @@ -1,13 +1,20 @@ 1 +{{sv-translation language="de"}} 1 1 {{layout}} 3 +{{layout-section ac:type="single"}} 4 +{{layout-cell}}{{/layout-cell}} 5 +{{/layout-section}} 6 + 2 2 {{layout-section ac:type="two_right_sidebar"}} 3 3 {{layout-cell}} 4 - 9 +====== Inhalt: ====== 10 + 11 + 12 + 13 +{{toc maxLevel="5" outline="true" absoluteUrl="true" style="square"/}} 5 5 {{/layout-cell}} 6 6 7 7 {{layout-cell}} 8 -{{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}} 9 -{{toc start="2"/}} 10 -{{/panel}} 17 + 11 11 {{/layout-cell}} 12 12 {{/layout-section}} 13 13 ... ... @@ -17,7 +17,6 @@ 17 17 18 18 Über die Schnittstelle zum ONYX WebReporter erfolgt jede Kommunikation zwischen dem LMS und dem Reporter. Dazu erfolgt eine Reihe von Aufrufen: 19 19 20 -(% class="wrapped" %) 21 21 |((( 22 22 armSite 23 23 )))|((( ... ... @@ -63,7 +63,6 @@ 63 63 64 64 === Parameter armSite === 65 65 66 -(% class="wrapped" %) 67 67 |((( 68 68 version 69 69 )))|((( ... ... @@ -106,7 +106,6 @@ 106 106 107 107 === ReturnValue armSite === 108 108 109 -(% class="wrapped" %) 110 110 |((( 111 111 String 112 112 )))|((( ... ... @@ -129,7 +129,6 @@ 129 129 130 130 === Parameter initiateSite === 131 131 132 -(% class="wrapped" %) 133 133 |((( 134 134 version 135 135 )))|((( ... ... @@ -165,7 +165,6 @@ 165 165 166 166 === ReturnValue initiateSite === 167 167 168 -(% class="wrapped" %) 169 169 |((( 170 170 String 171 171 )))|((( ... ... @@ -189,6 +189,7 @@ 189 189 190 190 == Abmeldung durch LMS == 191 191 194 + 192 192 193 193 {{code}} 194 194 @WebMethod(operationName = „disarmSite") ... ... @@ -200,10 +200,10 @@ 200 200 } 201 201 {{/code}} 202 202 206 + 203 203 204 204 === Parameter disarmSite === 205 205 206 -(% class="wrapped" %) 207 207 |((( 208 208 version 209 209 )))|((( ... ... @@ -229,7 +229,6 @@ 229 229 230 230 === ReturnValue disarmSite === 231 231 232 -(% class="wrapped" %) 233 233 |((( 234 234 Boolean 235 235 )))|((( ... ... @@ -252,7 +252,6 @@ 252 252 253 253 === Parameter getResultValues === 254 254 255 -(% class="wrapped" %) 256 256 |((( 257 257 version 258 258 )))|((( ... ... @@ -283,7 +283,6 @@ 283 283 284 284 === ReturnValue getResultValues === 285 285 286 -(% class="wrapped" %) 287 287 |((( 288 288 HashMap<String, String> 289 289 )))|((( ... ... @@ -303,7 +303,6 @@ 303 303 304 304 === Parameter getResultVariables === 305 305 306 -(% class="wrapped" %) 307 307 |((( 308 308 version 309 309 )))|((( ... ... @@ -322,7 +322,6 @@ 322 322 323 323 === ReturnValue getResultVariables === 324 324 325 -(% class="wrapped" %) 326 326 |((( 327 327 HashMap<String, String> 328 328 )))|((( ... ... @@ -337,15 +337,15 @@ 337 337 338 338 HashMapWrapper.java: 339 339 340 -[[image:attach:HashMapWrapperjava.png ||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]338 +[[image:attach:HashMapWrapperjava.png]] 341 341 342 -[[image:attach:HashMapWrapperjava2.png ||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]340 +[[image:attach:HashMapWrapperjava2.png]] 343 343 344 344 === Wrapper für die ArrayList<ResultsForStudent> === 345 345 346 346 ResultsForStudentsWrapper.java: 347 347 348 -[[image:attach:ResultsForStudentsWrapperjava.png ||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]346 +[[image:attach:ResultsForStudentsWrapperjava.png]] 349 349 {{/layout-cell}} 350 350 {{/layout-section}} 351 351 ... ... @@ -357,7 +357,358 @@ 357 357 {{layout-cell}} 358 358 ====== relevante Links: ====== 359 359 360 -* [[ONYX Player Interface >>doc:ONYX.Systeminformationen.Schnittstelle ONYX Player.WebHome]]358 +* [[doc:ONYX Player Interface]] 361 361 {{/layout-cell}} 362 362 {{/layout-section}} 363 363 {{/layout}} 362 +{{/sv-translation}} 363 + 364 +{{sv-translation language="en"}} 365 +{{layout}} 366 +{{layout-section ac:type="two_equal"}} 367 +{{layout-cell}} 368 +====== Content: ====== 369 + 370 + 371 + 372 +{{toc maxLevel="5" outline="true" absoluteUrl="true" style="square"/}} 373 +{{/layout-cell}} 374 + 375 +{{layout-cell}} 376 + 377 +{{/layout-cell}} 378 +{{/layout-section}} 379 + 380 +{{layout-section ac:type="single"}} 381 +{{layout-cell}} 382 +== General == 383 + 384 +The API to the ONYX WebReporter enables the communication between the LMS and the reporter. Therefore, a couple of commands will be executed: 385 + 386 +|((( 387 +armSite 388 +)))|((( 389 +Registration of sequence requests at the ONYX reporter 390 +))) 391 +|((( 392 +initiateSite 393 +)))|((( 394 +Initiates the reporter session (transmission of the CP). 395 +))) 396 +|((( 397 +disarmSite 398 +)))|((( 399 +Release of all reporter resources for this session. 400 +))) 401 +|((( 402 +getResultValues 403 +)))|((( 404 +Returns all or all requested results for the test. Condition: there is exactly one student in list transmitted in the initiateSite. 405 +))) 406 +|(% colspan="1" %)(% colspan="1" %) 407 +((( 408 +getResultVariables 409 +)))|(% colspan="1" %)(% colspan="1" %) 410 +((( 411 +Returns all or all requested outcome variables for the test. No armSite, initiateSite or disarmSite is necessary. 412 +))) 413 + 414 +== Connection to the LMS == 415 + 416 +{{code language="xml" title="Anmeldung des LMS"}} 417 +@WebMethod(operationName = „armSite") 418 +public String armSite( 419 +@WebParam(name = „version") final Integer version, 420 +@WebParam(name = „userId") final String userId, 421 +@WebParam(name = „optionalRole") final Integer role, 422 +@WebParam(name = „secretToShare") final String secretToShare, 423 +@WebParam(name = „optionalUserLastName") final String userLastName, 424 +@WebParam(name = „optionalUserFirstName") final String userFirstName, 425 +@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) { 426 +} 427 +{{/code}} 428 + 429 +=== Parameter armSite === 430 + 431 +|((( 432 +version 433 +)))|((( 434 +Requested version: 1 435 +))) 436 +|((( 437 +userId 438 +)))|((( 439 +UserId of the requested reporter user 440 +))) 441 +|((( 442 +optionalRole 443 +)))|((( 444 +Optional. User role. 0=student, 1=tutor 445 +))) 446 +|((( 447 +secretToShare 448 +)))|((( 449 +Shared secret. Has to remain identical for every communication. 450 +))) 451 +|((( 452 +optionalUserLastName 453 +)))|((( 454 +Optional. User lastname. 455 +))) 456 +|(% colspan="1" %)(% colspan="1" %) 457 +((( 458 +optionalUserFirstName 459 +)))|(% colspan="1" %)(% colspan="1" %) 460 +((( 461 +Optional. User firstname. 462 +))) 463 +|(% colspan="1" %)(% colspan="1" %) 464 +((( 465 +additionalParams 466 +)))|(% colspan="1" %)(% colspan="1" %) 467 +((( 468 +Reserved for future use. 469 +))) 470 + 471 +=== ReturnValue armSite === 472 + 473 +|((( 474 +String 475 +)))|((( 476 +Session ID that has to be used to mark any further reporter call. 477 +))) 478 + 479 +== Initialisation through LMS == 480 + 481 +{{code language="xml" title="Initialisierung durch LMS"}} 482 +@WebMethod(operationName = „initiateSite") 483 +public String initiateSite( 484 +@WebParam(name = „version") final Integer version, 485 +@WebParam(name = „sessionId") final String sessionId, 486 +@WebParam(name = „secretToShare") final String secretToShare, 487 +@WebParam(name = „students") final ArrayList<ResultsForStudent> students, 488 +@WebParam(name = „optionalContentPackage") final byte[] contentPackage, 489 +@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) { 490 +} 491 +{{/code}} 492 + 493 +=== Parameter initiateSite === 494 + 495 +|((( 496 +version 497 +)))|((( 498 +Requested version: 1 499 +))) 500 +|(% colspan="1" %)(% colspan="1" %) 501 +((( 502 +sessionId 503 +)))|(% colspan="1" %)(% colspan="1" %) 504 +((( 505 +SessionId, as returned by armSite. 506 +))) 507 +|((( 508 +secretToShare 509 +)))|((( 510 +Shared secret. Has to remain identical at every communication. 511 +))) 512 +|((( 513 +students 514 +)))|((( 515 +List of students with their results. See below. 516 +))) 517 +|((( 518 +optionalContentPackage 519 +)))|((( 520 +Optional. Content Package (zipped) as byte array. 521 +))) 522 +|((( 523 +additionalParams 524 +)))|((( 525 +Reserved for future use. 526 +))) 527 + 528 +=== ReturnValue initiateSite === 529 + 530 +|((( 531 +String 532 +)))|((( 533 +Absolute URL of the reporter site for the frame. It has to be enriched by the LMS with the following URLparameters: 534 + 535 +* sid: Session ID as returned by armSite 536 +* ((( 537 +uid: Student ID as registrated in the initiateSite at the ONYX Reporter. 538 +))) 539 +))) 540 + 541 +{{code language="xml"}} 542 +public class ResultsForStudent { 543 + private String studentId = „"; 544 + private String firstname = „"; 545 + private String lastname = „"; 546 + private String groupname = „"; 547 + private String tutorname = „"; 548 + private File contentFile = null; 549 + private byte[] resultsFile = null; 550 +} 551 +{{/code}} 552 + 553 +== Deconnection through the LMS == 554 + 555 + 556 + 557 +{{code}} 558 +@WebMethod(operationName = „disarmSite") 559 +public Boolean disarmSite( 560 +@WebParam(name = „version") final Integer version, 561 +@WebParam(name = „sessionId") final String sessionId, 562 +@WebParam(name = „secretToShare") final String secretToShare, 563 +@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) { 564 +} 565 +{{/code}} 566 + 567 + 568 + 569 +=== Parameter disarmSite === 570 + 571 +|((( 572 +version 573 +)))|((( 574 +Requested version: 1 575 +))) 576 +|(% colspan="1" %)(% colspan="1" %) 577 +((( 578 +sessionId 579 +)))|(% colspan="1" %)(% colspan="1" %) 580 +((( 581 +SessionId, as returned by armSite. 582 +))) 583 +|((( 584 +secretToShare 585 +)))|((( 586 +Shared secret. Has to remain identical at every communication. 587 +))) 588 +|((( 589 +additionalParams 590 +)))|((( 591 +Reserved for future use. 592 +))) 593 + 594 +=== ReturnValue disarmSite === 595 + 596 +|((( 597 +Boolean 598 +)))|((( 599 +True if successful, otherwise false. 600 +))) 601 + 602 +== Request of learning results through the LMS == 603 + 604 +{{code language="xml" title="Abfrage von Lernerresultaten durch LMS"}} 605 + @WebMethod(operationName = „getResultValues") 606 +public HashMapWrapper getResultValues( 607 + @WebParam(name = „version") final Integer version, 608 + @WebParam(name = „sessionId") final String sessionId, 609 + @WebParam(name = „secretToShare") final String secretToShare, 610 + @WebParam(name = „requestedValues") final HashMap<String, String> 611 + requestedValues, 612 + @WebParam(name = „additionalParams") final HashMapWrapper additionalParams) { 613 +} 614 +{{/code}} 615 + 616 +=== Parameter getResultValues === 617 + 618 +|((( 619 +version 620 +)))|((( 621 +Requested version: 1 622 +))) 623 +|(% colspan="1" %)(% colspan="1" %) 624 +((( 625 +sessionId 626 +)))|(% colspan="1" %)(% colspan="1" %) 627 +((( 628 +SessionId, as returned by armSite. 629 +))) 630 +|((( 631 +secretToShare 632 +)))|((( 633 +Shared secret. Has to remain identical at every communication. 634 +))) 635 +|((( 636 +requestedValues 637 +)))|((( 638 +Can be empty, thus all result variables will be returned. If it contains keys, only those will be returned. 639 +))) 640 +|((( 641 +additionalParams 642 +)))|((( 643 +Reserved for future use. 644 +))) 645 + 646 +=== ReturnValue getResultValues === 647 + 648 +|((( 649 +HashMap<String, String> 650 +)))|((( 651 +Map of result variables, key is the variable name, value the corresponding value (HashMap is wrapped) 652 +))) 653 + 654 +== Request of result variables through the LMS == 655 + 656 +{{code language="xml" title="Abfrage von Ergebnisvariablen durch LMS"}} 657 + @WebMethod(operationName = „getResultVariables") 658 +public HashMapWrapper getResultVariables( 659 +@WebParam(name = „version") final Integer version, 660 +@WebParam(name = „contentPackage") final byte[] contentPackage, 661 +@WebParam(name = „additionalParams") final HashMapWrapper additionalParams) { 662 +} 663 +{{/code}} 664 + 665 +=== Parameter getResultVariables === 666 + 667 +|((( 668 +version 669 +)))|((( 670 +Requested version: 1 671 +))) 672 +|((( 673 +contentPackage 674 +)))|((( 675 +Content package (zipped) as byte array. 676 +))) 677 +|((( 678 +additionalParams 679 +)))|((( 680 +Reserved for future use. 681 +))) 682 + 683 +=== ReturnValue getResultVariables === 684 + 685 +|((( 686 +HashMap<String, String> 687 +)))|((( 688 +Map of result variables, key is the variable name, value the corresponding 689 +value (HashMap is wrapped). 690 +))) 691 + 692 +== Wrapper == 693 + 694 +As the transmission of maps and lists generate problems via JAX-WS (lists filled by the customer are sent without any data and thus reach the server without data) they have to be wrapped. 695 + 696 +=== Wrapper for HashMap<String, String> === 697 + 698 +HashMapWrapper.java: 699 + 700 +[[image:attach:HashMapWrapperjava.png]] 701 + 702 +[[image:attach:HashMapWrapperjava2.png]] 703 + 704 +=== Wrapper for the ArrayList<ResultsForStudent> === 705 + 706 +ResultsForStudentsWrapper.java: 707 + 708 +[[image:attach:ResultsForStudentsWrapperjava.png]] 709 +{{/layout-cell}} 710 +{{/layout-section}} 711 +{{/layout}} 712 +{{/sv-translation}}
- HashMapWrapperjava.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Größe
-
... ... @@ -1,1 +1,0 @@ 1 -135.3 KB - Inhalt
- HashMapWrapperjava2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Größe
-
... ... @@ -1,1 +1,0 @@ 1 -187.3 KB - Inhalt
- ResultsForStudentsWrapperjava.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Größe
-
... ... @@ -1,1 +1,0 @@ 1 -83.3 KB - Inhalt
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 - 33423901 +162496745 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://www.bps-system.de/help/display/SOV/wiki/spaces/ONYX/pages/ 3342390/Schnittstelle ONYX Reporter1 +https://www.bps-system.de/help/display/SOV/wiki/spaces/ONYX/pages/162496745/Schnittstelle ONYX Reporter