Package org.apache.jackrabbit.rmi.repository

Examples of org.apache.jackrabbit.rmi.repository.URLRemoteRepository


    }

    private Session getSessionByURL(ConnectionInfo connectionInfo) {
        Session session = null;
        try {
            Repository repository = new URLRemoteRepository(connectionInfo.getRepositoryURL());
            String workspaceName = connectionInfo.getWorkspaceName();
            String username = connectionInfo.getUsername();
            String password = connectionInfo.getPassword();

            if (workspaceName == null || workspaceName.equals("") || workspaceName.equals("default")) {

                session = repository.login(new SimpleCredentials(username, password.toCharArray()));
            } else {
                session = repository.login(new SimpleCredentials(username, password.toCharArray()),
                    workspaceName);
            }

        } catch (LoginException e) {
            log.debug("Failed to get JCR session by URLRemoteRepository");
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.rmi.repository.URLRemoteRepository

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.