org.sakaiproject.component.legacy.digest
Interface BaseDigestService.Storage

All Known Implementing Classes:
DbDigestService.DbStorage
Enclosing interface:
BaseDigestService

protected static interface BaseDigestService.Storage

Storage


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

Method Detail

open

public void open()
Open.


close

public void close()
Close.


check

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

Parameters:
id - The user id.
Returns:
true if a digest for this id exists, false if not.

get

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

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

getAll

public List getAll()
Get all digests.

Returns:
The list of all digests.

put

public DigestEdit put(String id)
Add a new digest with this id.

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

edit

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

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

commit

public void commit(DigestEdit edit)
Commit the changes and release the lock.


cancel

public void cancel(DigestEdit edit)
Cancel the changes and release the lock.


remove

public void remove(DigestEdit edit)
Remove this edit and release the lock.