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

.admingui.console-jca-plugin.3.1-b17.source-code.adminObjectEdit.jsf Maven / Gradle / Ivy








    $attribute{tableList});
    //set the following for including buttons.inc
    setPageSessionAttribute(key="edit" value="#{true}" );
    setPageSessionAttribute(key="showDefaultButton" value="#{true}" );
    setPageSessionAttribute(key="showCancelButton" value="#{true}" );
    setPageSessionAttribute(key="hasPropertySheet" value="#{true}" );
    setPageSessionAttribute(key="hasPropertyTable" value="#{true}" );
    setPageSessionAttribute(key="reload" value="#{false}" );
    setPageSessionAttribute(key="objectNameStr2", value="amx:pp=/domain/servers/server[server],type=resource-ref,name=#{pageSession.Name}");
    //REST related
    setPageSessionAttribute(key="childType2", value="resource-ref");
    setPageSessionAttribute(key="selfUrl2", value="#{sessionScope.REST_URL}/servers/server/server/#{pageSession.childType2}/#{pageSession.encodedName}");
    gf.getEntityAttrs(endpoint="#{pageSession.selfUrl2}", valueMap="#{pageSession.valueMap2}");
    
    setPageSessionAttribute(key="convertToFalseList2" value={"Enabled"});
    setPageSessionAttribute(key="has2Objects" value="#{true}" );

    gf.getAdminObjectResourceWizard(
        reload="#{reload}"
        attrMap="#{pageSession.tmpMap}"
        currentMap="#{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}");
    gf.getMessageProps(messageListProps="#{requestScope.result.data.children}"
                       id="message"
                       keyList="#{requestScope.resourceTypes}");
    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}");
        gf.getMessageProps(messageListProps="#{requestScope.result.data.children}"
                           id="message"
                           keyList="#{requestScope.classNames}");
        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.getMessageProps(messageListProps="#{requestScope.result.data.children}"
                               id="message"
                               propsMap="#{requestScope.adminObjProps}");
        setAttribute(key="propsList" value="#{requestScope.adminObjProps.data.extraProperties.properties}");
        gf.listCombine(list="#{requestScope.tableList}" list2="#{requestScope.propsList}");
    }
    />


#include "/common/shared/alertMsg.inc"
    
    
    
#include "/common/shared/editPageButtons.inc"
    
    "

#include "/jca/adminObjectAttr.inc" #include "/common/shared/propertyDescTable.inc"
"
#include "/common/shared/changeButtonsJS.inc"




© 2015 - 2025 Weber Informatics LLC | Privacy Policy