|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozdev.MacroTracker.classes.MacroTrackerDatabase
A Bug Database that can be saved to a file using the MacroTracker Database format.
Field Summary |
---|
Fields inherited from interface org.mozdev.MacroTracker.classes.iBugDatabase |
---|
bugs, products, resolution, status, users |
Constructor Summary | |
---|---|
MacroTrackerDatabase()
|
Method Summary | |
---|---|
void |
addBug(Bug bug)
Adds a bug to the bug database. |
void |
addProduct(Product productToAdd)
Adds a Product to the BugDatabase. |
void |
addUser(User usr)
Adds a user to the bug database. |
int |
bugCount()
Returns how many bugs are in the bug database. |
Bug |
getBug(int index)
Returns a bug in the bug database. |
java.lang.String |
getName()
Returns the name of the database. |
Product |
getProduct(int index)
Returns the product located at the specified index in the Product database. |
Product |
getProduct(java.lang.String productName)
Returns a Product based on the productName taken in. |
User |
getUser(int index)
Returns the user by their ID number. |
User |
getUser(java.lang.String email)
Returns the user with the given email. |
boolean |
isValidUser(java.lang.String email)
Returns whether or not the user's email taken in is a valid MacroTracker user. |
boolean |
isValidUser(User user)
Returns whether or not the user taken in is a registered MacroTracker user. |
int |
productCount()
Returns how many product's are held in this MacroTracker database. |
java.util.Iterator |
productIterator()
Returns an iterator that can iterate through all of the Product's in this database. |
void |
removeBug(int index)
Removes a bug from the bug database. |
boolean |
removeProduct(int index)
Removes a Product that bugs are tracked for from the BugDatabase. |
void |
removeProduct(java.lang.String aProduct)
Removes a product when the name of the product is taken in. |
void |
removeUser(int index)
Removes a user from the bug database. |
void |
removeUser(java.lang.String aUser)
Removes a user from the bug database. |
void |
setName(java.lang.String aName)
Sets the name of the BugDatabase |
int |
userCount()
The number of users in the BugDatabase. |
java.util.Iterator |
userIterator()
Returns an iterator that will iterate through all of the users in the BugDatabase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacroTrackerDatabase()
Method Detail |
---|
public java.lang.String getName()
getName
in interface iBugDatabase
public void setName(java.lang.String aName)
setName
in interface iBugDatabase
public void addBug(Bug bug)
bug
- The bug to add to the database.public boolean isValidUser(User user)
user
- The user to ensure is a valid user.public boolean isValidUser(java.lang.String email)
isValidUser
in interface iBugDatabase
email
- The email address of the user to validate.public int bugCount()
public Bug getBug(int index)
index
- The bug number of the bug to return.public void removeBug(int index)
index
- The bug number of the bug to remove from the databasepublic void addUser(User usr)
public void removeUser(java.lang.String aUser)
public int userCount()
public User getUser(int index)
index
- The ID number of the user to return.public java.util.Iterator userIterator()
public User getUser(java.lang.String email)
email
- The email address of the User to return.public void removeUser(int index)
index
- The user ID of the user to remove from the bug database.public void addProduct(Product productToAdd)
productToAdd
- the product to add to the BugDatabase.public int productCount()
public Product getProduct(int index)
index
- The index of the Product you want returned.public Product getProduct(java.lang.String productName)
public java.util.Iterator productIterator()
public boolean removeProduct(int index)
public void removeProduct(java.lang.String aProduct)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |