com.jalios.jcms
Class Publication.PstatusSelector
java.lang.Object
com.jalios.jcms.Publication.PstatusSelector
- All Implemented Interfaces:
- DataSelector
- Enclosing class:
- Publication
public static class Publication.PstatusSelector
- extends Object
- implements DataSelector
PstatusSelector selects all the publications with a given pstatus.
- Since:
- jcms-2.1
Constructor Summary |
Publication.PstatusSelector(int pstatus)
Build a new PstatusSelector to select publications having the same pstatus
as the pstatus specified in this constructor. |
Publication.PstatusSelector(int pstatus,
int greater)
Build a new PstatusSelector to select publications according to their pstatus. |
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 |
pstatus
protected int pstatus
greater
protected int greater
Publication.PstatusSelector
public Publication.PstatusSelector(int pstatus,
int greater)
- Build a new PstatusSelector to select publications according to their pstatus.
- Parameters:
pstatus
- the reference pstatus to be used during comparisongreater
- an integer indicating the comparison to be performed :
-1
: to select publications with a pstatus lower than or equals to the reference pstatus
1
: to select publications with a pstatus greater than or equals to the reference pstatus
any other value
: to select publications with a pstatus equals to the reference pstatus
Publication.PstatusSelector
public Publication.PstatusSelector(int pstatus)
- Build a new PstatusSelector to select publications having the same pstatus
as the pstatus specified in this constructor.
- Parameters:
pstatus
- the pstatus value the publications must equals in order to be selected
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.