Forum Discussion
Equinix_Inc_Sup
14 years agoOccasional Contributor
When we append from groovy script i dont think there is way to entitize.I should have added the elements as nodes instead of string.
Correct way:
def ps= "MANAGE_USER_PERMISSIONS_ON_ASSETS"
def ds= "This is a client admin who has the right to manage finace details"
def permission = node.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Permission"), )
permission.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Code"), ps )
permission.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Description"), ds )
Wrong way:
def ds= "<"+"ns5:Code>MANAGE_USER_PERMISSIONS_ON_ASSETS</ns5:Code> <ns5:Description>This is a client admin who has the right to manage all users under the party</ns5:Description>"
= node.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Permission"), ds )
Correct way:
def ps= "MANAGE_USER_PERMISSIONS_ON_ASSETS"
def ds= "This is a client admin who has the right to manage finace details"
def permission = node.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Permission"), )
permission.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Code"), ps )
permission.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Description"), ds )
Wrong way:
def ds= "<"+"ns5:Code>MANAGE_USER_PERMISSIONS_ON_ASSETS</ns5:Code> <ns5:Description>This is a client admin who has the right to manage all users under the party</ns5:Description>"
= node.appendNode(new QName( "http://www.equinix.com/gse/service/schema/permission/entity/v2_2", "ns5:Permission"), ds )
Related Content
- 5 years ago
Recent Discussions
- 2 hours ago
- 3 days ago