Search in sources :

Example 1 with RemoveConcept

use of com.bakdata.conquery.models.messages.namespaces.specific.RemoveConcept in project conquery by bakdata.

the class AdminDatasetProcessor method deleteConcept.

/**
 * Deletes a concept.
 */
public synchronized void deleteConcept(Concept<?> concept) {
    final Namespace namespace = datasetRegistry.get(concept.getDataset().getId());
    namespace.getStorage().removeConcept(concept.getId());
    getJobManager().addSlowJob(new SimpleJob("sendToAll: remove " + concept.getId(), () -> namespace.sendToAll(new RemoveConcept(concept))));
}
Also used : RemoveConcept(com.bakdata.conquery.models.messages.namespaces.specific.RemoveConcept) SimpleJob(com.bakdata.conquery.models.jobs.SimpleJob) Namespace(com.bakdata.conquery.models.worker.Namespace)

Aggregations

SimpleJob (com.bakdata.conquery.models.jobs.SimpleJob)1 RemoveConcept (com.bakdata.conquery.models.messages.namespaces.specific.RemoveConcept)1 Namespace (com.bakdata.conquery.models.worker.Namespace)1