Java Doc for AssignmentService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » assignment » api » 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.assignment.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.assignment.api.AssignmentService

All known Subclasses:   org.sakaiproject.assignment.impl.BaseAssignmentService,
AssignmentService
public interface AssignmentService extends EntityProducer(Code)

AssignmentService is the service that handles assignments.

Each Assignment has an associated AssignmentContent (an AssignmentContent can belong to more the one Assignment) and a list of AssignmentSubmission (the student responses to the Assignment).



Field Summary
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final public static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final public static  StringREF_TYPE_ASSIGNMENT
     The Reference type for an assignment.
final public static  StringREF_TYPE_ASSIGNMENT_GROUPS
     The Reference type for an assignment where site groups are to be considered in security computation.
final public static  StringREF_TYPE_CONTENT
     The Reference type for a content.
final public static  StringREF_TYPE_GRADES
     The Reference type for a grade spreadsheet.
final public static  StringREF_TYPE_SITE_GROUPS
     The Reference type for a site where site groups are to be considered in security computation.
final public static  StringREF_TYPE_SUBMISSION
     The Reference type for a submission.
final public static  StringREF_TYPE_SUBMISSIONS
     The Reference type for a submissions zip.
final public static  StringSECURE_ACCESS_ASSIGNMENT
     Security lock for accessing an assignment.
final public static  StringSECURE_ACCESS_ASSIGNMENT_CONTENT
     Security lock for accessing an assignment content.
final public static  StringSECURE_ACCESS_ASSIGNMENT_SUBMISSION
     Security lock for accessing an assignment submission.
final public static  StringSECURE_ADD_ASSIGNMENT
     Security lock for adding an assignment.
final public static  StringSECURE_ADD_ASSIGNMENT_CONTENT
     Security lock for adding an assignment.
final public static  StringSECURE_ADD_ASSIGNMENT_SUBMISSION
     Security lock for adding an assignment submission.
final public static  StringSECURE_ALL_GROUPS
     Security function giving the user permission to all groups, if granted to at the site level.
final public static  StringSECURE_GRADE_ASSIGNMENT_SUBMISSION
    
final public static  StringSECURE_REMOVE_ASSIGNMENT
     Security lock for removing an assignment.
final public static  StringSECURE_REMOVE_ASSIGNMENT_CONTENT
     Security lock for removing an assignment content.
final public static  StringSECURE_REMOVE_ASSIGNMENT_SUBMISSION
     Security lock for removing an assignment submission.
final public static  StringSECURE_UPDATE_ASSIGNMENT
     Security lock for updating an assignment.
final public static  StringSECURE_UPDATE_ASSIGNMENT_CONTENT
     Security lock for updating an assignment content.
final public static  StringSECURE_UPDATE_ASSIGNMENT_SUBMISSION
     Security lock for updating an assignment submission.


Method Summary
public  AssignmentEditaddAssignment(String context)
     Creates and adds a new Assignment to the service.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  AssignmentContentEditaddAssignmentContent(String context)
     Creates and adds a new AssignmentContent to the service.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  AssignmentEditaddDuplicateAssignment(String context, String assignmentReference)
     Creates and adds a new Assignment to the service which is a copy of an existing Assignment.
Parameters:
  context - -From DefaultId.getChannel(RunData)
Parameters:
  assignmentReference - -The reference of the Assignment to be duplicated.
public  AssignmentContentEditaddDuplicateAssignmentContent(String context, String contentReference)
     Creates and adds a new AssignmentContent to the service which is a copy of an existing AssignmentContent.
Parameters:
  context - -From DefaultId.getChannel(RunData)
Parameters:
  contentId - -The id of the AssignmentContent to be duplicated.
public  AssignmentSubmissionEditaddSubmission(String context, String assignmentId)
     Adds an AssignmentSubmission to the service.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  booleanallowAddAssignment(String context)
     Check permissions for adding an Assignment.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  booleanallowAddAssignmentContent(String context)
     Check permissions for adding an AssignmentContent.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  ListallowAddAssignmentUsers(String context)
     Get the List of Users who can add assignment
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
 booleanallowAddSiteAssignment(String context)
     Check if the user has permission to add a site-wide (not grouped) assignment.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  booleanallowAddSubmission(String context)
     Check permissions for add AssignmentSubmission
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  ListallowAddSubmissionUsers(String assignmentReference)
     Get the List of Users who can addSubmission() for this assignment.
