Package com.jalios.jcms
Class Group.WorkspaceSelector
java.lang.Object
com.jalios.jcms.Group.WorkspaceSelector
- All Implemented Interfaces:
DataSelector,Predicate<Data>
- Enclosing class:
Group
DataSelector selecting Groups based on their Workspace.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceSelector(String kindStr) Constructs a new Group.WorkspaceSelector (DataSelector of Group based on group's workspace). -
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
-
GLOBAL
public static final int GLOBAL- See Also:
-
LOCAL
public static final int LOCAL- See Also:
-
ALL
public static final int ALL- See Also:
-
WS
public static final int WS- See Also:
-
kind
protected int kind -
ws
-
-
Constructor Details
-
WorkspaceSelector
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 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.
-