|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.gridmap.GridMap
public class GridMap
Field Summary | |
---|---|
protected java.util.Map |
map
|
Constructor Summary | |
---|---|
GridMap()
|
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[] |
getAllGlobusID(java.lang.String userID)
Returns all globus IDs associated with the specified local user name. |
static java.lang.String |
getDefaultGridMapLocation()
|
java.lang.String |
getFileName()
Returns the absolute path anme of file used to load gridmap either using the load or load functions. |
java.lang.String |
getGlobusID(java.lang.String userID)
Returns globus ID associated with the specified local user name. |
boolean |
getIgnoreErrors()
Returns whether errors in the gridmap file are ignored. |
java.lang.String |
getUserID(java.lang.String globusID)
Returns first local user name mapped to the specified globusID. |
java.lang.String[] |
getUserIDs(java.lang.String globusID)
Returns local user names mapped to the specified globusID. |
boolean |
load(java.io.File file)
Loads grid map definition from a given file. |
boolean |
load(java.io.InputStream input)
Loads grid map file definition from a given input stream. |
boolean |
load(java.lang.String file)
Loads grid map definition from a given file. |
void |
map(java.lang.String globusID,
java.lang.String userID)
|
static java.lang.String |
normalizeDN(java.lang.String globusID)
|
boolean |
refresh()
Reloads the gridmap from a file only if the gridmap was initially loaded using the load or load functions. |
void |
setIgnoreErrors(boolean ignoreErrors)
Sets whether errors in the gridmap file should be ignored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map map
Constructor Detail |
---|
public GridMap()
Method Detail |
---|
public void setIgnoreErrors(boolean ignoreErrors)
ignoreErrors
- if true, errors in the gridmap file
will be ignored (warnings will be logged). If false,
an exception will be raised on errors.public boolean getIgnoreErrors()
public java.lang.String getFileName()
load
or load
functions. If no file was used, returns
null.
public boolean load(java.lang.String file) throws java.io.IOException
file
- the grid map file
java.io.IOException
- in case of I/O error or
when there are parsing errors in the file (only when errors
are not ignored).public boolean load(java.io.File file) throws java.io.IOException
file
- the grid map file
java.io.IOException
- in case of I/O error or
when there are parsing errors in the file (only when errors
are not ignored).public boolean refresh() throws java.io.IOException
load
or load
functions.
The file will only be reloaded if it has changed
since the last time.
java.io.IOException
- in case of I/O error or
when there are parsing errors in the file (only when errors
are not ignored).public boolean load(java.io.InputStream input) throws java.io.IOException
input
- the input stream that contains the gridmap
definitions.
java.io.IOException
- in case of I/O error or
when there are parsing errors in the input (only when errors
are not ignored).public java.lang.String getUserID(java.lang.String globusID)
globusID
- globusID
public java.lang.String[] getUserIDs(java.lang.String globusID)
globusID
- globusID
public boolean checkUser(java.lang.String globusID, java.lang.String userID)
globusID
- globus IDuserID
- userID
public java.lang.String getGlobusID(java.lang.String userID)
userID
- local user name
public java.lang.String[] getAllGlobusID(java.lang.String userID)
userID
- local user name
public void map(java.lang.String globusID, java.lang.String userID)
public static java.lang.String normalizeDN(java.lang.String globusID)
public static java.lang.String getDefaultGridMapLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |