Package org.jboss.seam.wiki

Examples of org.jboss.seam.wiki.WikiInit


    public void onLogin() {

        // Store the regular session timeout value, so we can set it back later on logout
        int regularSessionTimeout = ServletContexts.getInstance().getRequest().getSession().getMaxInactiveInterval();
        Contexts.getSessionContext().set(REGULAR_SESSION_MAX_INACTIVE_SECONDS, regularSessionTimeout);
        WikiInit init = (WikiInit)Component.getInstance(WikiInit.class);
        if (init.getAuthenticatedSessionTimeoutMinutes() != 0) {
            log.debug("setting timeout of authenticated user session to minutes: " + init.getAuthenticatedSessionTimeoutMinutes());
            ServletContexts.getInstance().getRequest().getSession().setMaxInactiveInterval(
                init.getAuthenticatedSessionTimeoutMinutes()*60
            );
        }

        // Prepare redirect stuff
        if (documentHome != null && documentHome.isManaged()) {
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.WikiInit

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.