Package com.jalios.jcms
Class Group.WorkspaceSelector
- java.lang.Object
 - 
- com.jalios.jcms.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. 
- 
- 
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 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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
GLOBAL
public static final int GLOBAL
- See Also:
 - Constant Field Values
 
 
- 
LOCAL
public static final int LOCAL
- See Also:
 - Constant Field Values
 
 
- 
ALL
public static final int ALL
- See Also:
 - Constant Field Values
 
 
- 
WS
public static final int WS
- See Also:
 - Constant Field Values
 
 
- 
kind
protected int kind
 
- 
ws
protected Workspace ws
 
 - 
 
- 
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 selectnullor 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: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.
 
 
 - 
 
 -