.admingui.console-jca-plugin.3.1.1-b11.source-code.adminObjectEdit.jsf Maven / Gradle / Ivy
$pageSession{valueMap});
//To get the resource types
createMap(result="#{pageSession.attrsMap}");
mapPut(map="#{pageSession.attrsMap}" key="rarName" value="#{pageSession.valueMap.resAdapter}");
gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/get-admin-object-interface-names"
attrs="#{pageSession.attrsMap}"
method="GET"
result="#{requestScope.result}");
setAttribute(key="resourceTypes" value="#{requestScope.result.data.extraProperties.adminObjectInterfaceNames}");
setAttribute(key="zero" value="$int{0}");
setAttribute(key="size" value="#{requestScope.resourceTypes.size()}");
if (#{requestScope.size} > #{requestScope.zero}) {
if("!(#{pageSession.valueMap['resType']})") {
mapPut(map="#{pageSession.valueMap}" key="resType" value="#{requestScope.resourceTypes[0]}");
}
mapPut(map="#{pageSession.attrsMap}" key="adminObjectInterface" value="#{pageSession.valueMap.resType}");
//To get the get-admin-object-class-names
gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/get-admin-object-class-names"
attrs="#{pageSession.attrsMap}"
method="GET"
result="#{requestScope.result}");
setAttribute(key="classNames" value="#{requestScope.result.data.extraProperties.adminObjectClassNames}");
setAttribute(key="size" value="#{requestScope.resourceTypes.size()}");
if (#{requestScope.size} > #{requestScope.zero}) {
if(!#{pageSession.valueMap['className']}) {
mapPut(map="#{pageSession.valueMap}" key="className" value="#{requestScope.classNames[0]}");
}
}
}
/>
#include "/common/resourceNode/resourceEditTabs.inc"
#include "/common/shared/alertMsg.inc"
#include "/common/resourceNode/resourceEditPageButtons.inc"
"
#include "/jca/adminObjectAttr.inc"
#include "/common/shared/propertyDescTable.inc"
"
#include "/common/shared/changeButtonsJS.inc"