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

io.bdeploy.bhive.op.InsertManifestRefOperation 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 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