com.jalios.jcms
Class Group.WorkspaceSelector

java.lang.Object
  extended by com.jalios.jcms.Group.WorkspaceSelector
All Implemented Interfaces:
DataSelector
Enclosing class:
Group

public static class Group.WorkspaceSelector
extends Object
implements DataSelector

DataSelector selecting Groups based on their Workspace.


Field Summary
static int ALL
           
static int GLOBAL
           
protected  int kind
           
static int LOCAL
           
protected  Workspace ws
           
static int WS
           
 
Fields inherited from interface com.jalios.jcms.DataSelector
REVISION
 
Constructor Summary
Group.WorkspaceSelector(String kindStr)
          Constructs a new Group.WorkspaceSelector (DataSelector of Group based on group's workspace).
 
Method Summary
 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
 

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

Group.WorkspaceSelector

public Group.WorkspaceSelector(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
  • "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.


Copyright © 2001-2010 Jalios SA. All Rights Reserved.