Examples of SessionInfoImpl


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

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

        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

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

    }

    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

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

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

        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

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

    }

    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

Examples of org.uberfire.rpc.impl.SessionInfoImpl

    private SessionInfo sessionInfo;

    @PostConstruct
    public void onStartup() {
        this.sessionInfo = new SessionInfoImpl();
    }
View Full Code Here

Examples of org.uberfire.rpc.impl.SessionInfoImpl

    @Produces
    @RequestScoped
    @Default
    public static SessionInfo getSessionInfo() {
        return new SessionInfoImpl( RpcContext.getQueueSession().getSessionId(), SecurityFactory.getIdentity() );
    }
View Full Code Here

Examples of org.uberfire.rpc.impl.SessionInfoImpl

        }
        return sessionInfo;
    }

    private void setupSessionInfo() {
        sessionInfo = new SessionInfoImpl( identity );
    }
View Full Code Here

Examples of org.uberfire.rpc.impl.SessionInfoImpl

            user = "<system>";
        } else {
            user = context.getUser();
        }

        return new SessionInfoImpl( sessionId, new IdentityImpl( user ) );
    }
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.