Package org.apache.jackrabbit.spi.commons

Examples of org.apache.jackrabbit.spi.commons.SessionInfoImpl



    //-----------------------------------< SessionInfo creation and release >---

    public SessionInfo obtain(Credentials credentials, String workspaceName) throws RepositoryException {
        SessionInfoImpl si = new SessionInfoImpl();
        si.setWorkspacename(workspaceName);
        if (credentials instanceof SimpleCredentials) {
            si.setUserID(((SimpleCredentials) credentials).getUserID());
        }

        return si;
    }
View Full Code Here


        return si;
    }

    public SessionInfo obtain(SessionInfo sessionInfo, String workspaceName) throws RepositoryException {
        SessionInfoImpl si = new SessionInfoImpl();
        si.setWorkspacename(workspaceName);
        if (sessionInfo instanceof SessionImpl) {
            si.setUserID(((SessionImpl) sessionInfo).getUserID());
        }
        return si;
    }
View Full Code Here

    }

    public SessionInfo impersonate(SessionInfo sessionInfo, Credentials credentials)
            throws RepositoryException {

        SessionInfoImpl si = new SessionInfoImpl();
        if (credentials instanceof SimpleCredentials) {
            si.setUserID(((SimpleCredentials) credentials).getUserID());
        }
        if (sessionInfo instanceof SessionImpl) {
            si.setUserID(((SessionImpl) sessionInfo).getUserID());
        }

        return si;
    }
View Full Code Here


    //-----------------------------------< SessionInfo creation and release >---

    public SessionInfo obtain(Credentials credentials, String workspaceName) throws RepositoryException {
        SessionInfoImpl si = new SessionInfoImpl();
        si.setWorkspacename(workspaceName);
        if (credentials instanceof SimpleCredentials) {
            si.setUserID(((SimpleCredentials) credentials).getUserID());
        }

        return si;
    }
View Full Code Here

        return si;
    }

    public SessionInfo obtain(SessionInfo sessionInfo, String workspaceName) throws RepositoryException {
        SessionInfoImpl si = new SessionInfoImpl();
        si.setWorkspacename(workspaceName);
        if (sessionInfo instanceof SessionImpl) {
            si.setUserID(((SessionImpl) sessionInfo).getUserID());
        }
        return si;
    }
View Full Code Here

    }

    public SessionInfo impersonate(SessionInfo sessionInfo, Credentials credentials)
            throws RepositoryException {

        SessionInfoImpl si = new SessionInfoImpl();
        if (credentials instanceof SimpleCredentials) {
            si.setUserID(((SimpleCredentials) credentials).getUserID());
        }
        if (sessionInfo instanceof SessionImpl) {
            si.setUserID(((SessionImpl) sessionInfo).getUserID());
        }

        return si;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi.commons.SessionInfoImpl

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.