|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.manytomany.UsersSpecimens
public final class UsersSpecimens
Represents the table UsersSpecimens, where users are assigned to specimens. The UsersSpecimens table is used to determine what users can see what specimens. However, just because the record is not there does not mean the user does not have access. The user could have all access for the SpecimensAppPermission,which would mean they would have access to every specimen regardless of what is in the UsersSpecimens table. Since Specimens are linked to Blocks and blocks to TissueDiagnosis, the UsersSpecimens table controls user access to not only specimens, but blocks and TissueDiagnosis as well.
Constructor Summary | |
---|---|
UsersSpecimens()
|
Method Summary | |
---|---|
static void |
ensureUserWillSeeSpecimenInSpecimensApp(UserBean userBean,
int specimenID,
boolean isSpecimenNew)
Guarantee that the given user will be able to access to given specimen. |
static void |
insertUsersSpecimens(int userID,
int specimenID)
Inserts a record into the UsersSpecimens Table. |
static boolean |
isRecordInUsersSpecimensTable(int userID,
int specimenID)
Returns true if the UserID/SpecimenID pair is in the UsersSpecimens table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsersSpecimens()
Method Detail |
---|
public static void ensureUserWillSeeSpecimenInSpecimensApp(UserBean userBean, int specimenID, boolean isSpecimenNew) throws java.sql.SQLException
java.sql.SQLException
public static boolean isRecordInUsersSpecimensTable(int userID, int specimenID) throws java.sql.SQLException
java.sql.SQLException
public static void insertUsersSpecimens(int userID, int specimenID) throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |