All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.main.admingui.console-jca-plugin.8.0.0-M5.source-code.adminObjectEdit.jsf Maven / Gradle / Ivy

There is a newer version: 8.0.0-JDK17-M7
Show newest version







    $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 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.buildConfidentialPropsTable(propsMaps="#{requestScope.propTable.data.extraProperties.properties}"
                                       confidentialList="#{requestScope.result.data.extraProperties.confidentialConfigProps}"
                                       result="#{pageSession.tableList}"
                                       hasConfidentialProps="#{pageSession.hasConfidential}");

        //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_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