Examples of JahiaSessionExpirationException


Examples of org.jahia.exceptions.JahiaSessionExpirationException

    public void setUserGuest() throws JahiaException {
        HttpSession session = null;
        if (getRequest() != null) {
            session = getRequest().getSession(false);
            if (session == null) {
                throw new JahiaSessionExpirationException();
            }
        }

        super.setUserGuest();
View Full Code Here

Examples of org.jahia.exceptions.JahiaSessionExpirationException

    public void setUser(final JahiaUser user) throws JahiaException {
        HttpSession session = null;
        if (getRequest() != null) {
            session = getRequest().getSession(false);
            if (session == null) {
                throw new JahiaSessionExpirationException();
            }
        }

        super.setUser(user);
View Full Code Here

Examples of org.jahia.exceptions.JahiaSessionExpirationException

     */

    public int getJahiaRunningMode() throws JahiaSessionExpirationException {
        final HttpSession session = getRequest().getSession(false);
        if (session == null) {
            throw new JahiaSessionExpirationException();
        }
        final Integer I = (Integer) session
                .getAttribute(SESSION_JAHIA_RUNNING_MODE);
        if (I == null)
            return -1;
View Full Code Here

Examples of org.jahia.exceptions.JahiaSessionExpirationException

     */

    public final boolean isInAdminMode() throws JahiaSessionExpirationException {
        final HttpSession session = getRequest().getSession(false);
        if (session == null) {
            throw new JahiaSessionExpirationException();
        }
        final Integer i = (Integer) session.getAttribute(SESSION_JAHIA_RUNNING_MODE);
        return i != null && (i.intValue() == Jahia.ADMIN_MODE);
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaSessionExpirationException

     *          Throw this exception when the session is null. This happens usually when the session expired.
     */
    public String getSessionID() throws JahiaSessionExpirationException {
        final HttpSession session = getRequest().getSession(false);
        if (session == null) {
            throw new JahiaSessionExpirationException();
        }
        return session.getId();
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaSessionExpirationException

        if (getRequest() == null) {
            return null;
        }
        final HttpSession session = getRequest().getSession(false);
        if (session == null) {
            throw new JahiaSessionExpirationException();
        }
        return session;
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaSessionExpirationException

    public HttpSession getSession(final boolean create)
            throws JahiaSessionExpirationException {
        HttpSession session = getRequest().getSession(create);
        if (session == null)
            throw new JahiaSessionExpirationException();
        return session;
    }
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.