public  booleanallowGetAssignment(String assignmentReference)
     Check permissions for reading an Assignment.
Parameters:
  assignmentReference - -The Assignment's reference.
public  booleanallowGetAssignmentContent(String contentReference)
     Check permissions for get AssignmentContent
Parameters:
  contentReference - -The AssignmentContent reference.
public  booleanallowGetSubmission(String submissionReference)
     Check permissions for reading a Submission.
Parameters:
  submissionReference - -The Submission's reference.
public  booleanallowGradeSubmission(String submissionReference)
     Check permissions for grading Submission
Parameters:
  submissionReference - -The Submission's reference.
public  booleanallowRemoveAssignment(String assignmentReference)
     Check permissions for removing an Assignment.
Parameters:
  assignmentReference - -The Assignment's reference.
public  booleanallowRemoveAssignmentContent(String contentReference)
     Check permissions for remove Assignment content
Parameters:
  contentReference - -The AssignmentContent reference.
public  booleanallowRemoveSubmission(String submissionReference)
     Check permissions for remove Submission
Parameters:
  submissionReference - -The Submission's reference.
public  booleanallowUpdateAssignment(String assignmentReference)
     Check permissions for updating an Assignment.
Parameters:
  assignmentReference - -The Assignment's reference.
public  booleanallowUpdateAssignmentContent(String contentReference)
     Check permissions for updating AssignmentContent
Parameters:
  contentReference - -The AssignmentContent reference.
public  booleanallowUpdateSubmission(String submissionReference)
     Check permissions for updating Submission.
Parameters:
  submissionReference - -The Submission's reference.
public  StringassignmentReference(String context, String id)
     Access the internal reference which can be used to assess security clearance.
Parameters:
  id - The assignment id string.
public  voidcancelEdit(AssignmentEdit assignment)
     Cancel the changes made to a AssignmentEdit object, and release the lock.
public  voidcancelEdit(AssignmentContentEdit content)
     Cancel the changes made to a AssignmentContentEdit object, and release the lock.
public  voidcancelEdit(AssignmentSubmissionEdit submission)
     Cancel the changes made to a AssignmentSubmissionEdit object, and release the lock.
public  voidcommitEdit(AssignmentEdit assignment)
     Commit the changes made to a AssignmentEdit object, and release the lock.
public  voidcommitEdit(AssignmentContentEdit content)
     Commit the changes made to a AssignmentContentEdit object, and release the lock.
public  voidcommitEdit(AssignmentSubmissionEdit submission)
     Commit the changes made to a AssignmentSubmissionEdit object, and release the lock.
public  StringcontentReference(String context, String id)
     Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The content id string.
public  AssignmentEditeditAssignment(String id)
     Get a locked assignment object for editing.
public  AssignmentContentEditeditAssignmentContent(String id)
     Get a locked AssignmentContent object for editing.
public  AssignmentSubmissionEditeditSubmission(String id)
     Get a locked AssignmentSubmission object for editing.
public  booleangetAllowGroupAssignments()
    
public  booleangetAllowGroupAssignmentsInGradebook()
    
public  AssignmentgetAssignment(String assignmentId)
     Access the Assignment with the specified id.
Parameters:
  assignmentId - -The id of the Assignment.
public  AssignmentContentgetAssignmentContent(String contentId)
     Access the AssignmentContent with the specified id.
Parameters:
  contentId - -The id of the AssignmentContent.
public  IteratorgetAssignmentContents(User owner)
     Access list of all AssignmentContents created by the User.
Parameters:
  owner - -The User who's AssignmentContents are requested.
public  IteratorgetAssignments(AssignmentContent content)
     Access all the Assignments which have the specified AssignmentContent.
Parameters:
  content - -The particular AssignmentContent.
public  IteratorgetAssignmentsForContext(String context)
     Access all the Assignemnts associated with a group.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  byte[]getGradesSpreadsheet(String ref)
     Access the grades spreadsheet for the reference, either for an assignment or all assignments in a context.
Parameters:
  ref - The reference, either to a specific assignment, or just to an assignment context.
 CollectiongetGroupsAllowAddAssignment(String context)
     Get the collection of Groups defined for the context of this site that the end user has add assignment permissions in.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  ListgetListAssignmentsForContext(String context)
     Access all the Assignemnts that are not deleted and self-drafted ones
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel().
public  AssignmentSubmissiongetSubmission(String submissionId)
     Access the AssignmentSubmission with the specified id.
Parameters:
  submissionId - -The id of the AssignmentSubmission.
public  AssignmentSubmissiongetSubmission(String assignmentId, User person)
     Access a User's AssignmentSubmission to a particular Assignment.
Parameters:
  assignmentId - -The id of the assignment.
Parameters:
  person - -The User who's Submission you would like.
public  IteratorgetSubmissions(Assignment assignment)
     Get the submissions for an assignment.
Parameters:
  assignment - -the Assignment who's submissions you would like.
public  byte[]getSubmissionsZip(String ref)
     Access the submissions zip for the assignment reference.
Parameters:
  ref - The assignment reference.
public  StringgradesSpreadsheetReference(String context, String assignmentId)
    
public  AssignmentEditmergeAssignment(Element el)
     Add a new assignment to the directory, from a definition in XML.
public  AssignmentContentEditmergeAssignmentContent(Element el)
     Add a new AssignmentContent to the directory, from a definition in XML.
public  AssignmentSubmissionEditmergeSubmission(Element el)
     Add a new AssignmentSubmission to the directory, from a definition in XML.
public  voidremoveAssignment(AssignmentEdit assignment)
     Removes this Assignment and all references to it.
public  voidremoveAssignmentContent(AssignmentContentEdit content)
    
public  voidremoveSubmission(AssignmentSubmissionEdit submission)
    
public  StringsubmissionReference(String context, String id, String assignmentId)
     Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The submission id string.
public  StringsubmissionsZipReference(String context, String assignmentId)
    

Field Detail
APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



REFERENCE_ROOT
final public static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



REF_TYPE_ASSIGNMENT
final public static String REF_TYPE_ASSIGNMENT(Code)
The Reference type for an assignment.



REF_TYPE_ASSIGNMENT_GROUPS
final public static String REF_TYPE_ASSIGNMENT_GROUPS(Code)
The Reference type for an assignment where site groups are to be considered in security computation.



REF_TYPE_CONTENT
final public static String REF_TYPE_CONTENT(Code)
The Reference type for a content.



REF_TYPE_GRADES
final public static String REF_TYPE_GRADES(Code)
The Reference type for a grade spreadsheet.



REF_TYPE_SITE_GROUPS
final public static String REF_TYPE_SITE_GROUPS(Code)
The Reference type for a site where site groups are to be considered in security computation.



REF_TYPE_SUBMISSION
final public static String REF_TYPE_SUBMISSION(Code)
The Reference type for a submission.



REF_TYPE_SUBMISSIONS
final public static String REF_TYPE_SUBMISSIONS(Code)
The Reference type for a submissions zip.



SECURE_ACCESS_ASSIGNMENT
final public static String SECURE_ACCESS_ASSIGNMENT(Code)
Security lock for accessing an assignment.



SECURE_ACCESS_ASSIGNMENT_CONTENT
final public static String SECURE_ACCESS_ASSIGNMENT_CONTENT(Code)
Security lock for accessing an assignment content.



SECURE_ACCESS_ASSIGNMENT_SUBMISSION
final public static String SECURE_ACCESS_ASSIGNMENT_SUBMISSION(Code)
Security lock for accessing an assignment submission.



SECURE_ADD_ASSIGNMENT
final public static String SECURE_ADD_ASSIGNMENT(Code)
Security lock for adding an assignment.



SECURE_ADD_ASSIGNMENT_CONTENT
final public static String SECURE_ADD_ASSIGNMENT_CONTENT(Code)
Security lock for adding an assignment.



SECURE_ADD_ASSIGNMENT_SUBMISSION
final public static String SECURE_ADD_ASSIGNMENT_SUBMISSION(Code)
Security lock for adding an assignment submission.



SECURE_ALL_GROUPS
final public static String SECURE_ALL_GROUPS(Code)
Security function giving the user permission to all groups, if granted to at the site level.



SECURE_GRADE_ASSIGNMENT_SUBMISSION
final public static String SECURE_GRADE_ASSIGNMENT_SUBMISSION(Code)
Security lock for grading submission



SECURE_REMOVE_ASSIGNMENT
final public static String SECURE_REMOVE_ASSIGNMENT(Code)
Security lock for removing an assignment.



