edu.mayo.bsi.ngsportal.shared
Class ConnectionResponse
java.lang.Object
edu.mayo.bsi.ngsportal.shared.ConnectionResponse
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable
public class ConnectionResponse
- extends Object
- implements com.google.gwt.user.client.rpc.IsSerializable
Class to inform the client about the nature of the connection
@author Gregory Dougherty
|
Constructor Summary |
ConnectionResponse(byte[] flipper,
int rotateBits,
int connectionID,
String lanID,
String[] userRuns,
int[] roles,
String firstName,
String lastName,
boolean canEdit,
boolean canAdministerProjects)
Normal constructor |
ConnectionResponse
public ConnectionResponse(byte[] flipper,
int rotateBits,
int connectionID,
String lanID,
String[] userRuns,
int[] roles,
String firstName,
String lastName,
boolean canEdit,
boolean canAdministerProjects)
- Normal constructor
- Parameters:
flipper - Random byte stream for flipping the password bitsrotateBits - Random int for number of places to rotate the bits in each password byteconnectionID - The server side ID of this connection. Needed to validate user callslanID - The user's lan ID. Only there if an already existing connectionuserRuns - Array of runs that the TREATTableBrowser has that are visible to the user
with this LAN IDroles - All of the roles played by the user, null if the user does not yet have anyfirstName - The LDAP specified first name of the User with that lan IDlastName - The LDAP specified last name of the User with that lan IDcanEdit - Whether or not should let the user try to edit samplescanAdministerProjects - True if this user can administer Secondary Analysis Projects, else false
getFlipper
public final byte[] getFlipper()
- Returns:
- the flipper
getRotateBits
public final int getRotateBits()
- Returns:
- the rotateBits
getConnectionID
public final int getConnectionID()
- Returns:
- the connectionID
getLanID
public final String getLanID()
- Returns:
- the lanID
getUserRuns
public final String[] getUserRuns()
- Returns:
- the userRuns
getFirstName
public final String getFirstName()
- Returns:
- the firstName
getLastName
public final String getLastName()
- Returns:
- the lastName
canEdit
public final boolean canEdit()
- Returns:
- Whether or not should let the user try to edit samples
canAdministerProjects
public final boolean canAdministerProjects()
- Returns:
- the canAdministerProjects
getRoles
public final int[] getRoles()
- Returns:
- the roles