Can anyone point me to documentation or sample code (or anything) related to the blackboard.platform.gradebook2 API? I ran across the sample code at http://www.edugarage.com/display/BBDN/Gradebook+Extraction+Example, but I haven't been able to find much else.
It seems like it offers a more robust set of functionality than blackboard.data.gradebook, which could be helpful for some building blocks I'm working on. Really any info would be helpful.
Thanks.
Did you find an answer for this.
I am in the same boat
I think you can consider to use LineItem for grade center.I have written the program like grade center before.
Your best bet is to use the webservice classes (yes, even from within a building block). Start off with
GradebookWS gws = GradebookWSFactory.getGradebookWSForTool();
and go from there. Personally, I think it's back to the middle ages with all those String and integer-constants arguments, but if you like PHP then you'll feel right at home I guess ;-)
Should you end up in permission hell (you definitely will if you use getGradebookWS() instead of getGradebookWSForTool()), try adding the following to your bb-manifest (courtesy of George Kroner):
<permission type="persist" name="Attempt" actions="load,persist,delete" /> <permission type="persist" name="Outcome" actions="load,persist,delete" /> <permission type="persist" name="OutcomeDefinition" actions="load,persist,delete" /> <permission type="persist" name="outcomedefinitioncategory" actions="load,persist,delete" /> <permission type="persist" name="OutcomeDefinitionScale" actions="create,delete,load,persist" /> <permission type="persist" name="OutcomeDefinitionScaleSymbol" actions="create,delete,load,persist" /> <required-webservices> <tool-login> <service name="Gradebook.WS"> <operation>getAttempts</operation> <operation>getGradebookColumns</operation> <operation>getGradebookTypes</operation> <operation>getGrades</operation> <operation>saveAttempts</operation> <operation>saveColumns</operation> <operation>saveGradebookTypes</operation> <operation>saveGrades</operation> </service> </tool-login> </required-webservices>
While the gradecenter webservice API has public javadoc and is therefore officially supported, its documentation is rather terse.The API is also not complete; most notably, attempt files are not supported.
Peter,
I'm trying using webservice API from within a building block but whenI call getGradebookWSForTool() I keep getting java.lang.RuntimeException: Could not locate current Building Block context.
Do you have an idea why and I can overcome this?
Roy