public interface SecurityService
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
describeRole(java.lang.String roleName)
Returns the roles, privileges, default permissions, and default collections for the given role
|
com.fasterxml.jackson.databind.JsonNode |
describeUser(java.lang.String username)
Returns the roles, privileges, default permissions, and default collections for the given username
|
static SecurityService |
on(com.marklogic.client.DatabaseClient db)
Creates a SecurityService object for executing operations on the database server.
|
static SecurityService |
on(com.marklogic.client.DatabaseClient db,
com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
Creates a SecurityService object for executing operations on the database server.
|
static SecurityService on(com.marklogic.client.DatabaseClient db)
db - provides a client for communicating with the database serverstatic SecurityService on(com.marklogic.client.DatabaseClient db, com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
db - provides a client for communicating with the database serverserviceDeclaration - substitutes a custom implementation of the servicecom.fasterxml.jackson.databind.JsonNode describeRole(java.lang.String roleName)
roleName - Name of the MarkLogic role to describecom.fasterxml.jackson.databind.JsonNode describeUser(java.lang.String username)
username - Name of the MarkLogic user to describe