public class PathNamingScheme
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
capabilityPattern |
static java.lang.String |
capabilitySyntax |
static java.util.regex.Pattern |
containerPattern |
static java.lang.String |
containerSyntax |
static java.util.regex.Pattern |
groupPattern |
static java.lang.String |
groupSyntax |
static org.apache.log4j.Logger |
log |
static java.util.regex.Pattern |
qualifiedRolePattern |
static java.lang.String |
qualifiedRoleSyntax |
static java.util.regex.Pattern |
rolePattern |
static java.lang.String |
roleSyntax |
Constructor and Description |
---|
PathNamingScheme() |
Modifier and Type | Method and Description |
---|---|
static void |
checkGroup(java.lang.String groupName)
This methods checks that the string passed as argument complies with the syntax used
by voms to identify groups.
|
static void |
checkRole(java.lang.String roleName)
This methods checks that the string passed as argument complies with the syntax used
by voms to identify roles.
|
static void |
checkSyntax(java.lang.String containerName)
This methods checks that the string passed as argument complies with the voms FQAN syntax.
|
static java.lang.String |
getGroupName(java.lang.String containerName)
This method extracts group name information from the FQAN passed as argument.
|
static java.lang.String |
getRoleName(java.lang.String containerName)
This method extracts the role name information from the FQAN passed as argument.
|
static boolean |
isGroup(java.lang.String groupName)
This methods checks that the FQAN passed as argument identifies a voms group.
|
static boolean |
isQualifiedRole(java.lang.String roleName)
This methods checks that the FQAN passed as argument identifies a qualified voms role, i.e.,
a role defined in the context of a voms group.
|
static boolean |
isRole(java.lang.String roleName)
This methods checks that the FQAN passed as argument identifies a voms role.
|
static java.lang.String |
toOldQualifiedRoleSyntax(java.lang.String qualifiedRole) |
public static final org.apache.log4j.Logger log
public static final java.lang.String containerSyntax
public static final java.lang.String groupSyntax
public static final java.lang.String roleSyntax
public static final java.lang.String qualifiedRoleSyntax
public static final java.lang.String capabilitySyntax
public static final java.util.regex.Pattern containerPattern
public static final java.util.regex.Pattern groupPattern
public static final java.util.regex.Pattern rolePattern
public static final java.util.regex.Pattern qualifiedRolePattern
public static final java.util.regex.Pattern capabilityPattern
public static void checkSyntax(java.lang.String containerName)
containerName
- the string that must be checked for compatibility with FQAN syntax.VOMSSyntaxException
- If there's an error in the FQAN syntax.public static void checkGroup(java.lang.String groupName)
groupName
- the string that has to be checked.VOMSSyntaxException
- If the string passed as argument doens not comply with the voms sytax.public static void checkRole(java.lang.String roleName)
roleName
- VOMSSyntaxException
- If the string passed as argument doens not comply with the voms sytax.public static boolean isGroup(java.lang.String groupName)
groupName
- the string to check.public static boolean isRole(java.lang.String roleName)
roleName
- the string to check.public static boolean isQualifiedRole(java.lang.String roleName)
roleName
- the string to check.public static java.lang.String getRoleName(java.lang.String containerName)
containerName
- the FQANpublic static java.lang.String getGroupName(java.lang.String containerName)
containerName
- the FQANpublic static java.lang.String toOldQualifiedRoleSyntax(java.lang.String qualifiedRole)
Copyright © 2013. All Rights Reserved.