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

net.nemerosa.ontrack.extension.jenkins.JenkinsUserMenuExtension Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.extension.jenkins;

import net.nemerosa.ontrack.extension.api.UserMenuExtension;
import net.nemerosa.ontrack.extension.support.AbstractExtension;
import net.nemerosa.ontrack.model.support.Action;
import net.nemerosa.ontrack.model.security.GlobalFunction;
import net.nemerosa.ontrack.model.security.GlobalSettings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class JenkinsUserMenuExtension extends AbstractExtension implements UserMenuExtension {

    @Autowired
    public JenkinsUserMenuExtension(JenkinsExtensionFeature feature) {
        super(feature);
    }

    @Override
    public Class getGlobalFunction() {
        return GlobalSettings.class;
    }

    @Override
    public Action getAction() {
        return Action.of("jenkins-configurations", "Jenkins configurations", "configurations");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy