org.jasig.portal.jndi
Class JndiManagerImpl

java.lang.Object
  extended by org.springframework.jndi.JndiAccessor
      extended by org.jasig.portal.jndi.JndiManagerImpl
All Implemented Interfaces:
EventListener, IJndiManager, InitializingBean, ApplicationListener

public class JndiManagerImpl
extends JndiAccessor
implements IJndiManager, ApplicationListener, InitializingBean


Field Summary
 
Fields inherited from class org.springframework.jndi.JndiAccessor
logger
 
Constructor Summary
JndiManagerImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroySessionContext(HttpSession session)
          Unbind objects related to the specific session.
protected  void initializePortalContext()
          Sets up the base sub contexts in the portal JNDI context.
 void initializeSessionContext(HttpSession session, String userId, String layoutId, Document userLayout)
          Create and bind objects to the portal context for a new user's session
 void onApplicationEvent(ApplicationEvent event)
           
 
Methods inherited from class org.springframework.jndi.JndiAccessor
getJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jasig.portal.jndi.IJndiManager
getJndiTemplate
 

Constructor Detail

JndiManagerImpl

public JndiManagerImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener

initializeSessionContext

public void initializeSessionContext(HttpSession session,
                                     String userId,
                                     String layoutId,
                                     Document userLayout)
Description copied from interface: IJndiManager
Create and bind objects to the portal context for a new user's session

Specified by:
initializeSessionContext in interface IJndiManager
Parameters:
session - The new session
userId - The user ID the session is for
layoutId - The layout ID for the user and session
userLayout - The layout document for the user and session

destroySessionContext

public void destroySessionContext(HttpSession session)
Description copied from interface: IJndiManager
Unbind objects related to the specific session.

Specified by:
destroySessionContext in interface IJndiManager

initializePortalContext

protected void initializePortalContext()
                                throws NamingException
Sets up the base sub contexts in the portal JNDI context.

Throws:
NamingException


Copyright © 2010 Jasig. All Rights Reserved.