|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.admin.GUMSAPIImpl
public class GUMSAPIImpl
GUMSAPI implementation
Constructor Summary | |
---|---|
GUMSAPIImpl()
|
Method Summary | |
---|---|
void |
addAccountRange2(String accountPoolMapperName,
String range)
Add a range of pool accounts |
void |
backupConfiguration(String name)
Backup current configuration with a name |
void |
deleteBackupConfiguration(String name)
Delete a backup configuration by date |
String |
generateEmailMapfile(String hostname)
Generate email gridmap file to be able to contact user if needed |
String |
generateFqanMapfile(String hostname)
Generate fqanmap file used to validate mappings |
String |
generateGrid3UserVoMap(String hostname)
Generate the inverse entry->VO map used by OSG. |
String |
generateGridMapfile(String hostname)
Generate gridmap file used by gateway in case GUMS is down and by certain applications like dCache |
String |
generateOsgUserVoMap(String hostname)
Generate the inverse entry->VO map used by OSG. |
String |
generateVoGridMapfile(String hostname)
Genereate Vo grid map file used for accounting purposes |
Collection |
getBackupNames()
Get a list of dates for which there is a backup |
Configuration |
getConfiguration()
Get current configuration |
String |
getCurrentDn()
Get currently logged in user DN |
String |
getPoolAccountAssignments(String accountPoolMapperName)
Get current pool account assignments |
String |
getVersion()
Get current version of GUMS |
void |
manualGroupAdd(String persistanceFactory,
String group,
String userDN)
|
void |
manualGroupAdd2(String manualUserGroupName,
String userDN)
Add a userDN to a manual user group |
void |
manualGroupAdd3(String manualUserGroupName,
String userDN,
String fqan,
String email)
Add a userDN to a manual user group |
void |
manualGroupRemove(String persistanceFactory,
String group,
String userDN)
|
void |
manualGroupRemove2(String manualUserGroupName,
String userDN)
Remove a userDN from a manual user group |
void |
manualGroupRemove3(String manualUserGroupName,
String userDN,
String fqan)
Remove a userDN from a manual user group |
void |
manualMappingAdd(String persistanceFactory,
String group,
String userDN,
String account)
|
void |
manualMappingAdd2(String manualAccountMapperName,
String userDN,
String account)
Add a userDN to account mapping |
void |
manualMappingRemove(String persistanceFactory,
String group,
String userDN)
|
void |
manualMappingRemove2(String manualAccountMapperName,
String userDN)
Removes a userDN from an account mapping |
String |
mapAccount(String accountName)
Map an account to a list of grid DNs |
String |
mapUser(String hostname,
String userDN,
String fqan)
Map a grid DN to an account |
void |
mergeConfiguration(Configuration conf,
String newConfUri,
String persistenceFactory,
String hostToGroupMapping)
Merge configuration into current configuration |
void |
poolAddAccount(String persistanceFactory,
String group,
String accountName)
|
void |
removeAccountRange(String accountPoolMapperName,
String range)
Remove a range of pool accounts |
void |
restoreConfiguration(String name)
Restore a configuration by date |
void |
setConfiguration(Configuration configuration)
Set the configuration |
void |
unassignAccountRange(String accountPoolMapperName,
String range)
Unassign all accounts in a pool |
void |
updateGroups()
Update members in user groups by querying VO servers - may be time consuming |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GUMSAPIImpl()
Method Detail |
---|
public void addAccountRange2(String accountPoolMapperName, String range)
GUMSAPI
addAccountRange2
in interface GUMSAPI
public void backupConfiguration(String name)
GUMSAPI
backupConfiguration
in interface GUMSAPI
name
- as Stringpublic void deleteBackupConfiguration(String name)
GUMSAPI
deleteBackupConfiguration
in interface GUMSAPI
public String generateEmailMapfile(String hostname)
GUMSAPI
generateEmailMapfile
in interface GUMSAPI
public String generateFqanMapfile(String hostname)
GUMSAPI
generateFqanMapfile
in interface GUMSAPI
public String generateGrid3UserVoMap(String hostname)
GUMSAPI
generateGrid3UserVoMap
in interface GUMSAPI
hostname
- Host name to generate the map for.
public String generateGridMapfile(String hostname)
GUMSAPI
generateGridMapfile
in interface GUMSAPI
public String generateOsgUserVoMap(String hostname)
GUMSAPI
generateOsgUserVoMap
in interface GUMSAPI
hostname
- Host name to generate the map for.
public String generateVoGridMapfile(String hostname)
GUMSAPI
generateVoGridMapfile
in interface GUMSAPI
public Collection getBackupNames()
GUMSAPI
getBackupNames
in interface GUMSAPI
public Configuration getConfiguration()
GUMSAPI
getConfiguration
in interface GUMSAPI
public String getPoolAccountAssignments(String accountPoolMapperName)
GUMSAPI
getPoolAccountAssignments
in interface GUMSAPI
public String getVersion()
GUMSAPI
getVersion
in interface GUMSAPI
public void manualGroupAdd2(String manualUserGroupName, String userDN)
GUMSAPI
manualGroupAdd2
in interface GUMSAPI
public void manualGroupAdd3(String manualUserGroupName, String userDN, String fqan, String email)
GUMSAPI
manualGroupAdd3
in interface GUMSAPI
public void manualGroupRemove2(String manualUserGroupName, String userDN)
GUMSAPI
manualGroupRemove2
in interface GUMSAPI
public void manualGroupRemove3(String manualUserGroupName, String userDN, String fqan)
GUMSAPI
manualGroupRemove3
in interface GUMSAPI
public void manualMappingAdd2(String manualAccountMapperName, String userDN, String account)
GUMSAPI
manualMappingAdd2
in interface GUMSAPI
public void mergeConfiguration(Configuration conf, String newConfUri, String persistenceFactory, String hostToGroupMapping)
GUMSAPI
mergeConfiguration
in interface GUMSAPI
public void manualMappingRemove2(String manualAccountMapperName, String userDN)
GUMSAPI
manualMappingRemove2
in interface GUMSAPI
public String mapAccount(String accountName)
GUMSAPI
mapAccount
in interface GUMSAPI
public String mapUser(String hostname, String userDN, String fqan)
GUMSAPI
mapUser
in interface GUMSAPI
public void removeAccountRange(String accountPoolMapperName, String range)
GUMSAPI
removeAccountRange
in interface GUMSAPI
public void restoreConfiguration(String name) throws Exception
GUMSAPI
restoreConfiguration
in interface GUMSAPI
Exception
public void setConfiguration(Configuration configuration) throws Exception
GUMSAPI
setConfiguration
in interface GUMSAPI
Exception
public void unassignAccountRange(String accountPoolMapperName, String range)
GUMSAPI
unassignAccountRange
in interface GUMSAPI
public void updateGroups()
GUMSAPI
updateGroups
in interface GUMSAPI
public String getCurrentDn()
GUMSAPI
getCurrentDn
in interface GUMSAPI
public void manualGroupAdd(String persistanceFactory, String group, String userDN)
manualGroupAdd
in interface GUMSAPI
public void manualGroupRemove(String persistanceFactory, String group, String userDN)
manualGroupRemove
in interface GUMSAPI
public void manualMappingAdd(String persistanceFactory, String group, String userDN, String account)
manualMappingAdd
in interface GUMSAPI
public void manualMappingRemove(String persistanceFactory, String group, String userDN)
manualMappingRemove
in interface GUMSAPI
public void poolAddAccount(String persistanceFactory, String group, String accountName)
poolAddAccount
in interface GUMSAPI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |