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

.admingui.console-jca-plugin.3.1.1-b11.source-code.adminObjectEdit.jsf Maven / Gradle / Ivy

There is a newer version: 3.2-b06
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 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"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy