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

io.bdeploy.jersey.actions.ActionBroadcastDto Maven / Gradle / Ivy

Go to download

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

There is a newer version: 7.4.0
Show newest version
package io.bdeploy.jersey.actions;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.bdeploy.common.actions.ActionScope;

public class ActionBroadcastDto {

    public boolean exclusive;
    public String description;
    public ActionScope scope;

    public Action action;
    public ActionExecution execution;

    @JsonCreator
    public ActionBroadcastDto(@JsonProperty("action") Action action, @JsonProperty("execution") ActionExecution execution) {
        this.action = action;
        this.execution = execution;

        // this cannot be derived from the enum on the TypeScript side, so we extract it here.
        this.exclusive = action.getType().isExclusive();
        this.description = action.getType().getDescription();
        this.scope = action.getType().getScope();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy