Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
allow inverted retrieve of attributes
  • Loading branch information
jj committed Mar 5, 2019
1 parent cd289d1 commit e3c322a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ public EntityDescriptorRepresentation createRepresentationFromDescriptor(org.ope
!overrideProperty.getPersistType().equals(overrideProperty.getDisplayType())) {
attributeValues = overrideProperty.getPersistValue().equals(getValueFromXMLObject(jpaAttribute.getAttributeValues().get(0)));
} else {
attributeValues = Boolean.valueOf(((XSBoolean) jpaAttribute.getAttributeValues()
attributeValues = Boolean.valueOf(overrideProperty.getInvert()) ^ Boolean.valueOf(((XSBoolean) jpaAttribute.getAttributeValues()
.get(0)).getStoredValue());
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ edu.internet2.tier.shibboleth.admin.ui.domain.Attribute getAttributeFromObjectAn
overrideProperty.getAttributeFriendlyName(),
Boolean.valueOf((String) o));
} else {
Boolean value = Boolean.valueOf(overrideProperty.getInvert()) ? !(Boolean)o : (Boolean)o;
Boolean value = Boolean.valueOf(overrideProperty.getInvert()) ^ (Boolean)o;
return attributeUtility.createAttributeWithBooleanValue(overrideProperty.getAttributeName(),
overrideProperty.getAttributeFriendlyName(),
value);
Expand Down

0 comments on commit e3c322a

Please sign in to comment.