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

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

protected static interface BaseAssignmentService.AssignmentContentStorage

AssignmentContent Storage


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

Method Detail

open

public void open()
Open.


close

public void close()
Close.


check

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

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

get

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

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

getAll

public List getAll(String context)
Get all AssignmentContents.

Returns:
The list of all AssignmentContents.

put

public AssignmentContentEdit put(String id,
                                 String context)
Add a new AssignmentContent with this id.

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

edit

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

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

commit

public void commit(AssignmentContentEdit content)
Commit the changes and release the lock.


cancel

public void cancel(AssignmentContentEdit content)
Cancel the changes and release the lock.


remove

public void remove(AssignmentContentEdit content)
Remove this AssignmentContent.