.admingui.console-jms-plugin.3.1.1.source-code.jmsDestinationButtons.inc Maven / Gradle / Ivy
$attribute{nameMap});
mapPut(map="$attribute{nameMap}", key="name", value="Name");
mapPut(map="$attribute{nameMap}", key="value", value="#{pageSession.physDestName}");
listAdd(list="#{pageSession.tableList}", value="$attribute{nameMap}");
removeEmptyProps(props="#{pageSession.tableList}" modifiedProps="#{pageSession.tableList}");
javaToJSON(obj="#{pageSession.tableList}" json="#{requestScope.tmpJSON}");
gf.restRequest(endpoint="#{pageSession.selfUrl}/property.json", method="POST", data="#{requestScope.tmpJSON}", result="#{requestScope.restResponse}");
prepareSuccessfulMsg();
gf.redirect(page="#{selfPage}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
$attribute{resultEndPoint});
//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.valueMap['name']}")
mapPut(map="#{requestScope.refsMap}" key="enabled" value="#{pageSession.valueMap2['enabled']}")
mapPut(map="#{requestScope.refsMap}" key="target" value="#{requestScope.targetName}")
gf.createEntity(endpoint="#{requestScope.endp}" attrs="#{requestScope.refsMap}" convertToFalse={"enabled"});
}
getUIComponent(clientId="$pageSession{propertyTableRowGroupId}", component=>$attribute{tableRowGroup});
getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}", Rows=>$attribute{newList});
createMap(result=>$attribute{nameMap});
mapPut(map="$attribute{nameMap}", key="name", value="Name");
mapPut(map="$attribute{nameMap}", key="value", value="#{pageSession.physDestName}");
listAdd(list="$attribute{newList}", value="$attribute{nameMap}");
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