SECURE_REMOVE_ASSIGNMENT_CONTENT
final public static String SECURE_REMOVE_ASSIGNMENT_CONTENT(Code)
Security lock for removing an assignment content.



SECURE_REMOVE_ASSIGNMENT_SUBMISSION
final public static String SECURE_REMOVE_ASSIGNMENT_SUBMISSION(Code)
Security lock for removing an assignment submission.



SECURE_UPDATE_ASSIGNMENT
final public static String SECURE_UPDATE_ASSIGNMENT(Code)
Security lock for updating an assignment.



SECURE_UPDATE_ASSIGNMENT_CONTENT
final public static String SECURE_UPDATE_ASSIGNMENT_CONTENT(Code)
Security lock for updating an assignment content.



SECURE_UPDATE_ASSIGNMENT_SUBMISSION
final public static String SECURE_UPDATE_ASSIGNMENT_SUBMISSION(Code)
Security lock for updating an assignment submission.





Method Detail
addAssignment
public AssignmentEdit addAssignment(String context) throws PermissionException(Code)
Creates and adds a new Assignment to the service.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). AssignmentEdit The new Assignment object.
throws:
  IdInvalidException - if the id contains prohibited characers.
throws:
  IdUsedException - if the id is already used in the service.
throws:
  PermissionException - if current User does not have permission to do this.



addAssignmentContent
public AssignmentContentEdit addAssignmentContent(String context) throws PermissionException(Code)
Creates and adds a new AssignmentContent to the service.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). AssignmentContentEdit The new AssignmentContent object.
throws:
  PermissionException - if current User does not have permission to do this.



addDuplicateAssignment
public AssignmentEdit addDuplicateAssignment(String context, String assignmentReference) throws IdInvalidException, PermissionException, IdUsedException, IdUnusedException(Code)
Creates and adds a new Assignment to the service which is a copy of an existing Assignment.
Parameters:
  context - -From DefaultId.getChannel(RunData)
Parameters:
  assignmentReference - -The reference of the Assignment to be duplicated. The new AssignmentEdit object, or null if the original Assignment does not exist.
throws:
  PermissionException - if current User does not have permission to do this.



addDuplicateAssignmentContent
public AssignmentContentEdit addDuplicateAssignmentContent(String context, String contentReference) throws IdInvalidException, PermissionException, IdUnusedException(Code)
Creates and adds a new AssignmentContent to the service which is a copy of an existing AssignmentContent.
Parameters:
  context - -From DefaultId.getChannel(RunData)
Parameters:
  contentId - -The id of the AssignmentContent to be duplicated. AssignmentContentEdit The new AssignmentContentEdit object, or null if the original does not exist.
throws:
  PermissionException - if current User does not have permission to do this.



addSubmission
public AssignmentSubmissionEdit addSubmission(String context, String assignmentId) throws PermissionException(Code)
Adds an AssignmentSubmission to the service.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). The new AssignmentSubmissionEdit.
exception:
  IdInvalidException - if the submission id is invalid.
exception:
  IdUsedException - if the submission id is already used.
throws:
  PermissionException - if the current User does not have permission to do this.



allowAddAssignment
public boolean allowAddAssignment(String context)(Code)
Check permissions for adding an Assignment.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). True if the current User is allowed to add an Assignment, false if not.



allowAddAssignmentContent
public boolean allowAddAssignmentContent(String context)(Code)
Check permissions for adding an AssignmentContent.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). True if the current User is allowed to add an AssignmentContent, false if not.



allowAddAssignmentUsers
public List allowAddAssignmentUsers(String context)(Code)
Get the List of Users who can add assignment
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). the List (User) of users who can add assignment



allowAddSiteAssignment
boolean allowAddSiteAssignment(String context)(Code)
Check if the user has permission to add a site-wide (not grouped) assignment.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). true if the user has permission to add a channel-wide (not grouped) assignment.



allowAddSubmission
public boolean allowAddSubmission(String context)(Code)
Check permissions for add AssignmentSubmission
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). True if the current User is allowed to add an AssignmentSubmission, false if not.



allowAddSubmissionUsers
public List allowAddSubmissionUsers(String assignmentReference)(Code)
Get the List of Users who can addSubmission() for this assignment.
Parameters:
  assignmentReference - -a reference to an assignment the List (User) of users who can addSubmission() for this assignment.



