Package com.jalios.jcms.workspace
Class Workspace.TitleSelector
java.lang.Object
com.jalios.jcms.workspace.Workspace.TitleSelector
- All Implemented Interfaces:
DataSelector,Predicate<Data>
- Enclosing class:
Workspace
Select a set of workspace by their name.
- Since:
- jcms-5.7
- Author:
- Jean-Philippe Encausse
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTitleSelector(String text) TitleSelector(String text, boolean exactMatch) TitleSelector(String text, String lang) TitleSelector(String text, String lang, boolean exactMatch) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSelected(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, waitMethods inherited from interface com.jalios.jcms.DataSelector
test
-
Field Details
-
text
-
lang
-
exactMatch
protected boolean exactMatchif true, Workspace names should match exactly, else should be contained.- Since:
- jcms-7.1.3, jcms-8.0.0
-
-
Constructor Details
-
TitleSelector
-
TitleSelector
- 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
- 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
-
-
Method Details
-
isSelected
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.
-