use of com.twinsoft.convertigo.beans.common.ISiteClipperRequestCriteria in project convertigo by convertigo.
the class SiteClipperScreenClass method getNumberOfLocalCriterias.
@Override
public int getNumberOfLocalCriterias() {
// If we are in REQUEST mode, return the number of request criteria.
Shuttle shuttle = getConnector().getShuttle();
if (shuttle != null && shuttle.getProcessState() == ProcessState.request) {
List<Criteria> localCriteria = getLocalCriterias();
int nRequestLocalCriteria = 0;
for (Criteria criteria : localCriteria) {
if (criteria instanceof ISiteClipperRequestCriteria)
nRequestLocalCriteria++;
}
return nRequestLocalCriteria;
}
// return the total number of local criteria.
return super.getNumberOfLocalCriterias();
}
Aggregations