|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozdev.MacroTracker.classes.User
Represents a user stored in the MacroTracker database. Information stored in the class is the username of the user, the password of the user, and the email of the user. Email is kept so that it can be displayed in the MacroTracker owner field and other areas. This class also contains the permissions on what the user is allowed to modify in the database.
Constructor Summary | |
---|---|
User(java.lang.String name,
java.lang.String email)
Creates a new User with the user's name and email entered into the user. |
Method Summary | |
---|---|
boolean |
canConfirm()
Returns whether or not this user can confirm bugs. |
boolean |
canCreateGroups()
Returns whether or not this user can create groups. |
boolean |
canEditBugs()
Returns whether or not the current user can edit bugs. |
boolean |
canEditKeywords()
Returns whether or not this user can edit Bugzilla keywords. |
boolean |
canEditUsers()
Returns whether or not this user can edit other users settings. |
boolean |
equals(User userToCompare)
Returns true if the user is equal to that of another user. |
boolean |
getEditComponents()
Returns whether or not this user can edit components. |
java.lang.String |
getEmail()
Returns the user's email. |
java.lang.String |
getName()
Returns the user's name. |
java.lang.String |
getPassword()
Returns the user's password. |
java.lang.String |
getUsername()
Returns the user's username. |
void |
setCanConfirm(boolean confirm)
This field is only used if you have enabled the "unconfirmed" status. |
void |
setCreateGroups(boolean crtgrp)
This option will allow a user to create and destroy groups in Bugzilla. |
void |
setEditBugs(boolean ceb)
Unless a user has this bit set, they can only edit those bugs for which they are the assignee or the reporter. |
void |
setEditComponents(boolean cec)
This flag allows a user to create new products and components, as well as modify and destroy those that have no bugs associated with them. |
void |
setEditKeywords(boolean cek)
If you use Bugzilla's keyword functionality, enabling this feature allows a user to create and destroy keywords. |
void |
setEditUsers(boolean ceu)
This flag allows a user to do what you're doing right now: edit other users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public User(java.lang.String name, java.lang.String email)
name
- The user's nameemail
- The user's emailMethod Detail |
---|
public void setEditUsers(boolean ceu)
public boolean canEditUsers()
setEditUsers(boolean)
public void setEditKeywords(boolean cek)
public boolean canEditKeywords()
setEditKeywords(boolean)
public void setEditComponents(boolean cec)
public boolean getEditComponents()
setEditComponents(boolean)
public void setEditBugs(boolean ceb)
public boolean canEditBugs()
setEditBugs(boolean)
public void setCreateGroups(boolean crtgrp)
crtgrp
- Whether or not the user can create or destroy groups.public boolean canCreateGroups()
setCreateGroups(boolean)
public void setCanConfirm(boolean confirm)
confirm
- Whether or not this user can confirm bugs.public boolean canConfirm()
setCanConfirm(boolean)
public boolean equals(User userToCompare)
userToCompare
- The user to compare to this user.
public java.lang.String getName()
public java.lang.String getEmail()
public java.lang.String getUsername()
public java.lang.String getPassword()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |