public interface ConceptService
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
createDraftModel(com.fasterxml.jackson.databind.JsonNode input)
Create a new draft model, resulting in a new Concept descriptor.
|
void |
deleteDraftModel(java.lang.String conceptName)
Mark a draft concept class to be deleted
|
com.fasterxml.jackson.databind.JsonNode |
getModelReferences(java.lang.String conceptName)
Returns a json containing the names of the entities that reference the given concept class.
|
static ConceptService |
on(com.marklogic.client.DatabaseClient db)
Creates a ConceptService object for executing operations on the database server.
|
static ConceptService |
on(com.marklogic.client.DatabaseClient db,
com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
Creates a ConceptService object for executing operations on the database server.
|
void |
saveConceptModels(com.fasterxml.jackson.databind.JsonNode models)
Save an array of concept models
|
com.fasterxml.jackson.databind.JsonNode |
updateDraftModelInfo(java.lang.String name,
com.fasterxml.jackson.databind.JsonNode input)
Update the description of an existing concept class.
|
static ConceptService on(com.marklogic.client.DatabaseClient db)
db
- provides a client for communicating with the database serverstatic ConceptService 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 updateDraftModelInfo(java.lang.String name, com.fasterxml.jackson.databind.JsonNode input)
name
- The name of the modelinput
- provides inputvoid deleteDraftModel(java.lang.String conceptName)
conceptName
- The name of the concept in the modelvoid saveConceptModels(com.fasterxml.jackson.databind.JsonNode models)
models
- The array of concept modelscom.fasterxml.jackson.databind.JsonNode createDraftModel(com.fasterxml.jackson.databind.JsonNode input)
input
- provides inputcom.fasterxml.jackson.databind.JsonNode getModelReferences(java.lang.String conceptName)
conceptName
- The name of the concept class