allowGetAssignment
public boolean allowGetAssignment(String assignmentReference)(Code)
Check permissions for reading an Assignment.
Parameters:
  assignmentReference - -The Assignment's reference. True if the current User is allowed to get the Assignment, false if not.



allowGetAssignmentContent
public boolean allowGetAssignmentContent(String contentReference)(Code)
Check permissions for get AssignmentContent
Parameters:
  contentReference - -The AssignmentContent reference. True if the current User is allowed to get the AssignmentContent, false if not.



allowGetSubmission
public boolean allowGetSubmission(String submissionReference)(Code)
Check permissions for reading a Submission.
Parameters:
  submissionReference - -The Submission's reference. True if the current User is allowed to get the AssignmentSubmission, false if not.



allowGradeSubmission
public boolean allowGradeSubmission(String submissionReference)(Code)
Check permissions for grading Submission
Parameters:
  submissionReference - -The Submission's reference. True if the current User is allowed to grade the AssignmentSubmission, false if not.



allowRemoveAssignment
public boolean allowRemoveAssignment(String assignmentReference)(Code)
Check permissions for removing an Assignment.
Parameters:
  assignmentReference - -The Assignment's reference. True if the current User is allowed to remove the Assignment, false if not.



allowRemoveAssignmentContent
public boolean allowRemoveAssignmentContent(String contentReference)(Code)
Check permissions for remove Assignment content
Parameters:
  contentReference - -The AssignmentContent reference. True if the current User is allowed to remove the AssignmentContent, false if not.



allowRemoveSubmission
public boolean allowRemoveSubmission(String submissionReference)(Code)
Check permissions for remove Submission
Parameters:
  submissionReference - -The Submission's reference. True if the current User is allowed to remove the AssignmentSubmission, false if not.



allowUpdateAssignment
public boolean allowUpdateAssignment(String assignmentReference)(Code)
Check permissions for updating an Assignment.
Parameters:
  assignmentReference - -The Assignment's reference. True if the current User is allowed to update the Assignment, false if not.



allowUpdateAssignmentContent
public boolean allowUpdateAssignmentContent(String contentReference)(Code)
Check permissions for updating AssignmentContent
Parameters:
  contentReference - -The AssignmentContent reference. True if the current User is allowed to update the AssignmentContent, false if not.



allowUpdateSubmission
public boolean allowUpdateSubmission(String submissionReference)(Code)
Check permissions for updating Submission.
Parameters:
  submissionReference - -The Submission's reference. True if the current User is allowed to update the AssignmentSubmission, false if not.



assignmentReference
public String assignmentReference(String context, String id)(Code)
Access the internal reference which can be used to assess security clearance.
Parameters:
  id - The assignment id string. The the internal reference which can be used to access the resource from within the system.



cancelEdit
public void cancelEdit(AssignmentEdit assignment)(Code)
Cancel the changes made to a AssignmentEdit object, and release the lock. The AssignmentEdit is disabled, and not to be used after this call.
Parameters:
  assignment - The AssignmentEdit object to commit.



cancelEdit
public void cancelEdit(AssignmentContentEdit content)(Code)
Cancel the changes made to a AssignmentContentEdit object, and release the lock. The AssignmentContentEdit is disabled, and not to be used after this call.
Parameters:
  content - The AssignmentContentEdit object to commit.



cancelEdit
public void cancelEdit(AssignmentSubmissionEdit submission)(Code)
Cancel the changes made to a AssignmentSubmissionEdit object, and release the lock. The AssignmentSubmissionEdit is disabled, and not to be used after this call.
Parameters:
  submission - The AssignmentSubmissionEdit object to commit.



commitEdit
public void commitEdit(AssignmentEdit assignment)(Code)
Commit the changes made to a AssignmentEdit object, and release the lock. The AssignmentEdit is disabled, and not to be used after this call.
Parameters:
  assignment - The AssignmentEdit object to commit.



commitEdit
public void commitEdit(AssignmentContentEdit content)(Code)
Commit the changes made to a AssignmentContentEdit object, and release the lock. The AssignmentContentEdit is disabled, and not to be used after this call.
Parameters:
  content - The AssignmentContentEdit object to commit.



commitEdit
public void commitEdit(AssignmentSubmissionEdit submission)(Code)
Commit the changes made to a AssignmentSubmissionEdit object, and release the lock. The AssignmentSubmissionEdit is disabled, and not to be used after this call.
Parameters:
  submission - The AssignmentSubmissionEdit object to commit.



