io.bdeploy.bhive.op.InsertManifestRefOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Public API including dependencies, ready to be used for integrations and plugins.
package io.bdeploy.bhive.op;
import io.bdeploy.bhive.BHive;
import io.bdeploy.bhive.model.Manifest;
import io.bdeploy.bhive.model.ObjectId;
import io.bdeploy.bhive.objects.ObjectDatabase;
/**
* Create a {@link Manifest} reference in the {@link ObjectDatabase} and returns
* its {@link ObjectId}.
*/
public class InsertManifestRefOperation extends BHive.TransactedOperation {
private Manifest.Key manifest;
@Override
public ObjectId callTransacted() throws Exception {
return getObjectManager().insertManifestReference(manifest);
}
/**
* Set the {@link Manifest} to reference.
*/
public InsertManifestRefOperation setManifest(Manifest.Key manifest) {
this.manifest = manifest;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy