|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleManagementService
RoleManagementService allows Sedna XML:DB users to add, delete, list and and modify roles within the Sedna database.
Roles can be granted to multiple users, so changing privileges for multiple users at once can become easier instead of changing privileges for each user individually.
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 |
createRole(java.lang.String roleId)
Create a new role within the database, the name of the role must be unique and is specified by the roleId argument. |
Privileges |
getPrivileges(java.lang.String roleId)
Retrieve a Privileges data access object for this role in the database. |
java.lang.String[] |
listRoles()
Retrieve a list of all current roles held within the database. |
void |
removeRole(java.lang.String roleId)
Removes a role within the database based on the given roleId argument. |
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 createRole(java.lang.String roleId) throws XMLDBException
roleId
- is the unique name of the new role to be created.
XMLDBException
void removeRole(java.lang.String roleId) throws XMLDBException
roleId
- the id of the role to be removed from this database.
XMLDBException
Privileges getPrivileges(java.lang.String roleId) throws XMLDBException
roleId
- the id of the role for which you will receive the privileges data access object.
XMLDBException
java.lang.String[] listRoles() throws XMLDBException
XMLDBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |