|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.dbxml.db.client.xmlrpc.ConnectionManager
com.dbxml.db.common.security.AccessManagerClient
AccessManagerClient
| Field Summary |
| Fields inherited from class com.dbxml.db.client.xmlrpc.ConnectionManager |
CONNECTION, SECURE, STANDARD |
| Constructor Summary | |
AccessManagerClient(dbXMLClient dbxmlClient)
|
|
| Method Summary | |
void |
addRole(java.lang.String roleID)
addRole adds a Role to the Database |
void |
addRoleToUser(java.lang.String userID,
java.lang.String roleID)
addRoleToUser adds the specified roleID to the specified userID |
void |
addUser(java.lang.String userID)
addUser adds a new user to the Database |
void |
grant(java.lang.String path,
java.lang.String roleID,
int permissions)
grant grants access rights to the specified Role ID for the specified path. |
java.util.Map |
listAccessControl(java.lang.String path)
listAccessControl returns an access control list for the specified path. |
java.lang.String[] |
listRoles()
listRoles returns a list of the available Roles |
java.lang.String[] |
listRolesForUser(java.lang.String userID)
listRolesForUser lists the Roles that the specified userID is assigned |
java.lang.String[] |
listUsers()
listUsers returns a list of the available Users |
java.lang.String[] |
listUsersForRole(java.lang.String roleID)
listUsersForRole lists the Users that are assigned to a specified Role ID |
void |
removeRole(java.lang.String roleID)
removeRole removes a Role from the Database |
void |
removeRoleFromUser(java.lang.String userID,
java.lang.String roleID)
removeRoleFromUser removes the specified roleID from the specified userID |
void |
removeUser(java.lang.String userID)
removeUser removes the specified userID from the Database |
void |
revoke(java.lang.String path,
java.lang.String roleID,
int permissions)
revoke revokes access rights from the specified role ID for the specified path. |
void |
setUserPassword(java.lang.String userID,
java.lang.String password)
setUserPassword sets the User's password. |
| Methods inherited from class com.dbxml.db.client.xmlrpc.ConnectionManager |
execute, executeBinary, executeBoolean, executeInt, executeList, executeMap, executeString, getClientPath, getProperties, getProperty, getXmlRpcClient, listProperties, setClientPath, setProperty |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AccessManagerClient(dbXMLClient dbxmlClient)
| Method Detail |
public java.lang.String[] listUsers()
throws dbXMLException
dbXMLException
public void addUser(java.lang.String userID)
throws dbXMLException
userID - The User's ID
dbXMLException
public void setUserPassword(java.lang.String userID,
java.lang.String password)
throws dbXMLException
userID - The User's IDpassword - The User's new password
dbXMLException
public java.lang.String[] listRolesForUser(java.lang.String userID)
throws dbXMLException
userID - The User's ID
dbXMLException
public void addRoleToUser(java.lang.String userID,
java.lang.String roleID)
throws dbXMLException
userID - The User's IDroleID - the Role ID to assign
dbXMLException
public void removeRoleFromUser(java.lang.String userID,
java.lang.String roleID)
throws dbXMLException
userID - The User's IDroleID - the Role ID to remove
dbXMLException
public void removeUser(java.lang.String userID)
throws dbXMLException
userID - The User's ID
dbXMLException
public java.lang.String[] listRoles()
throws dbXMLException
dbXMLException
public java.lang.String[] listUsersForRole(java.lang.String roleID)
throws dbXMLException
roleID - The Role ID
dbXMLException
public void addRole(java.lang.String roleID)
throws dbXMLException
roleID - The Role ID to add
dbXMLException
public void removeRole(java.lang.String roleID)
throws dbXMLException
roleID - The Role ID to remove
dbXMLException
public java.util.Map listAccessControl(java.lang.String path)
throws dbXMLException
path - The Path to check
dbXMLException
public void grant(java.lang.String path,
java.lang.String roleID,
int permissions)
throws dbXMLException
path - The path to modifyroleID - The Role to grant permissions topermissions - A permission set to grant
dbXMLException
public void revoke(java.lang.String path,
java.lang.String roleID,
int permissions)
throws dbXMLException
path - The path to modifyroleID - The Role to grant permissions topermissions - A permission set to grant
dbXMLException
|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||