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

applications.redeployFrame.jsf Maven / Gradle / Ivy

The newest version!




    
    $page{appName});
        urlencode(value="#{pageSession.appName}" encoding="UTF-8" result="#{pageSession.encodedAppName}");
        setPageSessionAttribute(key="selfUrl" value="#{sessionScope.REST_URL}/applications/application/#{pageSession.encodedAppName}");
        //test the app still exists.
        gf.checkIfEndPointExist(endpoint="#{pageSession.selfUrl}" exists="#{requestScope.exist}");
        if (! #{requestScope.exist}){
            gf.redirect(page="#{request.contextPath}/common/applications/applications.jsf");
        }
        createMap(result="#{pageSession.deployMap}")
        mapPut(map="#{pageSession.deployMap}", key="appName", value="#{pageSession.appName}");
        setPageSessionAttribute(key="convertToFalse" value={"precompilejsp", "verify" ,"availabilityEnabled"})

        //we want to show/preserver java-web-start-enabled, and preserveAppsScopedResourcs

        //if the jws prop does not exist,it is true by default. GLASSFISH-19109
        mapPut(map="#{pageSession.deployMap}" key="$constant{org.glassfish.admingui.common.deployment.DFDeploymentProperties.DEPLOY_OPTION_JAVA_WEB_START_ENABLED}" value="true")
        mapPut(map="#{pageSession.deployMap}" key="implicitCdiEnabled" value="true")
        gf.restRequest(endpoint="#{pageSession.selfUrl}/property.json" method="GET" result="#{requestScope.propTable}");
        setPageSessionAttribute(key="listOfProps" value="#{requestScope.propTable.data.extraProperties.properties}");
        foreach(var="oneProp" list="#{pageSession.listOfProps}"){
            if ("#{requestScope.oneProp.name}=preserveAppScopedResources"){
                mapPut(map="#{pageSession.deployMap}" key="preserveAppScopedResources" value="#{requestScope.oneProp.value}")
            }
            if ("#{requestScope.oneProp.name}=$constant{org.glassfish.admingui.common.deployment.DFDeploymentProperties.DEPLOY_OPTION_JAVA_WEB_START_ENABLED}"){
                mapPut(map="#{pageSession.deployMap}" key="$constant{org.glassfish.admingui.common.deployment.DFDeploymentProperties.DEPLOY_OPTION_JAVA_WEB_START_ENABLED}" value="#{requestScope.oneProp.value}")
            }
            if ("#{requestScope.oneProp.name}=implicitCdiEnabled"){
                mapPut(map="#{pageSession.deployMap}" key="implicitCdiEnabled" value="#{requestScope.oneProp.value}")
            }
        }
        gf.checkIfEndPointExist(endpoint="#{pageSession.selfUrl}/module/#{pageSession.encodedAppName}/engine/osgi" exists="#{requestScope.osgiExist}");
        if(#{requestScope.osgiExist}){
            mapPut(map="#{pageSession.deployMap}", key="type", value="osgi");
        }
        gf.getEntityAttrs(endpoint="#{pageSession.selfUrl}" valueMap="#{pageSession.valueMap}");
        setPageSessionAttribute(key="listPageLink" value="#{gf_application_list_page}");
        setPageSessionAttribute(key="extraArgs" value="#{gf_application_extra_args}");
        setPageSessionAttribute(key="cancelPage" value="#{gf_application_cancel_page}");
        gf.onlyDASExist(onlyDAS="#{pageSession.onlyDASExist}");
        if ("!(#{pageSession.onlyDASExist})"){
            mapPut(map="#{pageSession.deployMap}", key="availabilityEnabled", value="#{pageSession.valueMap['availabilityEnabled']}");
        }
    />
    
  
#include "/common/shared/alertMsg_1.inc"
    
        
        
            
            $attribute{needUpload});
                if (${needUpload}){
                    uploadFileToTempDir(file="#{uploadedFile}" uploadedTempFile=>$attribute{filePath}, origPath=>$attribute{origPath});
                }
                if (! ${needUpload}){
                    setAttribute(key="origPath", value="#{dirPath}");
                    setAttribute(key="filePath", value="#{dirPath}");
                }
                gf.redeploy(filePath="$attribute{filePath}", deployMap="#{pageSession.deployMap}" convertToFalse="#{pageSession.convertToFalse}"
                        valueMap="#{pageSession.valueMap}" );
                if(${needUpload}) {
                    gf.logger(logString="Deleting the file uploaded to Temp Directory", level="INFO");
                    deleteFileFromTempDir(deleteTempFile="$attribute{filePath}");
                }
		gf.redirect(page="#{request.contextPath}/common/removeFrame.jsf?#{request.contextPath}/common/applications/applications.jsf&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}&bare=true");
                />
        
        
        //    
        
    
    
    
    
            
#include "/common/applications/fileComponent.jsf"
    "

"





© 2015 - 2025 Weber Informatics LLC | Privacy Policy