Package com.google.enterprise.connector.servlet.AuthorizationParser

Examples of com.google.enterprise.connector.servlet.AuthorizationParser.QueryResources


  private int countUrlsForIdentityConnectorPair(AuthorizationParser p,
      AuthenticationIdentity i, String connectorName) {
    ConnectorQueries cq = getConnectorQueriesByIdentity(p, i);
    assertNotNull(cq);
    QueryResources queryUrls = cq.getQueryResources(connectorName);
    if (queryUrls == null) {
      return 0;
    }
    return queryUrls.size();
  }
View Full Code Here


      NDC.pushAppend(connectorName);
      try {
        // TODO [bmj]: It is conceivable that multiple URLs (resources) could
        // map to the same repository document (docid).  We should handle the
        // duplicates, somehow?
        QueryResources urlsByDocid = urlsByConnector.getQueryResources(connectorName);
        List<String> docidList = new ArrayList<String>(urlsByDocid.getDocids());
        Collection<AuthorizationResponse> answerSet =
            manager.authorizeDocids(connectorName, docidList, identity);
        if (answerSet != null) {
          accumulateQueryResults(answerSet, urlsByDocid);
        }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.servlet.AuthorizationParser.QueryResources

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.