|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManagementService
UserManagementService allows a DBA (Database Administrator) or a user with appropriate privileges to manage users, and their individual Privileges.
This interface class is proprietary to the Sedna XML:DB API and is not part of the original XML:DB specification.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
---|---|
void |
createUser(java.lang.String username,
java.lang.String password)
Create a new user with a specified password. |
Privileges |
getPrivileges(java.lang.String username)
Retrieve a Privileges data access object for a particular user in this database. |
java.lang.String[] |
listUsers()
Retrieve a list of all current users held within the database. |
void |
removeUser(java.lang.String username)
Drops a user from the database based on their username. |
void |
setPassword(java.lang.String username,
java.lang.String password)
Sets a new password for the user who has the given username. |
Methods inherited from interface org.xmldb.api.base.Service |
---|
getName, getVersion, setCollection |
Methods inherited from interface org.xmldb.api.base.Configurable |
---|
getProperty, setProperty |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
Method Detail |
---|
void createUser(java.lang.String username, java.lang.String password) throws XMLDBException
username
- the user id of the new user account, must be unique.password
- the initial password value for the new user account.
XMLDBException
void removeUser(java.lang.String username) throws XMLDBException
username
- the user account which will be deleted.
XMLDBException
Privileges getPrivileges(java.lang.String username) throws XMLDBException
username
- is the user id of the user to gain a Privileges data access object.
XMLDBException
void setPassword(java.lang.String username, java.lang.String password) throws XMLDBException
username
- the user who will get a new password.password
- the new password for the specified username account.
XMLDBException
java.lang.String[] listUsers() throws XMLDBException
XMLDBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |