@@ -279,16 +279,17 @@ protected void onUpdate(final AjaxRequestTarget target) {
279
279
add (extraCredit );
280
280
281
281
final WebMarkupContainer sakaiRubricAssociation = new WebMarkupContainer ("sakai-rubric-association" );
282
- sakaiRubricAssociation .add (AttributeModifier .append ("dont-associate-label" , new ResourceModel ("rubrics.dont_associate_label" )));
283
- sakaiRubricAssociation .add (AttributeModifier .append ("dont-associate-value" , "0" ));
284
- sakaiRubricAssociation .add (AttributeModifier .append ("associate-label" , new ResourceModel ("rubrics.associate_label" )));
285
- sakaiRubricAssociation .add (AttributeModifier .append ("associate-value" , "1" ));
286
- sakaiRubricAssociation .add (AttributeModifier .append ("config-fine-tune-points" , new ResourceModel ("rubrics.option_pointsoverride" )));
287
- sakaiRubricAssociation .add (AttributeModifier .append ("config-hide-student-preview" , new ResourceModel ("rubrics.option_studentpreview" )));
288
- sakaiRubricAssociation .add (AttributeModifier .append ("tool-id" , RubricsConstants .RBCS_TOOL_GRADEBOOKNG ));
289
-
290
- if (assignment .getId () != null ) {
291
- sakaiRubricAssociation .add (AttributeModifier .append ("entity-id" , assignment .getId ()));
282
+ sakaiRubricAssociation .add (AttributeModifier .append ("dontAssociateLabel" , new ResourceModel ("rubrics.dont_associate_label" )));
283
+ sakaiRubricAssociation .add (AttributeModifier .append ("dontAssociateValue" , "0" ));
284
+ sakaiRubricAssociation .add (AttributeModifier .append ("associateLabel" , new ResourceModel ("rubrics.associate_label" )));
285
+ sakaiRubricAssociation .add (AttributeModifier .append ("associateValue" , "1" ));
286
+ sakaiRubricAssociation .add (AttributeModifier .append ("fineTunePoints" , new ResourceModel ("rubrics.option_pointsoverride" )));
287
+ sakaiRubricAssociation .add (AttributeModifier .append ("hideStudentPreview" , new ResourceModel ("rubrics.option_studentpreview" )));
288
+ sakaiRubricAssociation .add (AttributeModifier .append ("toolId" , RubricsConstants .RBCS_TOOL_GRADEBOOKNG ));
289
+ sakaiRubricAssociation .add (AttributeModifier .append ("token" , rubricsService .generateJsonWebToken (RubricsConstants .RBCS_TOOL_GRADEBOOKNG )));
290
+
291
+ if (assignment .getId () != null ) {
292
+ sakaiRubricAssociation .add (AttributeModifier .append ("entityId" , assignment .getId ()));
292
293
}
293
294
add (sakaiRubricAssociation );
294
295
0 commit comments