edu.mayo.bsi.ngsportal.shared
Class ConnectionResponse

java.lang.Object
  extended by 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
 
Method Summary
 boolean canAdministerProjects()
           
 boolean canEdit()
           
 int getConnectionID()
           
 String getFirstName()
           
 byte[] getFlipper()
           
 String getLanID()
           
 String getLastName()
           
 int[] getRoles()
           
 int getRotateBits()
           
 String[] getUserRuns()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 bits
rotateBits - Random int for number of places to rotate the bits in each password byte
connectionID - The server side ID of this connection. Needed to validate user calls
lanID - The user's lan ID. Only there if an already existing connection
userRuns - Array of runs that the TREATTableBrowser has that are visible to the user with this LAN ID
roles - All of the roles played by the user, null if the user does not yet have any
firstName - The LDAP specified first name of the User with that lan ID
lastName - The LDAP specified last name of the User with that lan ID
canEdit - Whether or not should let the user try to edit samples
canAdministerProjects - True if this user can administer Secondary Analysis Projects, else false
Method Detail

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