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

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


          + "</AuthorizationQuery>\n"
          + "";

  private ConnectorQueries getConnectorQueriesByIdentity(AuthorizationParser p,
      AuthenticationIdentity identity) {
    ConnectorQueries result = null;
    for (AuthenticationIdentity i : p.getIdentities()) {
      String username = identity.getUsername();
      String password = identity.getPassword();
      String domain = identity.getDomain();
      if (AuthorizationParser.matchesIdentity(i, username, password, domain)) {
View Full Code Here


    return countConnectorsForIdentity(p, i);
  }

  private int countConnectorsForIdentity(AuthorizationParser p,
      AuthenticationIdentity i) {
    ConnectorQueries connectorQueries = getConnectorQueriesByIdentity(p, i);
    return (connectorQueries == null) ? 0 : connectorQueries.size();
  }
View Full Code Here

    return countUrlsForIdentityConnectorPair(p, i, connectorName);
  }

  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

  private void computeResultSet(AuthorizationParser authorizationParser) {
    for (AuthenticationIdentity identity: authorizationParser.getIdentities()) {
      NDC.pushAppend(identity.getUsername());
      try {
        ConnectorQueries queries =
            authorizationParser.getConnectorQueriesForIdentity(identity);
        runManagerQueries(identity, queries);
      } finally {
        NDC.pop();
      }
View Full Code Here

TOP

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

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.