Package com.jalios.jcms.workspace
Class Workspace.TitleSelector
- java.lang.Object
-
- com.jalios.jcms.workspace.Workspace.TitleSelector
-
- All Implemented Interfaces:
DataSelector,java.util.function.Predicate<Data>
- Enclosing class:
- Workspace
public static class Workspace.TitleSelector extends java.lang.Object implements DataSelector
Select a set of workspace by their name.- Since:
- jcms-5.7
- Author:
- Jean-Philippe Encausse
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanexactMatchif true, Workspace names should match exactly, else should be contained.protected java.lang.Stringlangprotected java.lang.Stringtext
-
Constructor Summary
Constructors Constructor Description TitleSelector(java.lang.String text)TitleSelector(java.lang.String text, boolean exactMatch)TitleSelector(java.lang.String text, java.lang.String lang)TitleSelector(java.lang.String text, java.lang.String lang, boolean exactMatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSelected(Data data)Evaluates if a data must be selected or not.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jalios.jcms.DataSelector
test
-
-
-
-
Constructor Detail
-
TitleSelector
public TitleSelector(java.lang.String text)
-
TitleSelector
public TitleSelector(java.lang.String text, boolean exactMatch)- Parameters:
text- the text to searchexactMatch- if true, Workspace names should match exactly, else should be contained.- Since:
- jcms-7.1.3, jcms-8.0.0
-
TitleSelector
public TitleSelector(java.lang.String text, java.lang.String lang, boolean exactMatch)- Parameters:
text- the text to searchlang- the lang to useexactMatch- if true, Workspace names should match exactly, else should be contained.- Since:
- jcms-7.1.3, jcms-8.0.0
-
TitleSelector
public TitleSelector(java.lang.String text, java.lang.String lang)
-
-
Method Detail
-
isSelected
public boolean isSelected(Data data)
Description copied from interface:DataSelectorEvaluates if a data must be selected or not.- Specified by:
isSelectedin interfaceDataSelector- Parameters:
data- the data to evaluate.- Returns:
- true if the data is selected. False otherwise.
-
-