Class AbstractOnlyofficeWebFilter

  • All Implemented Interfaces:
    org.exoplatform.web.filter.Filter
    Direct Known Subclasses:
    OnlyofficeEditorFilter

    public abstract class AbstractOnlyofficeWebFilter
    extends Object
    implements org.exoplatform.web.filter.Filter
    Created by The eXo Platform SAS.
    Version:
    $Id: AbstractOnlyofficeWebFilter.java 00000 Apr 27, 2019 pnedonosko $
    Author:
    Peter Nedonosko
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractOnlyofficeWebFilter()
      Instantiates a new abstract onlyoffice web filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <C extends org.exoplatform.web.application.ApplicationLifecycle>
      boolean
      canAddLifecycle​(List<org.exoplatform.web.application.ApplicationLifecycle> lifecycles, Class<C> lifecycleClass)
      Consult if we can add a new lifecycle of given class to the list.
      protected <C extends org.exoplatform.web.application.ApplicationLifecycle>
      C
      getLifecycle​(List<org.exoplatform.web.application.ApplicationLifecycle> lifecycles, Class<C> lifecycleClass)
      Returns a lifecycle instance of given class from the list.
      • Methods inherited from interface org.exoplatform.web.filter.Filter

        doFilter
    • Constructor Detail

      • AbstractOnlyofficeWebFilter

        protected AbstractOnlyofficeWebFilter()
        Instantiates a new abstract onlyoffice web filter.
    • Method Detail

      • canAddLifecycle

        protected <C extends org.exoplatform.web.application.ApplicationLifecycle> boolean canAddLifecycle​(List<org.exoplatform.web.application.ApplicationLifecycle> lifecycles,
                                                                                                           Class<C> lifecycleClass)
        Consult if we can add a new lifecycle of given class to the list. This method is not blocking and thread safe, but as result of working over a List of lifecycles, weakly consistent regarding its answer.
        Type Parameters:
        C - the generic type
        Parameters:
        lifecycles - the lifecycles list
        lifecycleClass - the lifecycle class to add
        Returns:
        true, if can add, false otherwise
      • getLifecycle

        protected <C extends org.exoplatform.web.application.ApplicationLifecycle> C getLifecycle​(List<org.exoplatform.web.application.ApplicationLifecycle> lifecycles,
                                                                                                  Class<C> lifecycleClass)
        Returns a lifecycle instance of given class from the list. This method is not blocking and thread safe, but as result of working over a List of lifecycles, weakly consistent regarding its result.
        Type Parameters:
        C - the generic type
        Parameters:
        lifecycles - the lifecycles list
        lifecycleClass - the lifecycle class
        Returns:
        the lifecycle instance or null if nothing found in the given list