gov.bnl.gums
Class CoreLogic

java.lang.Object
  extended by gov.bnl.gums.CoreLogic

public class CoreLogic
extends Object

The main interface of the core logic for GUMS, allows to update the groups, generate the gridMapfiles and to map a single user.

Author:
Gabriele Carcassi, Jay Packard

Constructor Summary
CoreLogic(GUMS gums)
          Creates a Resource Manager for a particular instance of the GUMS server.
 
Method Summary
 String generateFqanMapfile(String hostname)
          Generates a fqan to account mapping for a given host and prints it to out.
 String generateGridMapfile(String hostname, boolean createNewMappings, boolean includeFQAN, boolean includeEmail)
          Generates a grid mapfile for a given host and prints it to out.
 String generateOsgUserVoMap(String hostname)
           
 String map(String hostname, GridUser user, boolean checkBannedList)
          Maps a user to a local account for a given host to a grid identity.
 String mapAccount(String accountName)
          Map a local account to a list of grid identity
 void updateBannedGroups()
          Scans the configuration and calls updateMembers() on all the banned groups, updating the local database.
 void updateGroups()
          Scans the configuration and calls updateMembers() on all the groups, updating the local database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreLogic

public CoreLogic(GUMS gums)
Creates a Resource Manager for a particular instance of the GUMS server.

Parameters:
gums -
Method Detail

generateOsgUserVoMap

public String generateOsgUserVoMap(String hostname)
                            throws Exception
Parameters:
hostname -
Returns:
Throws:
Exception

generateFqanMapfile

public String generateFqanMapfile(String hostname)
                           throws Exception
Generates a fqan to account mapping for a given host and prints it to out.

Parameters:
hostname -
Returns:
Throws:
Exception

generateGridMapfile

public String generateGridMapfile(String hostname,
                                  boolean createNewMappings,
                                  boolean includeFQAN,
                                  boolean includeEmail)
                           throws Exception
Generates a grid mapfile for a given host and prints it to out.

Parameters:
hostname -
includeFQAN -
Returns:
Throws:
Exception

map

public String map(String hostname,
                  GridUser user,
                  boolean checkBannedList)
           throws Exception
Maps a user to a local account for a given host to a grid identity.

Parameters:
hostname -
user -
Returns:
Throws:
Exception

mapAccount

public String mapAccount(String accountName)
                  throws Exception
Map a local account to a list of grid identity

Parameters:
accountName -
Returns:
Throws:
Exception

updateGroups

public void updateGroups()
                  throws Exception
Scans the configuration and calls updateMembers() on all the groups, updating the local database.

Throws:
Exception

updateBannedGroups

public void updateBannedGroups()
                        throws Exception
Scans the configuration and calls updateMembers() on all the banned groups, updating the local database.

Throws:
Exception


Copyright © 2004-2009. All Rights Reserved.