org.nees.util.grid
Class GridUserInfoFacade

java.lang.Object
  extended byorg.nees.util.grid.GridUserInfoFacade

public class GridUserInfoFacade
extends java.lang.Object

Hides the details of getting information about grid users


Field Summary
static java.lang.String GRID_MAP_FILE_LOCATION_DEFAULT
           
static java.lang.String GRID_MAP_FILE_LOCATION_PROPERTY
           
 
Constructor Summary
GridUserInfoFacade(java.lang.String globusDN)
          Create a facade for a user.
 
Method Summary
static java.lang.String getDistinguishedName(java.lang.String username)
          Get the DN for a local user.
 java.lang.String getUserHomeDirectory()
          Get the user's local home directory.
 java.lang.String getUserID()
          Look up the user in the local grid map file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRID_MAP_FILE_LOCATION_PROPERTY

public static final java.lang.String GRID_MAP_FILE_LOCATION_PROPERTY
See Also:
Constant Field Values

GRID_MAP_FILE_LOCATION_DEFAULT

public static final java.lang.String GRID_MAP_FILE_LOCATION_DEFAULT
See Also:
Constant Field Values
Constructor Detail

GridUserInfoFacade

public GridUserInfoFacade(java.lang.String globusDN)
Create a facade for a user.

Parameters:
globusDN - the user's globus distinguished name
Method Detail

getDistinguishedName

public static java.lang.String getDistinguishedName(java.lang.String username)
                                             throws java.io.IOException
Get the DN for a local user.

Throws:
java.io.IOException

getUserID

public java.lang.String getUserID()
                           throws java.io.IOException
Look up the user in the local grid map file.

Returns:
the local user ID of the user
Throws:
java.io.IOException

getUserHomeDirectory

public java.lang.String getUserHomeDirectory()
                                      throws java.lang.Exception
Get the user's local home directory.

Returns:
the path to the user's local home directory
Throws:
java.lang.Exception