Skip to content

Commit

Permalink
Remove obsolete object managers (emulated, wf)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 13, 2019
1 parent dc6e0ec commit ad421e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 172 deletions.
Expand Up @@ -128,7 +128,7 @@ public ObjectTypes superType() {
}

public enum ObjectManager {
PROVISIONING, TASK_MANAGER, MODEL, WORKFLOW, REPOSITORY, EMULATED
PROVISIONING, TASK_MANAGER, MODEL, REPOSITORY
}

@NotNull private final QName type;
Expand Down
@@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
Expand Down

This file was deleted.

Expand Up @@ -148,8 +148,6 @@ public class ModelController implements ModelService, TaskService, WorkflowServi
@Autowired private SchemaTransformer schemaTransformer;
@Autowired private ObjectMerger objectMerger;
@Autowired private SystemObjectCache systemObjectCache;
@Autowired private EmulatedSearchProvider emulatedSearchProvider;
@Autowired private CacheRegistry cacheRegistry;
@Autowired private ClockworkMedic clockworkMedic;
@Autowired private ChangeNotificationDispatcher dispatcher;
@Autowired
Expand Down Expand Up @@ -787,10 +785,7 @@ public <T extends ObjectType> SearchResultList<PrismObject<T>> searchObjects(Cla
QNameUtil.setTemporarilyTolerateUndeclaredPrefixes(true);
}
switch (searchProvider) {
case EMULATED:
list = emulatedSearchProvider.searchObjects(type, processedQuery, options, result);
break;
case REPOSITORY:
case REPOSITORY:
list = cacheRepositoryService.searchObjects(type, processedQuery, options, result);
break;
case PROVISIONING:
Expand Down Expand Up @@ -928,8 +923,8 @@ public <T extends Containerable> SearchResultList<T> searchContainers(
if (GetOperationOptions.isRaw(rootOptions)) { // MID-2218
QNameUtil.setTemporarilyTolerateUndeclaredPrefixes(true);
}
//noinspection SwitchStatementWithTooFewBranches
switch (ctx.manager) {
case EMULATED: list = emulatedSearchProvider.searchContainers(type, query, options, result); break;
case REPOSITORY: list = cacheRepositoryService.searchContainers(type, query, options, result); break;
default: throw new IllegalStateException();
}
Expand Down Expand Up @@ -1176,7 +1171,6 @@ private void processSearchException(Throwable e, GetOperationOptions rootOptions
case REPOSITORY: message = "Couldn't search objects in repository"; break;
case PROVISIONING: message = "Couldn't search objects in provisioning"; break;
case TASK_MANAGER: message = "Couldn't search objects in task manager"; break;
case WORKFLOW: message = "Couldn't search objects in workflow engine"; break;
default: message = "Couldn't search objects"; break; // should not occur
}
LoggingUtils.logUnexpectedException(LOGGER, message, e);
Expand Down

0 comments on commit ad421e7

Please sign in to comment.