Search in sources :

Example 1 with Shuttle

use of com.twinsoft.convertigo.beans.connectors.SiteClipperConnector.Shuttle 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();
}
Also used : ISiteClipperRequestCriteria(com.twinsoft.convertigo.beans.common.ISiteClipperRequestCriteria) Criteria(com.twinsoft.convertigo.beans.core.Criteria) ISiteClipperRequestCriteria(com.twinsoft.convertigo.beans.common.ISiteClipperRequestCriteria) Shuttle(com.twinsoft.convertigo.beans.connectors.SiteClipperConnector.Shuttle)

Aggregations

ISiteClipperRequestCriteria (com.twinsoft.convertigo.beans.common.ISiteClipperRequestCriteria)1 Shuttle (com.twinsoft.convertigo.beans.connectors.SiteClipperConnector.Shuttle)1 Criteria (com.twinsoft.convertigo.beans.core.Criteria)1