contentReference
public String contentReference(String context, String id)(Code)
Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The content id string. The the internal reference which can be used to access the resource from within the system.



editAssignment
public AssignmentEdit editAssignment(String id) throws IdUnusedException, PermissionException, InUseException(Code)
Get a locked assignment object for editing. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  id - The assignment id string. A AssignmentEdit object for editing.
exception:
  IdUnusedException - if not found, or if not an AssignmentEdit object
exception:
  PermissionException - if the current user does not have permission to edit this assignment.
exception:
  InUseException - if the Assignment object is locked by someone else.



editAssignmentContent
public AssignmentContentEdit editAssignmentContent(String id) throws IdUnusedException, PermissionException, InUseException(Code)
Get a locked AssignmentContent object for editing. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  id - The content id string. An AssignmentContentEdit object for editing.
exception:
  IdUnusedException - if not found, or if not an AssignmentContentEdit object
exception:
  PermissionException - if the current user does not have permission to edit this content.
exception:
  InUseException - if the AssignmentContent object is locked by someone else.



editSubmission
public AssignmentSubmissionEdit editSubmission(String id) throws IdUnusedException, PermissionException, InUseException(Code)
Get a locked AssignmentSubmission object for editing. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  id - The submission id string. An AssignmentSubmissionEdit object for editing.
exception:
  IdUnusedException - if not found, or if not an AssignmentSubmissionEdit object
exception:
  PermissionException - if the current user does not have permission to edit this submission.
exception:
  InUseException - if the AssignmentSubmission object is locked by someone else.



getAllowGroupAssignments
public boolean getAllowGroupAssignments()(Code)
Whether assignment could be assigned to groups



getAllowGroupAssignmentsInGradebook
public boolean getAllowGroupAssignmentsInGradebook()(Code)
Whether assignment with group access can be added to gradebook



getAssignment
public Assignment getAssignment(String assignmentId) throws IdUnusedException, PermissionException(Code)
Access the Assignment with the specified id.
Parameters:
  assignmentId - -The id of the Assignment. The Assignment corresponding to the id, or null if it does not exist.
throws:
  IdUnusedException - if there is no object with this id.
throws:
  PermissionException - if the current user is not allowed to read this.



getAssignmentContent
public AssignmentContent getAssignmentContent(String contentId) throws IdUnusedException, PermissionException(Code)
Access the AssignmentContent with the specified id.
Parameters:
  contentId - -The id of the AssignmentContent. The AssignmentContent corresponding to the id, or null if it does not exist.
throws:
  IdUnusedException - if there is no object with this id.
throws:
  PermissionException - if the current user does not have permission to see this.



getAssignmentContents
public Iterator getAssignmentContents(User owner)(Code)
Access list of all AssignmentContents created by the User.
Parameters:
  owner - -The User who's AssignmentContents are requested. Iterator over all AssignmentContents owned by this User.



getAssignments
public Iterator getAssignments(AssignmentContent content)(Code)
Access all the Assignments which have the specified AssignmentContent.
Parameters:
  content - -The particular AssignmentContent. Iterator over all the Assignments with the specified AssignmentContent.



getAssignmentsForContext
public Iterator getAssignmentsForContext(String context)(Code)
Access all the Assignemnts associated with a group.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). Iterator over all the Assignments associated with a group.



getGradesSpreadsheet
public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException(Code)
Access the grades spreadsheet for the reference, either for an assignment or all assignments in a context.
Parameters:
  ref - The reference, either to a specific assignment, or just to an assignment context. The grades spreadsheet bytes.
throws:
  IdUnusedException - if there is no object with this id.
throws:
  PermissionException - if the current user is not allowed to access this.



getGroupsAllowAddAssignment
Collection getGroupsAllowAddAssignment(String context)(Code)
Get the collection of Groups defined for the context of this site that the end user has add assignment permissions in.
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). The Collection (Group) of groups defined for the context of this site that the end user has add assignment permissions in, empty if none.



getListAssignmentsForContext
public List getListAssignmentsForContext(String context)(Code)
Access all the Assignemnts that are not deleted and self-drafted ones
Parameters:
  context - -Describes the portlet context - generated with DefaultId.getChannel(). List All the Assignments will be listed



