Package org.apache.slide.common

Examples of org.apache.slide.common.Scope


    {
        // System.out.println (scope);
        topNode = new TokenizedScope (scope);
       
        while (stores.hasMoreElements()) {
            Scope configuredStore = (Scope)stores.nextElement();
            TokenizedScope tConfStore = new TokenizedScope (configuredStore);
            if (tConfStore.isChildOf (topNode) && tConfStore.isNotExcluded (excluded) ) {
                allQueryTreeNodes.add (configuredStore);
            }
        }
View Full Code Here


        // Find the qualifiying stuff from the registry.
        // Then we contentStore the scope of the found Data Source
        // within scope.
        store = null;
        while ((store == null) && (scopes.hasMoreElements())) {
            Scope courScope = scopes.nextScope();
            try {
                if (token == null) {
                    store = namespace.retrieveStore(courScope, null);
                } else {
                    store = namespace.retrieveStore(courScope, token.getCredentialsToken());
View Full Code Here

        Namespace namespace = token.getNamespace();
        Enumeration stores = namespace.enumerateScopes();
        this.slideUri = token.getSlideContext();
        this.topLevelQueryScope = queryScope;
        String slideScope = slideUri.getSlidePath(queryScope.getHref());
        Scope topScope = new Scope (slideScope);
       
        Set ex = queryScope.getExcludedScopes();
        int size = ex.size();
        Scope [] excludedScopes = new Scope [size] ;
        Iterator it = ex.iterator();
       
        for (int i = 0; i < size; i++) {
            String href = (String)it.next();
            excludedScopes [i] = new Scope (slideUri.getSlidePath(href));
        }
       
        this.queryTree = new QueryTree (stores, topScope, excludedScopes);
       
        it = queryTree.iterator();
       
        while (it.hasNext()) {
            Scope sScope = (Scope)it.next();
            // System.out.println("createEnvelope for scope " + sScope);
            BasicQueryImpl query = createSubQuery (namespace, sScope.toString(), token);
            subQueries.put (sScope, query);
        }
       
        topLevelQuery = (BasicQueryImpl) subQueries.get (topScope);
    }
View Full Code Here

       
        Iterator it = subQueries.keySet().iterator();
        Set scopesToRemove = new HashSet ();
        while (it.hasNext()) {

            Scope scope = (Scope)it.next();
            // System.out.println ("parseQueryElement for scope " + scope);
            QueryScope subQueryScope = calculateSubQueryScope (scope);
            if (subQueryScope.getDepth() >= 0) {
                BasicQueryImpl query = (BasicQueryImpl)subQueries.get (scope);
                query.parseQueryElement (basicSearchElement, propertyProvider, subQueryScope);
View Full Code Here

        }
       
       
       
        while (it.hasNext()) {
            Scope scope = (Scope)it.next();
           
            BasicQuery query = (BasicQuery)subQueries.get (scope);
            query.setScope (calculateSubQueryScope(scope));
            SearchQueryResult subResult = query.execute();
            result.add (subResult);
View Full Code Here

        Namespace namespace = token.getNamespace();
        Enumeration stores = namespace.enumerateScopes();
        this.slideUri = token.getSlideContext();
        this.topLevelQueryScope = queryScope;
        String slideScope = slideUri.getSlidePath(queryScope.getHref());
        Scope topScope = new Scope (slideScope);
       
        Set ex = queryScope.getExcludedScopes();
        int size = ex.size();
        Scope [] excludedScopes = new Scope [size] ;
        Iterator it = ex.iterator();
       
        for (int i = 0; i < size; i++) {
            String href = (String)it.next();
            excludedScopes [i] = new Scope (slideUri.getSlidePath(href));
        }
       
        this.queryTree = new QueryTree (stores, topScope, excludedScopes);
       
        it = queryTree.iterator();
       
        while (it.hasNext()) {
            Scope sScope = (Scope)it.next();
            // System.out.println("createEnvelope for scope " + sScope);
            BasicQueryImpl query = createSubQuery (namespace, sScope.toString(), token);
            subQueries.put (sScope, query);
        }
       
        topLevelQuery = (BasicQueryImpl) subQueries.get (topScope);
    }
View Full Code Here

       
        Iterator it = subQueries.keySet().iterator();
        Set scopesToRemove = new HashSet ();
        while (it.hasNext()) {

            Scope scope = (Scope)it.next();
            // System.out.println ("parseQueryElement for scope " + scope);
            QueryScope subQueryScope = calculateSubQueryScope (scope);
            if (subQueryScope.getDepth() >= 0) {
                BasicQueryImpl query = (BasicQueryImpl)subQueries.get (scope);
                query.parseQueryElement (basicSearchElement, propertyProvider, subQueryScope);
View Full Code Here

        }
       
       
       
        while (it.hasNext()) {
            Scope scope = (Scope)it.next();
           
            BasicQuery query = (BasicQuery)subQueries.get (scope);
            query.setScope (calculateSubQueryScope(scope));
            SearchQueryResult subResult = query.execute();
            result.add (subResult);
View Full Code Here

        // Find the qualifiying stuff from the registry.
        // Then we contentStore the scope of the found Data Source
        // within scope.
        store = null;
        while ((store == null) && (scopes.hasMoreElements())) {
            Scope courScope = scopes.nextScope();
            try {
                if (token == null) {
                    store = namespace.retrieveStore(courScope, null);
                } else {
                    store = namespace.retrieveStore(courScope, token.getCredentialsToken());
View Full Code Here

    {
        // System.out.println (scope);
        topNode = new TokenizedScope (scope);
       
        while (stores.hasMoreElements()) {
            Scope configuredStore = (Scope)stores.nextElement();
            TokenizedScope tConfStore = new TokenizedScope (configuredStore);
            if (tConfStore.isChildOf (topNode) && tConfStore.isNotExcluded (excluded) ) {
                allQueryTreeNodes.add (configuredStore);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.slide.common.Scope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.