.main.admingui.console-jca-plugin.8.0.0-M5.source-code.adminObjectNew.jsf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-jca-plugin Show documentation
Show all versions of console-jca-plugin Show documentation
Connectors plugin bundle for GlassFish Admin Console
$pageSession{valueMap});
mapPut(map="#{pageSession.valueMap}" key="enabled" value="true");
setPageSessionAttribute(key="reload" value="#{false}" );
//To get the resource types
if ("#{pageSession.valueMap.resAdapter}"){
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.resourceTypes}"){
setAttribute(key="size" value="$int{0}");
}
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]}");
}
}
//To get the admin-object-config-props
gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/get-admin-object-config-properties"
attrs="#{pageSession.attrsMap}"
method="GET"
result="#{requestScope.result}");
gf.getConfigPropsInfo(extraProps="#{requestScope.result.data.extraProperties}", key="adminObjectConfigProps", result="#{pageSession.tableList}" hasConfidentialProps="#{pageSession.hasConfidential}");
}
}
/>
"
#include "/common/shared/alertMsg_1.inc"
#include "/common/resourceNode/resourceEditPageButtons.inc"
"
#include "/jca/adminObjectAttr.inc"
#include "/common/resourceNode/confidentialPropsTable.inc"
"
#include "/common/shared/changeButtonsJS.inc"
© 2015 - 2024 Weber Informatics LLC | Privacy Policy