org.sakaiproject.component.legacy.assignment
Interface BaseAssignmentService.AssignmentSubmissionStorage

All Known Implementing Classes:
DbAssignmentService.DbCachedAssignmentSubmissionStorage
Enclosing interface:
BaseAssignmentService

protected static interface BaseAssignmentService.AssignmentSubmissionStorage

AssignmentSubmission Storage


Method Summary
 void cancel(AssignmentSubmissionEdit submission)
          Cancel the changes and release the lock.
 boolean check(String id)
          Check if a AssignmentSubmission by this id exists.
 void close()
          Close.
 void commit(AssignmentSubmissionEdit submission)
          Commit the changes and release the lock.
 AssignmentSubmissionEdit edit(String id)
          Get a lock on the AssignmentSubmission with this id, or null if a lock cannot be gotten.
 AssignmentSubmission get(String id)
          Get the AssignmentSubmission with this id, or null if not found.
 List getAll(String context)
          Get all AssignmentSubmissions.
 void open()
          Open.
 AssignmentSubmissionEdit put(String id, String context, String assignmentId)
          Add a new AssignmentSubmission with this id.
 void remove(AssignmentSubmissionEdit submission)
          Remove this AssignmentSubmission.
 

Method Detail

open

public void open()
Open.


close

public void close()
Close.


check

public boolean check(String id)
Check if a AssignmentSubmission by this id exists.

Parameters:
id - The AssignmentSubmission id.
Returns:
true if a AssignmentSubmission by this id exists, false if not.

get

public AssignmentSubmission get(String id)
Get the AssignmentSubmission with this id, or null if not found.

Parameters:
id - The AssignmentSubmission id.
Returns:
The AssignmentSubmission with this id, or null if not found.

getAll

public List getAll(String context)
Get all AssignmentSubmissions.

Returns:
The list of all AssignmentSubmissions.

put

public AssignmentSubmissionEdit put(String id,
                                    String context,
                                    String assignmentId)
Add a new AssignmentSubmission with this id.

Parameters:
id - The AssignmentSubmission id.
context - The context.
Returns:
The locked AssignmentSubmission object with this id, or null if the id is in use.

edit

public AssignmentSubmissionEdit edit(String id)
Get a lock on the AssignmentSubmission with this id, or null if a lock cannot be gotten.

Parameters:
id - The AssignmentSubmission id.
Returns:
The locked AssignmentSubmission with this id, or null if this records cannot be locked.

commit

public void commit(AssignmentSubmissionEdit submission)
Commit the changes and release the lock.


cancel

public void cancel(AssignmentSubmissionEdit submission)
Cancel the changes and release the lock.


remove

public void remove(AssignmentSubmissionEdit submission)
Remove this AssignmentSubmission.