All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bdeploy.bhive.op.ManifestDeleteOperation Maven / Gradle / Ivy

Go to download

Public API including dependencies, ready to be used for integrations and plugins.

There is a newer version: 7.3.6
Show newest version
package io.bdeploy.bhive.op;

import static io.bdeploy.common.util.RuntimeAssert.assertNotNull;

import io.bdeploy.bhive.BHive;
import io.bdeploy.bhive.model.Manifest;
import io.bdeploy.bhive.objects.ManifestDatabase;
import io.bdeploy.bhive.objects.ObjectDatabase;

/**
 * Operation to delete a single manifest from the {@link ManifestDatabase} of
 * the {@link BHive}.
 * 

* Note that underlying recursively required objects are NOT deleted from the * {@link ObjectDatabase}. See {@link PruneOperation}. */ public class ManifestDeleteOperation extends BHive.Operation { private Manifest.Key toDelete; @Override public Manifest.Key call() throws Exception { assertNotNull(toDelete, "Manifest to delete not set"); getManifestDatabase().removeManifest(toDelete); return toDelete; } /** * Set the {@link Manifest} to be deleted. */ public ManifestDeleteOperation setToDelete(Manifest.Key toDelete) { this.toDelete = toDelete; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy