Examples of WARConfigData


Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        request.setAttribute(DATA_PARAMETER, data);
    }

    public String actionAfterView(ActionRequest request, ActionResponse response, MultiPageModel model)
            throws PortletException, IOException {
        WARConfigData data = getWARSessionData(request);
        data.readEnvironmentData(request);
        if (data.needsResolveReferences()) {
            return REFERENCES_MODE + "-before";
        }
        if (data.getSecurity() != null) {
            return SECURITY_MODE + "-before";
        }
        return DEPENDENCIES_MODE + "-before";
    }
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        if (fileName != null && fileName.length() > 0) {
            File uploadedFile = uploadFile(fileItem);
            ApplicationInfo applicationInfo = JSR88_Util.createApplicationInfo(request, uploadedFile);
            ConfigurationModuleType applicationType = applicationInfo.getType();
            if (ConfigurationModuleType.WAR == applicationType) {
                WARConfigData data = setNewWARSessionData(request);
                data.setUploadedWarUri(uploadedFile.toURI().toString());
                data.parseWeb((WebModule) (applicationInfo.getModules().toArray()[0]));
                return ENVIRONMENT_MODE + "-before";
            }
            if (ConfigurationModuleType.EAR == applicationType) {
                EARConfigData earConfigData = setNewEARSessionData(request);
                earConfigData.parseEAR(applicationInfo);
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model)
            throws PortletException, IOException {
        WARConfigData data = getWARSessionData(request);
        data.createDeploymentPlan();
        request.setAttribute(DATA_PARAMETER, data);
    }
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        request.setAttribute(DATA_PARAMETER, data);
    }

    public String actionAfterView(ActionRequest request, ActionResponse response, MultiPageModel model)
            throws PortletException, IOException {
        WARConfigData data = getWARSessionData(request);
        data.setDeploymentPlan(request.getParameter(DEPLOYMENT_PLAN_PARAMETER));
        return DEPLOY_STATUS_MODE;
    }
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        public void save(ActionResponse response, PortletSession session) {
        }
    }

    public WARConfigData setNewWARSessionData(PortletRequest request) {
        WARConfigData configData = new WARConfigData();
        request.getPortletSession().setAttribute(WAR_CONFIG_DATA_ID, configData);
        return configData;
    }
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model)
            throws PortletException, IOException {
        WARConfigData data = getWARSessionData(request);
        request.setAttribute(DATA_PARAMETER, data);
        request.setAttribute(DEPLOYED_EJBS_PARAMETER, JSR77_Util.getDeployedEJBs(request));
        request.setAttribute(DEPLOYED_JDBC_CONNECTION_POOLS_PARAMETER, JSR77_Util.getJDBCConnectionPools(request));
        request.setAttribute(DEPLOYED_JMS_CONNECTION_FACTORIES_PARAMETER, JSR77_Util.getJMSConnectionFactories(request));
        request.setAttribute(DEPLOYED_JMS_DESTINATIONS_PARAMETER, JSR77_Util.getJMSDestinations(request));
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        request.setAttribute(DEPLOYED_JAVAMAIL_SESSIONS_PARAMETER, JSR77_Util.getJavaMailSessions(request));
    }

    public String actionAfterView(ActionRequest request, ActionResponse response, MultiPageModel model)
            throws PortletException, IOException {
        WARConfigData data = getWARSessionData(request);
        data.readReferencesData(request);
        if (data.isReferenceNotResolved()) {
            portlet.addErrorMessage(request, portlet.getLocalizedString(request, "errorMsg03"));
            return getMode() + "-before";
        }
        if (data.getSecurity() != null) {
            return SECURITY_MODE + "-before";
        }
        return DEPENDENCIES_MODE + "-before";
    }
View Full Code Here

Examples of org.apache.geronimo.console.configcreator.configData.WARConfigData

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model)
            throws PortletException, IOException {
        WARConfigData data = getWARSessionData(request);
        try {
            File moduleFile = new File(new URI(data.getUploadedWarUri()));

            File planFile = File.createTempFile("console-deployment", ".xml");
            planFile.deleteOnExit();
            FileWriter out = new FileWriter(planFile);
            out.write(data.getDeploymentPlan());
            out.close();

            String[] status = JSR88_Util.deploy(request, moduleFile, planFile);
            if (null != status[1] && 0 != status[1].length()) {
                portlet.addErrorMessage(request, portlet.getLocalizedString(request, status[0]), status[1]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.