Class 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 boolean exactMatch
      if true, Workspace names should match exactly, else should be contained.
      protected java.lang.String lang  
      protected java.lang.String text  
    • 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
      boolean isSelected​(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 java.util.function.Predicate

        and, negate, or
    • Field Detail

      • text

        protected java.lang.String text
      • lang

        protected java.lang.String lang
      • exactMatch

        protected boolean exactMatch
        if true, Workspace names should match exactly, else should be contained.
        Since:
        jcms-7.1.3, jcms-8.0.0
    • Constructor Detail

      • TitleSelector

        public TitleSelector​(java.lang.String text)
      • TitleSelector

        public TitleSelector​(java.lang.String text,
                             boolean exactMatch)
        Parameters:
        text - the text to search
        exactMatch - 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 search
        lang - the lang to use
        exactMatch - 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: DataSelector
        Evaluates if a data must be selected or not.
        Specified by:
        isSelected in interface DataSelector
        Parameters:
        data - the data to evaluate.
        Returns:
        true if the data is selected. False otherwise.