Package org.exoplatform.onlyoffice.webui
Class AbstractOnlyofficeWebFilter
- java.lang.Object
-
- org.exoplatform.onlyoffice.webui.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 protectedAbstractOnlyofficeWebFilter()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>
booleancanAddLifecycle(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>
CgetLifecycle(List<org.exoplatform.web.application.ApplicationLifecycle> lifecycles, Class<C> lifecycleClass)Returns a lifecycle instance of given class from the list.
-
-
-
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 aListof lifecycles, weakly consistent regarding its answer.- Type Parameters:
C- the generic type- Parameters:
lifecycles- the lifecycles listlifecycleClass- the lifecycle class to add- Returns:
true, if can add,falseotherwise
-
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 aListof lifecycles, weakly consistent regarding its result.- Type Parameters:
C- the generic type- Parameters:
lifecycles- the lifecycles listlifecycleClass- the lifecycle class- Returns:
- the lifecycle instance or
nullif nothing found in the given list
-
-