Skip to content

Commit

Permalink
[WFCORE-5234] Avoid ModelNode.asPropertyList() in high level security…
Browse files Browse the repository at this point in the history
…-domain marshaling
  • Loading branch information
bstansberry committed Aug 31, 2015
1 parent 7814cd2 commit b46c5ed
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -186,10 +186,11 @@ public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingCon

if (node.hasDefined(SECURITY_DOMAIN) && node.get(SECURITY_DOMAIN).asInt() > 0) {
writer.writeStartElement(Element.SECURITY_DOMAINS.getLocalName());
for (Property policy : node.get(SECURITY_DOMAIN).asPropertyList()) {
ModelNode securityDomains = node.get(SECURITY_DOMAIN);
for (String policy : securityDomains.keys()) {
writer.writeStartElement(Element.SECURITY_DOMAIN.getLocalName());
writer.writeAttribute(Attribute.NAME.getLocalName(), policy.getName());
ModelNode policyDetails = policy.getValue();
writer.writeAttribute(Attribute.NAME.getLocalName(), policy);
ModelNode policyDetails = securityDomains.get(policy);
SecurityDomainResourceDefinition.CACHE_TYPE.marshallAsAttribute(policyDetails, writer);
writeSecurityDomainContent(writer, policyDetails);
writer.writeEndElement();
Expand Down

0 comments on commit b46c5ed

Please sign in to comment.