Skip to content

Commit

Permalink
Add midpoint.getRelationRegistry() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 13, 2018
1 parent fc841cb commit 4b2495d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Expand Up @@ -23,8 +23,10 @@
import javax.xml.namespace.QName;

import com.evolveum.midpoint.prism.Item;
import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.prism.PrismValue;
import com.evolveum.midpoint.prism.path.ItemPath;
import com.evolveum.midpoint.schema.RelationRegistry;
import com.evolveum.midpoint.util.LocalizableMessage;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -891,10 +893,8 @@ <T extends ObjectType> int countObjects(Class<T> type, ObjectQuery query)
* wrong OID format
*/
OperationResult testResource(String resourceOid) throws ObjectNotFoundException;



List<String> toList(String... s);
List<String> toList(String... s);

Collection<String> getManagersOids(UserType user) throws SchemaException, ObjectNotFoundException, SecurityViolationException;

Expand Down Expand Up @@ -1159,4 +1159,8 @@ <F extends ObjectType> ModelContext<F> previewChanges(Collection<ObjectDelta<? e
ModelExecuteOptions options)
throws CommunicationException, ObjectNotFoundException, ObjectAlreadyExistsException, ConfigurationException,
SchemaException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException;

PrismContext getPrismContext();

RelationRegistry getRelationRegistry();
}
Expand Up @@ -112,6 +112,7 @@ public class MidpointFunctionsImpl implements MidpointFunctions {
private static final Trace LOGGER = TraceManager.getTrace(MidpointFunctionsImpl.class);

@Autowired private PrismContext prismContext;
@Autowired private RelationRegistry relationRegistry;
@Autowired private ModelService modelService;
@Autowired private ModelInteractionService modelInteractionService;
@Autowired private ModelObjectResolver modelObjectResolver;
Expand All @@ -133,10 +134,16 @@ public String hello(String name) {
return "Hello " + name;
}

@Override
public PrismContext getPrismContext() {
return prismContext;
}

@Override
public RelationRegistry getRelationRegistry() {
return relationRegistry;
}

@Override
public List<String> toList(String... s) {
return Arrays.asList(s);
Expand Down

0 comments on commit 4b2495d

Please sign in to comment.