net.sourceforge.stripes.examples.bugzooky.biz
Class BugManager

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.biz.BugManager

public class BugManager
extends Object

Maintains an in memory list of bugs in the system.

Author:
Tim Fennell

Constructor Summary
BugManager()
           
 
Method Summary
 List<Bug> getAllBugs()
          Returns a sorted list of all bugs in the system.
 Bug getBug(int id)
          Gets the bug with the corresponding ID, or null if it does not exist.
 void saveOrUpdate(Bug bug)
          Updates an existing bug, or saves a new bug if the bug is a new one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugManager

public BugManager()
Method Detail

getBug

public Bug getBug(int id)
Gets the bug with the corresponding ID, or null if it does not exist.


getAllBugs

public List<Bug> getAllBugs()
Returns a sorted list of all bugs in the system.


saveOrUpdate

public void saveOrUpdate(Bug bug)
Updates an existing bug, or saves a new bug if the bug is a new one.



© Copyright 2005, Stripes Development Team.