|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mayo.bsi.ngsportal.server.PortalConnection
public class PortalConnection
Class that tracks information about a person who is using the NGS Portal
@author Gregory Dougherty
| Constructor Summary | |
|---|---|
PortalConnection(Encryptor encryptor,
int contactID,
boolean canSeeAll,
boolean canEditAll,
boolean canAdministerProjects,
int[] roles,
String lanID,
String firstName,
String lastName)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
canAdministerProjects()
|
boolean |
canEditAll()
|
boolean |
canSeeAll()
|
int |
getContactID()
|
Encryptor |
getEncryptor()
|
String |
getFirstName()
|
String |
getFullName()
|
String |
getLanID()
|
String |
getLastName()
|
int[] |
getRoles()
|
ConnectionResponse |
makeConnectionResponse(int key,
String[] userRuns)
Create a ConnectionResponse that describes the contents of this PortalConnection |
boolean |
setUser(int contactID,
boolean canSeeAll,
boolean canEditAll,
boolean canAdministerProjects,
int[] roles,
String lanID,
String firstName,
String lastName)
Called when the user has logged in |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PortalConnection(Encryptor encryptor,
int contactID,
boolean canSeeAll,
boolean canEditAll,
boolean canAdministerProjects,
int[] roles,
String lanID,
String firstName,
String lastName)
encryptor - Key to decoding the user's passwordcontactID - The db ID of the person who has this connectioncanSeeAll - True if this user can see all runs, else falsecanEditAll - True if this user can edit all runs, else falsecanAdministerProjects - True if this user can administer Secondary Analysis Projects, else falseroles - All of the roles played by the user, null if the user does not yet have anylanID - The user's lan IDfirstName - The LDAP specified first name of the User with that lan IDlastName - The LDAP specified last name of the User with that lan ID| Method Detail |
|---|
public final boolean setUser(int contactID,
boolean canSeeAll,
boolean canEditAll,
boolean canAdministerProjects,
int[] roles,
String lanID,
String firstName,
String lastName)
contactID - The db ID of the person who has this connectioncanSeeAll - True if this user can see all runs, else falsecanEditAll - True if this user can edit all runs, else falsecanAdministerProjects - True if this user can administer Secondary Analysis Projects, else falseroles - All of the roles played by the user, null if the user does not yet have anylanID - The user's lan IDfirstName - The LDAP specified first name of the User with that lan IDlastName - The LDAP specified last name of the User with that lan ID
public ConnectionResponse makeConnectionResponse(int key,
String[] userRuns)
key - Value of the key the references this PortalConnectionuserRuns - Array of runs that the TREATTableBrowser has that are visible to the user
with this LAN ID
public final Encryptor getEncryptor()
public final int getContactID()
public final boolean canSeeAll()
public final boolean canEditAll()
public final boolean canAdministerProjects()
public final String getLanID()
public final String getFirstName()
public final String getLastName()
public final String getFullName()
public final int[] getRoles()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||