edu.mayo.bsi.ngsportal
Class CopyUserPermissions

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.CopyUserPermissions
All Implemented Interfaces:
Usage

public class CopyUserPermissions
extends Object
implements Usage

Class for app that copies user permissions (i.e. userRole settings) from one sample to other samples, or from one user to other users.

Usage:
1: Give members of a lab access to all the PI's samples:
java -jar CopyUserPermissions.jar -u [PI LanID] -t PI -U [Person LanID] -U [Person LanID] -T Researcher -p [Properties File Path]

2: Copy permissions from one sample to all the other samples in a run:
java -jar CopyUserPermissions.jar -f [Sample Flowcell] -l [Sample Lane] -i [Sample Index] -R [Target Run Name] -p [Properties File Path]

3: Copy permissions from one sample to one or more other samples:
java -jar CopyUserPermissions.jar -f [Sample Flowcell] -l [Sample Lane] -i [Sample Index] -F [Target Flowcell] -L [Target Lane] -I [Target Index] -p [Properties File Path]

In cases 2 and 3 it is the user's responsibility to insure that the Sample information is sufficient to uniquely specify one sample.

@author Gregory Dougherty


Constructor Summary
CopyUserPermissions()
           
 
Method Summary
static void main(String[] args)
          Parse the arguments in order to add secondary analysis status information to the database
 String name()
          Return the name of the application
 String usage()
          Writes Usage information to a String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyUserPermissions

public CopyUserPermissions()
Method Detail

main

public static final void main(String[] args)
Parse the arguments in order to add secondary analysis status information to the database

Parameters:
args - Arguments to parse. Specified by usage()

usage

public String usage()
Writes Usage information to a String

Specified by:
usage in interface Usage
Returns:
How to use this app
See Also:
Usage.usage()

name

public String name()
Return the name of the application

Specified by:
name in interface Usage
Returns:
Name of the application
See Also:
Usage.name()