Package org.gridsphere.portlet.service

Examples of org.gridsphere.portlet.service.PortletServiceUnavailableException


        throws PortletServiceUnavailableException {
        log.debug("Entering init");

        String myproxyServer = getInitParameter(config, "MYPROXY_SERVER");
        if ( isBlank(myproxyServer) ) {
            throw new PortletServiceUnavailableException("No MYPROXY_SERVER parameter");
        }
        String myproxyServerPort =
            getInitParameter(config, "MYPROXY_SERVER_PORT");
        this.myproxyRep = initMyProxy(myproxyServer, myproxyServerPort);
        if ( log.isDebugEnabled() ) {
            log.debug("MyProxy Server: " + this.myproxyRep.getHost());
            log.debug("MyProxy Server Port: " + this.myproxyRep.getPort());
        }

        String myproxyCa = getInitParameter(config, "MYPROXY_CA");
        if ( isBlank(myproxyCa) ) {
            throw new PortletServiceUnavailableException("No MYPROXY_CA parameter");
        }
        String myproxyCaPort = getInitParameter(config, "MYPROXY_CA_PORT");
        this.myproxyCa = initMyProxy(myproxyCa, myproxyCaPort);
        if ( log.isDebugEnabled() ) {
            log.debug("MyProxy CA: " + this.myproxyCa.getHost());
View Full Code Here


        throws PortletServiceUnavailableException
    {
        requestSubjectDn =
            config.getServletContext().getInitParameter(REQUEST_SUBJECT_DN);
        if (requestSubjectDn == null || requestSubjectDn.equals("")) {
            throw new PortletServiceUnavailableException("Parameter \""
                    + REQUEST_SUBJECT_DN + "\" required");
        }
        String trustOpenIdProvider =
            config.getServletContext().getInitParameter(TRUST_OPENID_PROVIDER);
        trustProvider = new TrustOpenIdProvider(trustOpenIdProvider);
View Full Code Here

        try {
            String mappingFile = ctx.getRealPath(MAPPING_FILE);
            String hibernateProps = ctx.getRealPath(HIBERNATE_PROPERTIES);
            this.pm = new PersistenceManager(mappingFile, hibernateProps);
        } catch (Exception e) {
            throw new PortletServiceUnavailableException(e);
        }

        String configCredentialToFile =
            config.getInitParameter("SaveCredentialsToFile");
        log.debug("configCredentialToFile = " + configCredentialToFile);
        if (configCredentialToFile == null ||
            configCredentialToFile.equals("") ||
            configCredentialToFile.equalsIgnoreCase("false") ||
            configCredentialToFile.equalsIgnoreCase("no"))  {
            log.info("Credentials will not be saved to files");
            return;
        }
        saveCredentialsToFile = true;
        String configCredentialDir =
            config.getInitParameter("ActiveCredentialDir");
        if (configCredentialDir == null || configCredentialDir.equals(""))  {
            try {
                File tempFile = File.createTempFile("temp", "temp");
                activeCredentialDir = tempFile.getParent();
            } catch (IOException e) {
                throw new PortletServiceUnavailableException(e.getMessage());
            }
        } else {
            activeCredentialDir = configCredentialDir;
        }
        if ( ! activeCredentialDir.endsWith(File.separator)) {
View Full Code Here

TOP

Related Classes of org.gridsphere.portlet.service.PortletServiceUnavailableException

Copyright © 2018 www.massapicom. 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.