.admingui.console-jms-plugin.3.1.1.source-code.jmsConnectionButtons.inc Maven / Gradle / Ivy
$attribute{resultEndPoint});
// Create connector-resource
mapPut(map="#{pageSession.valueMap2}" key="target" value="domain");
gf.createEntity(endpoint="#{pageSession.parentUrl}/#{pageSession.childType2}",
attrs="#{pageSession.valueMap2}", convertToFalse="#{pageSession.convertToFalseList2}", result => $attribute{resultEndPoint3});
//The selected Targets will be available as #{pageSession.selectedTargets}, which is an array.
//We need to create source-ref of the selected targets.
convertArrayToCommaString(array="#{pageSession.selectedTargets}" commaString="#{requestScope.cs}")
convertStringtoList(str="#{requestScope.cs}" result="#{requestScope.targetList}");
//println("===========#{requestScope.targetList}");
setAttribute(key="nTargets" value="#{requestScope.targetList.size()}");
dec(number="#{requestScope.nTargets}" value="#{requestScope.endRef}");
forLoop(end="#{requestScope.endRef}" varName="nn"){
setAttribute(key="targetName" value="#{requestScope.targetList[nn]}");
gf.checkIfEndPointExist(endpoint="#{sessionScope.REST_URL}/servers/server/#{requestScope.targetName}", exists="#{requestScope.isServer}");
if (#{requestScope.isServer}){
setAttribute(key="endp" value="#{sessionScope.REST_URL}/servers/server/#{requestScope.targetName}/resource-ref");
}
if (!#{requestScope.isServer}){
setAttribute(key="endp" value="#{sessionScope.REST_URL}/clusters/cluster/#{requestScope.targetName}/resource-ref");
}
createMap(result="#{requestScope.refsMap}")
mapPut(map="#{requestScope.refsMap}" key="id" value="#{pageSession.valueMap2['name']}")
mapPut(map="#{requestScope.refsMap}" key="enabled" value="#{pageSession.resourceRef['enabled']}")
mapPut(map="#{requestScope.refsMap}" key="target" value="#{requestScope.targetName}")
gf.createEntity(endpoint="#{requestScope.endp}" attrs="#{requestScope.refsMap}" convertToFalse={"enabled"});
}
if (#{pageSession.hasPropertyTable}){
getUIComponent(clientId="$pageSession{propertyTableRowGroupId}", component=>$attribute{tableRowGroup});
getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}", Rows=>$attribute{newList});
removeEmptyProps(props="#{newList}" modifiedProps="#{newList}");
javaToJSON(obj="$attribute{newList}" json="#{requestScope.tmpJSON}");
urlencode(value="#{pageSession.valueMap.name}" encoding="UTF-8" result="#{pageSession.encodedName}");
gf.restRequest(endpoint="#{pageSession.parentUrl}/#{pageSession.childType}/#{pageSession.encodedName}/property.json",
method="POST", data="#{requestScope.tmpJSON}", result="#{requestScope.restResponse}");
}
gf.redirect(page="#{parentPage}")
/>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy