Class WebconferencingSessionFilter

java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.exoplatform.webconferencing.jitsi.rest.filter.WebconferencingSessionFilter
All Implemented Interfaces:
jakarta.servlet.Filter, org.exoplatform.web.filter.Filter

public class WebconferencingSessionFilter extends org.exoplatform.container.web.AbstractFilter implements org.exoplatform.web.filter.Filter
The Class WebconferencingSessionFilter.
  • Field Summary

    Fields inherited from class org.exoplatform.container.web.AbstractFilter

    config, servletContextName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    checkAuthToken(jakarta.servlet.http.HttpServletRequest request)
    Valid auth token.
    void
    Destroy.
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
    Do filter.
    protected boolean
    Checks if is active user.
    protected org.exoplatform.services.security.Identity
    Find or create user identity.

    Methods inherited from class org.exoplatform.container.web.AbstractFilter

    afterInit, getContainer, getServletContext, init, requirePortalEnvironment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebconferencingSessionFilter

      public WebconferencingSessionFilter()
  • Method Details

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Do filter.
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Specified by:
      doFilter in interface org.exoplatform.web.filter.Filter
      Parameters:
      request - the request
      response - the response
      chain - the chain
      Throws:
      IOException - Signals that an I/O exception has occurred.
      jakarta.servlet.ServletException - the servlet exception
    • destroy

      public void destroy()
      Destroy.
      Specified by:
      destroy in interface jakarta.servlet.Filter
    • userIdentity

      protected org.exoplatform.services.security.Identity userIdentity(String userId)
      Find or create user identity.
      Parameters:
      userId - the user id
      Returns:
      the identity can be null if not found and cannot be created via current authenticator
    • isActiveUser

      protected boolean isActiveUser(String userId)
      Checks if is active user.
      Parameters:
      userId - the user id
      Returns:
      true, if is active user
    • checkAuthToken

      protected boolean checkAuthToken(jakarta.servlet.http.HttpServletRequest request)
      Valid auth token.
      Parameters:
      request - the request
      Returns:
      true, if successful