net.nemerosa.ontrack.model.security.AccountGroupMapping 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.security;
import lombok.Data;
import net.nemerosa.ontrack.model.form.Form;
import net.nemerosa.ontrack.model.form.Selection;
import net.nemerosa.ontrack.model.structure.Entity;
import net.nemerosa.ontrack.model.structure.ID;
import java.util.List;
@Data
public class AccountGroupMapping implements Entity {
private final ID id;
private final String type;
private final String name;
private final AccountGroup group;
public static Form form(List groups) {
return Form.create()
.name()
.with(
Selection.of("group")
.label("Group")
.items(groups)
)
;
}
public Form asForm(List groups) {
return form(groups)
.fill("name", name)
.fill("group", group.getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy