org.globus.gsi.gridmap
Class GridMapLocal

java.lang.Object
  extended by org.globus.gsi.gridmap.GridMap
      extended by org.globus.gsi.gridmap.GridMapLocal
All Implemented Interfaces:
java.io.Serializable

public class GridMapLocal
extends GridMap

Gridmap implementation with a local username lookup feature. If the gridmap is uninitialized the getUserID, getUserIDs, and checkUser functions will effectively ignore their globusID parameter. For example, getUserID and getUserIDs will return the local user name for any globusID.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.globus.gsi.gridmap.GridMap
map
 
Constructor Summary
GridMapLocal()
           
 
Method Summary
 boolean checkUser(java.lang.String globusID, java.lang.String userID)
          Checks if a given globus ID is associated with given local user account.
 java.lang.String[] getUserIDs(java.lang.String globusID)
          Returns local user names mapped to the specified globusID.
 
Methods inherited from class org.globus.gsi.gridmap.GridMap
getAllGlobusID, getDefaultGridMapLocation, getFileName, getGlobusID, getIgnoreErrors, getUserID, load, load, load, map, normalizeDN, refresh, setIgnoreErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridMapLocal

public GridMapLocal()
Method Detail

getUserIDs

public java.lang.String[] getUserIDs(java.lang.String globusID)
Description copied from class: GridMap
Returns local user names mapped to the specified globusID.

Overrides:
getUserIDs in class GridMap
Parameters:
globusID - globusID
Returns:
array of local user names for the specified globusID. Null if the globusID is not mapped to any local user name.

checkUser

public boolean checkUser(java.lang.String globusID,
                         java.lang.String userID)
Description copied from class: GridMap
Checks if a given globus ID is associated with given local user account.

Overrides:
checkUser in class GridMap
Parameters:
globusID - globus ID
userID - userID
Returns:
true if globus ID is associated with given local user account, false, otherwise.


Copyright © 2013. All Rights Reserved.