Skip to content

Commit

Permalink
fix unsupported using SchemaType with generic repo
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Apr 24, 2024
1 parent f526639 commit 9275783
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import java.util.*;
import javax.xml.namespace.QName;

import com.evolveum.midpoint.util.logging.Trace;
import com.evolveum.midpoint.util.logging.TraceManager;

import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import org.jetbrains.annotations.NotNull;
Expand All @@ -35,6 +38,8 @@

public class SchemaCache implements Cache {

private static final Trace LOGGER = TraceManager.getTrace(SchemaCache.class);

private PrismContext prismContext;
private RepositoryService repositoryService;

Expand All @@ -61,6 +66,11 @@ public void unregister() {

public void init() {

if (repositoryService.supports(SchemaType.class)) {
LOGGER.debug("Skip processing schema object from database, because SchemaType isn't supported.");
return;
}

Map<QName, ComplexTypeDefinition> dbExtensions = new HashMap<>();

//TODO cleanup
Expand Down

0 comments on commit 9275783

Please sign in to comment.