Class GridMap
java.lang.Object
org.globus.gsi.gridmap.GridMap
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GridMapLocal
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final char[]private static final intprivate static final char[]private static final intprivate Fileprivate static I18nprivate booleanprivate longprivate static org.apache.commons.logging.Logprotected Mapprivate static final char[]private static final intprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks 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.static StringgetGlobusID(String userID) Returns globus ID associated with the specified local user name.booleanReturns whether errors in the gridmap file are ignored.Returns first local user name mapped to the specified globusID.String[]getUserIDs(String globusID) Returns local user names mapped to the specified globusID.private static booleankeyWordPresent(char[] args, int startIndex, char[] keyword, int length) booleanLoads grid map definition from a given file.booleanload(InputStream input) Loads grid map file definition from a given input stream.booleanLoads grid map definition from a given file.voidstatic StringnormalizeDN(String globusID) booleanrefresh()voidsetIgnoreErrors(boolean ignoreErrors) Sets whether errors in the gridmap file should be ignored.
-
Field Details
-
i18n
-
logger
private static org.apache.commons.logging.Log logger -
COMMENT_CHARS
- See Also:
-
EMAIL_KEYWORD_1
private static final char[] EMAIL_KEYWORD_1 -
EMAIL_KEYWORD_2
private static final char[] EMAIL_KEYWORD_2 -
UID_KEYWORD
private static final char[] UID_KEYWORD -
EMAIL_KEYWORD_1_L
private static final int EMAIL_KEYWORD_1_L- See Also:
-
EMAIL_KEYWORD_2_L
private static final int EMAIL_KEYWORD_2_L- See Also:
-
UID_KEYWORD_L
private static final int UID_KEYWORD_L- See Also:
-
EMAIL_KEYWORD
- See Also:
-
USERID_KEYWORD
- See Also:
-
map
-
file
-
lastModified
private long lastModified -
ignoreErrors
private boolean ignoreErrors
-
-
Constructor Details
-
GridMap
public GridMap()
-
-
Method Details
-
setIgnoreErrors
public void setIgnoreErrors(boolean ignoreErrors) Sets whether errors in the gridmap file should be ignored. Errors are not ignored by default.- Parameters:
ignoreErrors- if true, errors in the gridmap file will be ignored (warnings will be logged). If false, an exception will be raised on errors.
-
getIgnoreErrors
public boolean getIgnoreErrors()Returns whether errors in the gridmap file are ignored.- Returns:
- true if errors in the gridmap file are ignored. False, otherwise.
-
getFileName
-
load
Loads grid map definition from a given file.- Parameters:
file- the grid map file- Returns:
- true if the file was parsed and loaded successfully. False otherwise.
- Throws:
IOException- in case of I/O error or when there are parsing errors in the file (only when errors are not ignored).
-
load
Loads grid map definition from a given file.- Parameters:
file- the grid map file- Returns:
- true if the file was parsed and loaded successfully. False otherwise.
- Throws:
IOException- in case of I/O error or when there are parsing errors in the file (only when errors are not ignored).
-
refresh
Reloads the gridmap from a file only if the gridmap was initially loaded using theloadorloadfunctions. The file will only be reloaded if it has changed since the last time.- Returns:
- true if the file was parsed and refreshed successfully. False otherwise.
- Throws:
IOException- in case of I/O error or when there are parsing errors in the file (only when errors are not ignored).
-
load
Loads grid map file definition from a given input stream. The input stream is not closed in case of an error.- Parameters:
input- the input stream that contains the gridmap definitions.- Returns:
- true if the input was parsed successfully. False otherwise.
- Throws:
IOException- in case of I/O error or when there are parsing errors in the input (only when errors are not ignored).
-
getUserID
-
getUserIDs
-
checkUser
-
getGlobusID
-
getAllGlobusID
-
map
-
keyWordPresent
private static boolean keyWordPresent(char[] args, int startIndex, char[] keyword, int length) -
normalizeDN
-
getDefaultGridMapLocation
-