Package org.dspace.services.model

Examples of org.dspace.services.model.Session


        return requestId;
    }

    private void endRequest(String requestId, Exception failure) {
        if (requestId != null) {
            Session session = null;
            Request req = requests.get(requestId);
            if (req != null) {
                session = req.getSession();
            }
           
View Full Code Here


     * @see org.dspace.services.SessionService#getCurrentSessionId()
     */
    public String getCurrentSessionId() {
        Request req = requests.getCurrent();
        if (req != null) {
            Session session = req.getSession();
            if (session != null) {
                return session.getSessionId();
            }
        }

        return null;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.dspace.services.SessionService#getCurrentUserId()
     */
    public String getCurrentUserId() {
        String userId = null;
        Session session = getCurrentSession();
        if (session != null) {
            userId = session.getUserId();
        }
        return userId;
    }
View Full Code Here

    /**
     * Test method for {@link org.dspace.services.sessions.SessionRequestServiceImpl#getCurrentSession()}.
     */
    @Test
    public void testGetCurrentSession() {
        Session current = sessionRequestService.getCurrentSession();
        assertNull(current);
    }
View Full Code Here

TOP

Related Classes of org.dspace.services.model.Session

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.