Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class ClaimMapping implements Serializable {
@XmlElement(name = "MandatoryClaim")
private boolean isMandatory;

@XmlElement(name = "RuntimeClaim")
private boolean isRuntimeValue = false;

/**
* @param localClaimUri
* @param remoteClaimUri
Expand Down Expand Up @@ -147,6 +150,10 @@ public static ClaimMapping build(OMElement claimMappingOM) {
claimMapping.setMandatory(Boolean.parseBoolean(element.getText()));
}

if ("RuntimeClaim".equals(elementName)) {
claimMapping.setRuntimeValue(Boolean.parseBoolean(element.getText()));
}
Comment on lines +153 to +155

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log Improvement Suggestion No: 1

Suggested change
if ("RuntimeClaim".equals(elementName)) {
claimMapping.setRuntimeValue(Boolean.parseBoolean(element.getText()));
}
if ("RuntimeClaim".equals(elementName)) {
claimMapping.setRuntimeValue(Boolean.parseBoolean(element.getText()));
log.debug("Runtime claim value set to: " + element.getText());
}


}

return claimMapping;
Expand Down Expand Up @@ -267,4 +274,20 @@ public void setMandatory(boolean isMandatory) {

this.isMandatory = isMandatory;
}

/**
* @return
*/
public boolean isRuntimeValue() {

return isRuntimeValue;
}

/**
* @param isRuntimeValue
*/
public void setRuntimeValue(boolean isRuntimeValue) {

this.isRuntimeValue = isRuntimeValue;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
<xs:element minOccurs="0" name="mandatory" type="xs:boolean"/>
<xs:element minOccurs="0" name="remoteClaim" nillable="true" type="ax2177:Claim"/>
<xs:element minOccurs="0" name="requested" type="xs:boolean"/>
<xs:element minOccurs="0" name="runtimeValue" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Claim">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@
<xs:element minOccurs="0" name="mandatory" type="xs:boolean"/>
<xs:element minOccurs="0" name="remoteClaim" nillable="true" type="ax2163:Claim"/>
<xs:element minOccurs="0" name="requested" type="xs:boolean"/>
<xs:element minOccurs="0" name="runtimeValue" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Claim">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<xs:element minOccurs="0" name="mandatory" type="xs:boolean"/>
<xs:element minOccurs="0" name="remoteClaim" nillable="true" type="ax2408:Claim"/>
<xs:element minOccurs="0" name="requested" type="xs:boolean"/>
<xs:element minOccurs="0" name="runtimeValue" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Claim">
Expand Down
Loading