Examples of IJndiManager


Examples of org.jasig.portal.jndi.IJndiManager

                    log.error("GuestUserPreferencesManager::registerSession() : " +
                        "unable to find UP for a profile \""+upl.getProfileName()+"\"");
                    newState.complete_up=new UserPreferences(upl);
                }

                final IJndiManager jndiManager = JndiManagerLocator.getJndiManager();
               
                // Initialize the JNDI context for this user
                final HttpSession session = req.getSession();
                final String userId = Integer.toString(m_person.getID());
                final String layoutId = Integer.toString(upl.getLayoutId());
                final Document userLayoutDom = newState.ulm.getUserLayoutDOM();
                jndiManager.initializeSessionContext(session, userId, layoutId, userLayoutDom);
            } else {
                // there is no user-defined mapping for this particular browser.
                // user should be redirected to a browser-registration page.
                newState.unmapped_user_agent = true;
                if (log.isDebugEnabled())
View Full Code Here

Examples of org.jasig.portal.jndi.IJndiManager

     * @param userId id of a current user
     * @param layoutId id of the layout used by the user
     * @return a channel <code>InitialContext</code> value
     */
    private Context getChannelJndiContext(String sessionId, String userId, String layoutId) {
        final IJndiManager jndiManager = JndiManagerLocator.getJndiManager();
        final JndiTemplate jndiTemplate = jndiManager.getJndiTemplate();
       
        final Thread currentThread = Thread.currentThread();
        final ClassLoader contextClassLoader = currentThread.getContextClassLoader();
        try {
            //Switch to the portal classloader to ensure the JNDI lookup works
View Full Code Here

Examples of org.jasig.portal.jndi.IJndiManager

                if (completeUserPreferences != null) {
                    session.setAttribute(USER_PREFERENCES_KEY, completeUserPreferences);
                }

                try {
                    final IJndiManager jndiManager = JndiManagerLocator.getJndiManager();
                   
                    // Initialize the JNDI context for this user
                    final String userId = Integer.toString(this.person.getID());
                    final String layoutId = Integer.toString(userProfile.getLayoutId());
                    final Document userLayoutDom = userLayoutManager.getUserLayoutDOM();
                    jndiManager.initializeSessionContext(session, userId, layoutId, userLayoutDom);
                }
                catch(PortalException ipe) {
                  logger.error( "UserPreferencesManager(): Could not properly initialize user context", ipe);
                }
            }
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.