net.nemerosa.ontrack.model.labels.LabelProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.labels
import net.nemerosa.ontrack.model.structure.Project
/**
* Defines a service which can computes automatic [labels][Label] for
* projects.
*/
interface LabelProvider {
/**
* Display name for the provider
*/
val name: String
/**
* Is this label provided enabled?
*/
val isEnabled: Boolean
/**
* Gets the list of labels for a project
*/
fun getLabelsForProject(project: Project): List
}
/**
* Gets the [LabelProviderDescription] for a [LabelProvider].
*/
val LabelProvider.description: LabelProviderDescription
get() = LabelProviderDescription(
this::class.java.name,
name
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy