Java Globus API: Class GridMap
org.globus.security.gridmap
Class GridMap
java.lang.Object
|
+--org.globus.security.gridmap.GridMap
public class GridMap extends Object
Field Summary
protected Map
map
Method Summary
boolean
checkUser (String globusID,
String userID)
Checks if a given globus ID is associated with given
local user account.
String []
getAllGlobusID (String userID)
Returns all globus IDs associated with the
specified local user name.
String
getGlobusID (String userID)
Returns globus ID associated with the
specified local user name.
String
getUserID (String globusID)
Returns first local user name mapped to the specified
globusID.
String []
getUserIDs (String globusID)
Returns local user names mapped to the specified
globusID.
void
GridMap ()
void
load (File file)
Loads grid map definition from a given
file.
void
load (InputStream input)
Loads grid map file definition from a given
input stream.
void
load (String file)
Loads grid map definition from a given
file.
void
map (String globusID,
String userID)
void
refresh ()
Reloads the gridmap from a file only if the gridmap
was initially loaded using the load or load functions.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
map
protected Map map
GridMap
public GridMap ()
GridMap
public void GridMap ()
load
public void load (String file)
throws IOException
Loads grid map definition from a given
file.
Parameters: file - grid map fileThrows: IOException - in case of I/O or
parsing error.
load
public void load (File file)
throws IOException
Loads grid map definition from a given
file.
Parameters: file - grid map fileThrows: IOException - in case of I/O or
parsing error.
refresh
public void refresh ()
throws IOException
Reloads the gridmap from a file only if the gridmap
was initially loaded using the load or load functions.
The file will only be reloaded if it has changed
since the last time.
Throws: IOException - in case of I/O error during
reload.
load
public void load (InputStream input)
throws IOException
Loads grid map file definition from a given
input stream. The input stream is not closed
in case of an error.
Parameters: input - input stream containing grid map
definitions.Throws: IOException - in case of I/O error or
parsing error.
getUserID
public String getUserID (String globusID)
Returns first local user name mapped to the specified
globusID.
Parameters: globusID - globusIDReturns: local user name for the specified globusID.
Null if the globusID is not mapped
to a local user name.
getUserIDs
public String [] getUserIDs (String globusID)
Returns local user names mapped to the specified
globusID.
Parameters: globusID - globusIDReturns: 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 (String globusID,
String userID)
Checks if a given globus ID is associated with given
local user account.
Parameters: globusID - globus IDuserID - userIDReturns: true if globus ID is associated with given local
user account, false, otherwise.
getGlobusID
public String getGlobusID (String userID)
Returns globus ID associated with the
specified local user name.
Parameters: userID - local user nameReturns: associated globus ID, null
if there is not any.
getAllGlobusID
public String [] getAllGlobusID (String userID)
Returns all globus IDs associated with the
specified local user name.
Parameters: userID - local user nameReturns: associated globus ID, null
if there is not any.
map
public void map (String globusID,
String userID)