Skip to content
Snippets Groups Projects
Commit eddd4ada authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-6741 make OrganisationsEinheitRootProcessor conditional

parent 3b05075e
No related branches found
No related tags found
1 merge request!1Ozg 6741 organisationseinheit link
...@@ -27,6 +27,7 @@ import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*; ...@@ -27,6 +27,7 @@ import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;
import java.util.List; import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.hateoas.EntityModel; import org.springframework.hateoas.EntityModel;
import org.springframework.hateoas.Link; import org.springframework.hateoas.Link;
import org.springframework.hateoas.server.RepresentationModelProcessor; import org.springframework.hateoas.server.RepresentationModelProcessor;
...@@ -38,6 +39,7 @@ import lombok.RequiredArgsConstructor; ...@@ -38,6 +39,7 @@ import lombok.RequiredArgsConstructor;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
@ConditionalOnProperty(prefix = FeatureToggleProperties.FEATURE_TOGGLE_PREFIX, name = "organisationsEinheiten", havingValue = "true")
class OrganisationsEinheitRootProcessor implements RepresentationModelProcessor<EntityModel<Root>> { class OrganisationsEinheitRootProcessor implements RepresentationModelProcessor<EntityModel<Root>> {
static final String REL_ORGANISATIONS_EINHEITEN = "organisationsEinheiten"; static final String REL_ORGANISATIONS_EINHEITEN = "organisationsEinheiten";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment