Skip to content

Commit

Permalink
Fixed linkref qname matching (MID-5001)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Dec 19, 2018
1 parent ee7eaa8 commit ce9e79d
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2013 Evolveum
* Copyright (c) 2010-2018 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,6 +16,7 @@

package com.evolveum.midpoint.repo.sql.data.common.other;

import com.evolveum.midpoint.util.QNameUtil;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
import org.apache.commons.lang.Validate;

Expand Down Expand Up @@ -76,7 +77,7 @@ public static RReferenceOwner getOwnerByQName(Class<? extends ObjectType> typeCl
Validate.notNull(qname, "QName must not be null");

for (RReferenceOwner owner : values()) {
if (qname.equals(owner.getElementName()) && owner.getTypeClass().isAssignableFrom(typeClass)) {
if (QNameUtil.match(qname, owner.getElementName()) && owner.getTypeClass().isAssignableFrom(typeClass)) {
return owner;
}
}
Expand Down

0 comments on commit ce9e79d

Please sign in to comment.