Examples of toInteger()


Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

    connector.login();
    Client client = connector.getClientFactory().createClient();
    ClientValue results = connector.getMissingEnterpriseWorkspaceAncestors(
        client, 2000, -2000);
    assertEquals(1, results.size());
    assertEquals(4104, results.toInteger(0, "DataID"));
  }

  public void testTraversalUsername_empty() throws RepositoryException {
    // This case is tested everywhere, but it's a useful baseline here.
    connector.login();
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

  private int getNodeId(String label, Client client, Object... parameters)
      throws RepositoryException {
    ClientValue results = sqlQueries.execute(client, null,
        "LivelinkAuthorizationManager.getExcludedVolumeId", parameters);
    if (results.size() > 0) {
      int volumeId = results.toInteger(0, "DataID");
      if (LOGGER.isLoggable(Level.FINEST))
        LOGGER.finest("EXCLUDING " + label + " VOLUME: " + volumeId);
      return volumeId;
    } else
      return 0;
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

    for (int i = 0; i < numCategories; i++) {
      ClientValue categoryId = categoryIds.toValue(i);

      // If this Category is not in the included list, or it is
      // explicitly mentioned in the excluded list, then skip it.
      Integer id = new Integer(categoryId.toInteger("ID"));
      if (((includedCategories != null) &&
              !includedCategories.contains(id)) ||
          ((excludedCategories != null) &&
              excludedCategories.contains(id)))
        continue;
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

        continue;

      // Make sure we know what type of categoryId
      // object we have. There are also Workflow
      // category attributes which can't be read here.
      int categoryType = categoryId.toInteger("Type");
      if (Client.CATEGORY_TYPE_LIBRARY != categoryType) {
        if (LOGGER.isLoggable(Level.FINER)) {
          LOGGER.finer("Unknown category implementation type " +
              categoryType + "; skipping");
        }
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

      int numAttributes = attrNames.size();
      for (int j = 0; j < numAttributes; j++) {
        String attrName = attrNames.toString(j);
        ClientValue attrInfo =
            client.AttrGetInfo(categoryVersion, attrName, null);
        int attrType = attrInfo.toInteger("Type");
        if (Client.ATTR_TYPE_SET == attrType) {
          getAttributeSetValues(nameHandler, props, id, categoryVersion,
              attrName);
        } else {
          getAttributeValue(nameHandler, props, id, categoryVersion,
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

        // The nodes do not exist.
        logOrphans(matchingId, objectId);
        return null;
      case 1:
        // The usual case.
        return parent.toInteger(0, "ParentID");
      case 2:
        // Both nodes exist, so one is a volume with a parent of -1.
        // Return the other one.
        if (parent.toInteger(0, "ParentID") != -1) {
          return parent.toInteger(0, "ParentID");
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

        // The usual case.
        return parent.toInteger(0, "ParentID");
      case 2:
        // Both nodes exist, so one is a volume with a parent of -1.
        // Return the other one.
        if (parent.toInteger(0, "ParentID") != -1) {
          return parent.toInteger(0, "ParentID");
        } else {
          return parent.toInteger(1, "ParentID");
        }
      default:
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

        return parent.toInteger(0, "ParentID");
      case 2:
        // Both nodes exist, so one is a volume with a parent of -1.
        // Return the other one.
        if (parent.toInteger(0, "ParentID") != -1) {
          return parent.toInteger(0, "ParentID");
        } else {
          return parent.toInteger(1, "ParentID");
        }
      default:
        throw new AssertionError(String.valueOf(parent.size()));
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

        // Both nodes exist, so one is a volume with a parent of -1.
        // Return the other one.
        if (parent.toInteger(0, "ParentID") != -1) {
          return parent.toInteger(0, "ParentID");
        } else {
          return parent.toInteger(1, "ParentID");
        }
      default:
        throw new AssertionError(String.valueOf(parent.size()));
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.otex.client.ClientValue.toInteger()

      throws RepositoryException {
    if (!LOGGER.isLoggable(Level.WARNING))
      return;

    ClientValue info = client.AccessEnterpriseWS();
    int id = info.toInteger("ID");
    int volumeId = info.toInteger("VolumeID");

    // FIXME: We don't want to log the exception as an error, but it
    // would be nice to be able to log it as a warning.
    ClientValue missing =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.