net.nemerosa.ontrack.boot.ui.AbstractProjectEntityController Maven / Gradle / Ivy
package net.nemerosa.ontrack.boot.ui;
import net.nemerosa.ontrack.model.structure.ID;
import net.nemerosa.ontrack.model.structure.ProjectEntity;
import net.nemerosa.ontrack.model.structure.ProjectEntityType;
import net.nemerosa.ontrack.model.structure.StructureService;
import net.nemerosa.ontrack.ui.controller.AbstractResourceController;
public abstract class AbstractProjectEntityController extends AbstractResourceController {
protected final StructureService structureService;
public AbstractProjectEntityController(StructureService structureService) {
this.structureService = structureService;
}
protected ProjectEntity getEntity(ProjectEntityType entityType, ID id) {
return entityType.getEntityFn(structureService).apply(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy