|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.JBean edu.jhu.tmaj.beans.UserBean
public class UserBean
Represents the User table, which contains information such as username,password, and permissions of any person using TMAJ.
Field Summary | |
---|---|
static DatabaseField |
ACCESS_IMAGES_APP_FIELD
|
static DatabaseField |
ACCESS_IMPORT_APP_FIELD
|
static DatabaseField |
ACCESS_SAMPLES_APP_FIELD
|
static DatabaseField |
ADMIN_APP_FIELD
|
static DatabaseField |
ARRAY_BUILDER_APP_FIELD
|
static DatabaseField |
ARRAY_MANAGER_APP_FIELD
|
static DatabaseField |
DEPARTMENT_FIELD
|
static DatabaseField |
EMAIL_FIELD
|
static DatabaseField |
ID_FIELD
|
static DatabaseField |
INPUT_LOG_FIELD
|
static DatabaseField |
INSTITUTION_FIELD
|
static DatabaseField |
META_DATA_APP_FIELD
|
static DatabaseField |
NAME_FIRST_FIELD
|
static DatabaseField |
NAME_LAST_FIELD
|
static DatabaseField |
PATIENT_DATA_FIELD
|
static DatabaseField |
PHONE_FIELD
|
static DatabaseField |
SPECIMEN_APP_FIELD
|
static DatabaseField |
USERNAME_FIELD
|
Fields inherited from class edu.jhu.tmaj.beans.JBean |
---|
staticMetaData |
Constructor Summary | |
---|---|
UserBean()
|
Method Summary | |
---|---|
boolean |
accessAdminApp()
|
boolean |
accessArrayBuilderApplication()
Returns true if the user may access the Array Builder application. |
boolean |
accessArrayManagerApplication()
Returns true if the user may access the ArrayManager application. |
boolean |
accessDetailedPatientData()
Returns true if the user can access detailed patient data like the history number and date of birth. |
boolean |
accessImagesApplication()
Returns true if the user may access the Image Analysis application. |
boolean |
accessImportApplication()
Returns true if the user may access the Import application. |
boolean |
accessMetaDataApplication()
Returns true if the user may access the Meta Data application. |
boolean |
accessSamplesApplication()
Returns true if the user may access the Samples application. |
boolean |
accessSpecimensApp()
Returns true if the user may access the Specimenss application. |
boolean |
accessSurgPathNumber()
|
AdminAppPermission |
getAdminAppPermission()
Returns the Permission Object related to the Array Builder App |
ArrayBuilderPermission |
getArrayBuilderPermission()
Returns the Permission Object related to the Array Builder App |
DatabaseField[] |
getFieldsArray()
Returns an Array of TFields representing the columnnames of this bean. |
MetaDataAppPermission |
getMetaDataAppPermission()
Returns the Permission Object related to the MetaData App |
java.lang.String |
getNameFirst()
Returns the User's first name. |
java.lang.String |
getNameLast()
Returns the User's last name. |
JBean |
getNewInstance()
Returns a new instance of this bean. |
java.lang.String |
getPassword()
Returns the digested password of the user. |
PatientDataPermission |
getPatientDataPermission()
|
SpecimensAppPermission |
getSpecimensAppPermission()
Returns the Permission Object related to the Specimens App |
DatabaseTable |
getTable()
|
java.lang.String |
getUsername()
Returns the userName of the user. |
void |
insert()
Inserts this new user into the database, and assigns a random password. |
boolean |
isAdmin()
Returns true if the user is a group admin or full admin. |
boolean |
isFullAdmin()
|
boolean |
isGroupAdmin()
|
boolean |
isGuest()
Returns true if the user's username is guest. |
static CommandResponse |
lookup(java.lang.String username,
java.lang.String digestedPassword)
Returns a UserBean given a username and password. |
void |
setPassword(java.lang.String password)
Sets the digested password of this UserBean. |
void |
setUsername(java.lang.String string)
|
java.lang.String |
toString()
Returns the primary key name of the bean's table, along with the bean's ID. |
void |
verify()
Overwritten by subclasses, this method may throw an exception before an insert() or update() is done if there is something wrong with the JBean. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DatabaseField ID_FIELD
public static final DatabaseField USERNAME_FIELD
public static final DatabaseField NAME_LAST_FIELD
public static final DatabaseField NAME_FIRST_FIELD
public static final DatabaseField INSTITUTION_FIELD
public static final DatabaseField DEPARTMENT_FIELD
public static final DatabaseField PHONE_FIELD
public static final DatabaseField EMAIL_FIELD
public static final DatabaseField ACCESS_IMPORT_APP_FIELD
public static final DatabaseField ACCESS_IMAGES_APP_FIELD
public static final DatabaseField SPECIMEN_APP_FIELD
public static final DatabaseField ARRAY_BUILDER_APP_FIELD
public static final DatabaseField ADMIN_APP_FIELD
public static final DatabaseField ACCESS_SAMPLES_APP_FIELD
public static final DatabaseField ARRAY_MANAGER_APP_FIELD
public static final DatabaseField META_DATA_APP_FIELD
public static final DatabaseField PATIENT_DATA_FIELD
public static final DatabaseField INPUT_LOG_FIELD
Constructor Detail |
---|
public UserBean()
Method Detail |
---|
public PatientDataPermission getPatientDataPermission()
public boolean accessSurgPathNumber()
public boolean accessDetailedPatientData()
public AdminAppPermission getAdminAppPermission()
public ArrayBuilderPermission getArrayBuilderPermission()
public MetaDataAppPermission getMetaDataAppPermission()
public SpecimensAppPermission getSpecimensAppPermission()
public boolean isAdmin()
public boolean isGroupAdmin()
public boolean isFullAdmin()
public boolean accessAdminApp()
public boolean accessArrayBuilderApplication()
public boolean accessArrayManagerApplication()
public boolean accessImagesApplication()
public boolean accessImportApplication()
public boolean accessMetaDataApplication()
public boolean accessSamplesApplication()
public boolean accessSpecimensApp()
public boolean isGuest()
public java.lang.String getUsername()
public java.lang.String getNameFirst()
public java.lang.String getNameLast()
public static CommandResponse lookup(java.lang.String username, java.lang.String digestedPassword) throws java.sql.SQLException
java.sql.SQLException
public void insert() throws java.sql.SQLException
insert
in class JBean
java.sql.SQLException
public java.lang.String toString()
JBean
toString
in class JBean
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public JBean getNewInstance()
JBean
getNewInstance
in class JBean
public DatabaseTable getTable()
getTable
in class JBean
public DatabaseField[] getFieldsArray()
JBean
getFieldsArray
in class JBean
public void setUsername(java.lang.String string)
public void verify() throws java.sql.SQLException
JBean
verify
in class JBean
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |