Java Doc for GradebookService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » service » gradebook » shared » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.service.gradebook.shared 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.service.gradebook.shared.GradebookService

All known Subclasses:   org.sakaiproject.component.gradebook.GradebookServiceHibernateImpl,
GradebookService
public interface GradebookService (Code)
This is the externally exposed API of the gradebook application. This interface is principally intended for clients of application services -- that is, clients who want to "act like the Gradebook would" to automate what would normally be done in the UI, including any authorization checks. As a result, these methods may throw security exceptions. Call the service's authorization-check methods if you want to avoid them.

WARNING: For documentation of the deprecated methods, please see the service interfaces which own them.





Method Summary
public  voidaddAssignment(String gradebookUid, Assignment assignmentDefinition)
     Create a new Gradebook-managed assignment.
public  voidaddExternalAssessment(String gradebookUid, String externalId, String externalUrl, String title, double points, Date dueDate, String externalServiceDescription)
    
public  voidaddGradebook(String uid, String name)
    
public  voiddeleteGradebook(String uid)
    
public  AssignmentgetAssignment(String gradebookUid, String assignmentName)
    
public  DoublegetAssignmentScore(String gradebookUid, String assignmentName, String studentUid)
    
public  CommentDefinitiongetAssignmentScoreComment(String gradebookUid, String assignmentName, String studentUid)
     Get the comment (if any) currently provided for the given combination of student and assignment.
public  ListgetAssignments(String gradebookUid)
    
public  StringgetGradebookDefinitionXml(String gradebookUid)
     Get an archivable definition of gradebook data suitable for migration between sites.
public  booleanisAssignmentDefined(String gradebookUid, String assignmentTitle)
     Check to see if an assignment with the given name already exists in the given gradebook.
public  booleanisExternalAssignmentDefined(String gradebookUid, String externalId)
    
public  booleanisGradebookDefined(String gradebookUid)
     Checks to see whether a gradebook with the given uid exists.
public  booleanisUserAbleToGradeStudent(String gradebookUid, String studentUid)
     Check to see if the current user is allowed to grade the given student in the given gradebook.
public  voidmergeGradebookDefinitionXml(String toGradebookUid, String fromGradebookXml)
     Attempt to merge archived gradebook data (notably the assignnments) into a new gradebook. Assignment definitions whose names match assignments that are already in the targeted gradebook will be skipped. Imported assignments will not automatically be released to students, even if they were released in the original gradebook. Externally managed assessments will not be imported, since such imports should be handled by the external assessment engine. If possible, the targeted gradebook's selected grading scale will be set to match the archived grading scale.
public  voidremoveExternalAssessment(String gradebookUid, String externalId)
    
public  voidsetAssignmentScore(String gradebookUid, String assignmentName, String studentUid, Double score, String clientServiceDescription)
     Besides the declared exceptions, possible runtime exceptions include:
  • SecurityException - If the current user is not authorized to grade the student, or if the assignment is externally maintained.
public  voidsetAssignmentScoreComment(String gradebookUid, String assignmentName, String studentUid, String comment)
     Provide a student-viewable comment on the score (or lack of score) associated with the given assignment.
public  voidsetAvailableGradingScales(Collection gradingScaleDefinitions)
    
public  voidsetDefaultGradingScale(String uid)
    
public  voidupdateAssignment(String gradebookUid, String assignmentName, Assignment assignmentDefinition)
     Modify the definition of an existing Gradebook-managed assignment. Clients should be aware that it's allowed to change the points value of an assignment even if students have already been scored on it.
public  voidupdateExternalAssessment(String gradebookUid, String externalId, String externalUrl, String title, double points, Date dueDate)
    
public  voidupdateExternalAssessmentScore(String gradebookUid, String externalId, String studentUid, Double points)
    
public  voidupdateExternalAssessmentScores(String gradebookUid, String externalId, Map studentUidsToScores)
    



Method Detail
addAssignment
public void addAssignment(String gradebookUid, Assignment assignmentDefinition)(Code)
Create a new Gradebook-managed assignment.
Parameters:
  assignmentDefinition -



addExternalAssessment
public void addExternalAssessment(String gradebookUid, String externalId, String externalUrl, String title, double points, Date dueDate, String externalServiceDescription) throws GradebookNotFoundException, ConflictingAssignmentNameException, ConflictingExternalIdException, AssignmentHasIllegalPointsException(Code)
GradebookExternalAssessmentService.addExternalAssessment(StringStringStringStringdoubleDateString)



addGradebook
public void addGradebook(String uid, String name)(Code)
GradebookFrameworkService.addGradebook(StringString)



deleteGradebook
public void deleteGradebook(String uid) throws GradebookNotFoundException(Code)
GradebookFrameworkService.deleteGradebook(String)



getAssignment
public Assignment getAssignment(String gradebookUid, String assignmentName) throws GradebookNotFoundException(Code)

Parameters:
  gradebookUid -
Parameters:
  assignmentName - the assignment definition, or null if not found
throws:
  GradebookNotFoundException -
throws:
  AssessmentNotFoundException -



getAssignmentScore
public Double getAssignmentScore(String gradebookUid, String assignmentName, String studentUid) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
Besides the declared exceptions, possible runtime exceptions include:
  • SecurityException - If the current user is not authorized to view the student's score
Returns the current score for the student, or null if no scorehas been assigned yet.



getAssignmentScoreComment
public CommentDefinition getAssignmentScoreComment(String gradebookUid, String assignmentName, String studentUid) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
Get the comment (if any) currently provided for the given combination of student and assignment.
Parameters:
  gradebookUid -
Parameters:
  assignmentName -
Parameters:
  studentUid - null if no comment is avaailable
throws:
  GradebookNotFoundException -
throws:
  AssessmentNotFoundException -



getAssignments
public List getAssignments(String gradebookUid) throws GradebookNotFoundException(Code)
Returns a list of Assignment objects describing the assignmentsthat are currently defined in the given gradebook.



getGradebookDefinitionXml
public String getGradebookDefinitionXml(String gradebookUid)(Code)
Get an archivable definition of gradebook data suitable for migration between sites. Assignment definitions and the currently selected grading scale are included. Student view options and all information related to specific students or instructors (such as scores) are not.
Parameters:
  gradebookUid - a versioned XML string



isAssignmentDefined
public boolean isAssignmentDefined(String gradebookUid, String assignmentTitle) throws GradebookNotFoundException(Code)
Check to see if an assignment with the given name already exists in the given gradebook. This will give clients a chance to avoid the ConflictingAssignmentNameException.



isExternalAssignmentDefined
public boolean isExternalAssignmentDefined(String gradebookUid, String externalId) throws GradebookNotFoundException(Code)
GradebookExternalAssessmentService.isExternalAssignmentDefined(StringString)



isGradebookDefined
public boolean isGradebookDefined(String gradebookUid)(Code)
Checks to see whether a gradebook with the given uid exists.
Parameters:
  gradebookUid - The gradebook UID to check Whether the gradebook exists



isUserAbleToGradeStudent
public boolean isUserAbleToGradeStudent(String gradebookUid, String studentUid)(Code)
Check to see if the current user is allowed to grade the given student in the given gradebook. This will give clients a chance to avoid a security exception.



mergeGradebookDefinitionXml
public void mergeGradebookDefinitionXml(String toGradebookUid, String fromGradebookXml)(Code)
Attempt to merge archived gradebook data (notably the assignnments) into a new gradebook. Assignment definitions whose names match assignments that are already in the targeted gradebook will be skipped. Imported assignments will not automatically be released to students, even if they were released in the original gradebook. Externally managed assessments will not be imported, since such imports should be handled by the external assessment engine. If possible, the targeted gradebook's selected grading scale will be set to match the archived grading scale. If there are any mismatches that make this impossible, the existing grading scale will be left alone, but assignment imports will still happen.
Parameters:
  toGradebookUid -
Parameters:
  fromGradebookXml -



removeExternalAssessment
public void removeExternalAssessment(String gradebookUid, String externalId) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
GradebookExternalAssessmentService.removeExternalAssessment(StringString)



setAssignmentScore
public void setAssignmentScore(String gradebookUid, String assignmentName, String studentUid, Double score, String clientServiceDescription) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
Besides the declared exceptions, possible runtime exceptions include:
  • SecurityException - If the current user is not authorized to grade the student, or if the assignment is externally maintained.
  • StaleObjectModificationException - If the student's scores have been edited by someone else during this transaction.

Parameters:
  clientServiceDescription - What to display as the programmatic source of the score (e.g.,"Message Center").



setAssignmentScoreComment
public void setAssignmentScoreComment(String gradebookUid, String assignmentName, String studentUid, String comment) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
Provide a student-viewable comment on the score (or lack of score) associated with the given assignment.
Parameters:
  gradebookUid -
Parameters:
  assignmentName -
Parameters:
  studentUid -
Parameters:
  comment - a plain text comment, or null to remove any currrent comment
throws:
  GradebookNotFoundException -
throws:
  AssessmentNotFoundException -



setAvailableGradingScales
public void setAvailableGradingScales(Collection gradingScaleDefinitions)(Code)
GradebookFrameworkService.setAvailableGradingScales(Collection)



setDefaultGradingScale
public void setDefaultGradingScale(String uid)(Code)
GradebookFrameworkService.setDefaultGradingScale(String)



updateAssignment
public void updateAssignment(String gradebookUid, String assignmentName, Assignment assignmentDefinition)(Code)
Modify the definition of an existing Gradebook-managed assignment. Clients should be aware that it's allowed to change the points value of an assignment even if students have already been scored on it. Any existing scores will not be adjusted. This method cannot be used to modify the defintions of externally-managed assessments or to make Gradebook-managed assignments externally managed.
Parameters:
  assignmentName - the name of the assignment that needs to be changed
Parameters:
  assignmentDefinition - the new properties of the assignment



updateExternalAssessment
public void updateExternalAssessment(String gradebookUid, String externalId, String externalUrl, String title, double points, Date dueDate) throws GradebookNotFoundException, AssessmentNotFoundException, ConflictingAssignmentNameException, AssignmentHasIllegalPointsException(Code)
GradebookExternalAssessmentService.updateExternalAssessment(StringStringStringStringdoubleDate)



updateExternalAssessmentScore
public void updateExternalAssessmentScore(String gradebookUid, String externalId, String studentUid, Double points) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
GradebookExternalAssessmentService.updateExternalAssessmentScore(StringStringStringDouble)



updateExternalAssessmentScores
public void updateExternalAssessmentScores(String gradebookUid, String externalId, Map studentUidsToScores) throws GradebookNotFoundException, AssessmentNotFoundException(Code)
GradebookExternalAssessmentService.updateExternalAssessmentScores(StringStringMap)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.