getSubmission
public AssignmentSubmission getSubmission(String submissionId) throws IdUnusedException, PermissionException(Code)
Access the AssignmentSubmission with the specified id.
Parameters:
  submissionId - -The id of the AssignmentSubmission. The AssignmentSubmission corresponding to the id, or null if it does not exist.
throws:
  IdUnusedException - if there is no object with this id.
throws:
  PermissionException - if the current user is not allowed to read this.



getSubmission
public AssignmentSubmission getSubmission(String assignmentId, User person) throws IdUnusedException, PermissionException(Code)
Access a User's AssignmentSubmission to a particular Assignment.
Parameters:
  assignmentId - -The id of the assignment.
Parameters:
  person - -The User who's Submission you would like. AssignmentSubmission The user's submission for that Assignment, or null if one does not exist.
throws:
  IdUnusedException - if the assignmentId does not correspond to an existing Assignment.
throws:
  PermissionException - if the current user is not allowed to read this.



getSubmissions
public Iterator getSubmissions(Assignment assignment)(Code)
Get the submissions for an assignment.
Parameters:
  assignment - -the Assignment who's submissions you would like. Iterator over all the submissions for an Assignment.



getSubmissionsZip
public byte[] getSubmissionsZip(String ref) throws IdUnusedException, PermissionException(Code)
Access the submissions zip for the assignment reference.
Parameters:
  ref - The assignment reference. The submissions zip bytes.
throws:
  IdUnusedException - if there is no object with this id.
throws:
  PermissionException - if the current user is not allowed to access this.



gradesSpreadsheetReference
public String gradesSpreadsheetReference(String context, String assignmentId)(Code)
Get the String to form an assignment grade spreadsheet
Parameters:
  context - The assignment context String
Parameters:
  assignmentId - The id for the assignment object; when null, indicates all assignment in that context



mergeAssignment
public AssignmentEdit mergeAssignment(Element el) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new assignment to the directory, from a definition in XML. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  el - The XML DOM Element defining the assignment. A locked AssignmentEdit object (reserving the id).
exception:
  IdInvalidException - if the assignment id is invalid.
exception:
  IdUsedException - if the assignment id is already used.
exception:
  PermissionException - if the current user does not have permission to add an assignnment.



mergeAssignmentContent
public AssignmentContentEdit mergeAssignmentContent(Element el) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new AssignmentContent to the directory, from a definition in XML. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  el - The XML DOM Element defining the AssignmentContent. A locked AssignmentContentEdit object (reserving the id).
exception:
  IdInvalidException - if the AssignmentContent id is invalid.
exception:
  IdUsedException - if the AssignmentContent id is already used.
exception:
  PermissionException - if the current user does not have permission to add an AssignnmentContent.



mergeSubmission
public AssignmentSubmissionEdit mergeSubmission(Element el) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new AssignmentSubmission to the directory, from a definition in XML. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  el - The XML DOM Element defining the submission. A locked AssignmentSubmissionEdit object (reserving the id).
exception:
  IdInvalidException - if the submission id is invalid.
exception:
  IdUsedException - if the submission id is already used.
exception:
  PermissionException - if the current user does not have permission to add a submission.



removeAssignment
public void removeAssignment(AssignmentEdit assignment) throws PermissionException(Code)
Removes this Assignment and all references to it.
Parameters:
  assignment - -The Assignment to remove.
throws:
  PermissionException - if current User does not have permission to do this.



removeAssignmentContent
public void removeAssignmentContent(AssignmentContentEdit content) throws AssignmentContentNotEmptyException, PermissionException(Code)
Removes an AssignmentContent
Parameters:
  content - -the AssignmentContent to remove.
throws:
  an - AssignmentContentNotEmptyException if this content still has related Assignments.
throws:
  PermissionException - if current User does not have permission to do this.



removeSubmission
public void removeSubmission(AssignmentSubmissionEdit submission) throws PermissionException(Code)
Removes an AssignmentSubmission and all references to it
Parameters:
  submission - -the AssignmentSubmission to remove.
throws:
  PermissionException - if current User does not have permission to do this.



submissionReference
public String submissionReference(String context, String id, String assignmentId)(Code)
Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The submission id string. The the internal reference which can be used to access the resource from within the system.



submissionsZipReference
public String submissionsZipReference(String context, String assignmentId)(Code)
Get the string to form an assignment submissions zip file
Parameters:
  context - The assignment context String
Parameters:
  assignmentId - The id for the assignment object;



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