Examples of toInteger()


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

    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 =
        getMissingEnterpriseWorkspaceAncestors(client, id, volumeId);
View Full Code Here

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

      if ("overview".equals(action))
        displayActions.put(docSubType, "properties");
    }

    // Set the character encodings in the client factories if needed.
    int serverEncoding = serverInfo.toInteger("CharacterEncoding");
    if (serverEncoding == Client.CHARACTER_ENCODING_UTF8) {
      LOGGER.config("ENCODING: UTF-8");
      clientFactory.setEncoding("UTF-8");
      if (authenticationClientFactory != null)
        authenticationClientFactory.setEncoding("UTF-8");
View Full Code Here

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

    // the database type, and check the DTreeAncestors table (in
    // that order, because we need SA rights for the database type
    // queries, and we need the database type for the
    // DTreeAncestors queries).
    ClientValue userInfo = client.GetUserInfo(username);
    int privs = userInfo.toInteger("UserPrivileges");
    if ((privs & Client.PRIV_PERM_BYPASS) != Client.PRIV_PERM_BYPASS) {
      LOGGER.info("USER PRIVILEGES: " + privs);
      throw new ConfigurationException("User " + username +
          " does not have Livelink System Administration rights.",
          "missingSaRights", new String[] { username });
View Full Code Here

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

      int ownerId = recArray.toInteger(insRow, "UserID");
      ClientValue ownerInfo =
          client.GetUserOrGroupByIDNoThrow(ownerId);
      ClientValue objectRightsInfo = client.GetObjectRights(objectId);
      for (int i = 0; i < objectRightsInfo.size(); i++) {
        int userId = objectRightsInfo.toInteger(i, "RightID");
        int userPermissions = objectRightsInfo.toInteger(i, "Permissions");
        boolean canRead = ((userPermissions & Client.PERM_SEECONTENTS)
            == Client.PERM_SEECONTENTS);

        if (canRead) {
View Full Code Here

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

      ClientValue ownerInfo =
          client.GetUserOrGroupByIDNoThrow(ownerId);
      ClientValue objectRightsInfo = client.GetObjectRights(objectId);
      for (int i = 0; i < objectRightsInfo.size(); i++) {
        int userId = objectRightsInfo.toInteger(i, "RightID");
        int userPermissions = objectRightsInfo.toInteger(i, "Permissions");
        boolean canRead = ((userPermissions & Client.PERM_SEECONTENTS)
            == Client.PERM_SEECONTENTS);

        if (canRead) {
          getPrincipals(userId, ownerInfo, userPrincipals, groupPrincipals);
View Full Code Here

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

        ClientValue userInfo = client.GetUserOrGroupByIDNoThrow(userId);
        if (userInfo != null) {
          name = userInfo.toString("Name");
          namespace = getUserGroupNamespace(userInfo);
          if (!Strings.isNullOrEmpty(name)) {
            switch (userInfo.toInteger("Type")) {
              case Client.USER:
                userPrincipals.add(asPrincipalValue(name, namespace));
                break;
              case Client.GROUP:
                groupPrincipals.add(asPrincipalValue(name, namespace));
View Full Code Here

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

      ClientValue user = executeQuery(query, view, columns);

      if (user.size() > 0) {
        // Need to return a Assoc LLValue, whereas the above is a table.
        String name = user.toString(0, "Name");
        int type = user.toInteger(0, "Type");
        int groupId = user.toInteger(0, "GroupID");
        ClientValue userData = toAssoc(user.toString(0, "UserData"));
        return new MockClientValue(
            new String[] {"Name", "Type", "GroupID", "UserData"},
            new Object[] {name, type, groupId, userData});
View Full Code Here

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

      if (user.size() > 0) {
        // Need to return a Assoc LLValue, whereas the above is a table.
        String name = user.toString(0, "Name");
        int type = user.toInteger(0, "Type");
        int groupId = user.toInteger(0, "GroupID");
        ClientValue userData = toAssoc(user.toString(0, "UserData"));
        return new MockClientValue(
            new String[] {"Name", "Type", "GroupID", "UserData"},
            new Object[] {name, type, groupId, userData});
      } else {
View Full Code Here

Examples of com.naef.jnlua.LuaState.toInteger()

            // Call
            luaState.call(2, 1); // 2 arguments, 1 return

            // Get and print result
            int result = luaState.toInteger(1);
            luaState.pop(1); // Pop result
            System.out.println("According to Lua, 1 + 1 = " + result);
        } finally {
                luaState.close();
        }
View Full Code Here

Examples of com.opentext.api.LLValue.toInteger()

      if (users.GetCurrentUserID(id) != 0)
        throw new LapiException(session, LOGGER);
    } catch (RuntimeException e) {
      throw getLivelinkException(e);
    }
    return id.toInteger();
  }

  /** {@inheritDoc} */
  @Override
  public synchronized ClientValue GetCookieInfo()
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.