Class Group.WorkspaceSelector

  • All Implemented Interfaces:
    DataSelector, java.util.function.Predicate<Data>
    Enclosing class:
    Group

    public static class Group.WorkspaceSelector
    extends java.lang.Object
    implements DataSelector
    DataSelector selecting Groups based on their Workspace.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALL  
      static int GLOBAL  
      protected int kind  
      static int LOCAL  
      protected Workspace ws  
      static int WS  
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkspaceSelector​(java.lang.String kindStr)
      Constructs a new Group.WorkspaceSelector (DataSelector of Group based on group's workspace).
    • 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
    • Constructor Detail

      • WorkspaceSelector

        public WorkspaceSelector​(java.lang.String kindStr)
        Constructs a new Group.WorkspaceSelector (DataSelector of Group based on group's workspace).
        Parameters:
        kindStr - a string indicating the Group to select
        • null or empty string "" : to select all groups
        • a workspace id : to select groups in a specific workspace
        • "global" : to select global groups
        • "local" : to select groups in any workspace
        • any other string: to select groups without workspace
    • 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.