Package org.apache.derby.iapi.services.io

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()


            }
        }
        if( changed)
        {
            colsChanged[ COLUMNS_COL_NUM - 1] = true;
            if( existingColSet.anySetBit() < 0)
                return -1; // No column privileges left
            return 1; // A change, but there are some privileges left
        }
        return 0; // no change
    } // end of removePermissions
View Full Code Here


    if (privType == Authorizer.MIN_SELECT_PRIV && permittedColumns != null)
      return;

    FormatableBitSet unresolvedColumns = (FormatableBitSet)columns.clone();

    for (int i = unresolvedColumns.anySetBit();
       i >= 0;
       i = unresolvedColumns.anySetBit(i)) {

      if (permittedColumns != null && permittedColumns.get(i)) {
        // column i (zero-based here) accounted for:
View Full Code Here

    FormatableBitSet unresolvedColumns = (FormatableBitSet)columns.clone();

    for (int i = unresolvedColumns.anySetBit();
       i >= 0;
       i = unresolvedColumns.anySetBit(i)) {

      if (permittedColumns != null && permittedColumns.get(i)) {
        // column i (zero-based here) accounted for:
        unresolvedColumns.clear(i);
      }
View Full Code Here

        // column i (zero-based here) accounted for:
        unresolvedColumns.clear(i);
      }
    }

    if (unresolvedColumns.anySetBit() < 0) {
      // all ok
      return;
    }

    // If columns are still unauthorized, look to role closure for
View Full Code Here

          (activation.getTransactionController(),
           role, true /* inverse relation*/);

        String r;

        while (unresolvedColumns.anySetBit() >= 0 &&
             (r = rci.next()) != null ) {
          //The user does not have needed privilege directly
          //granted to it, so let's see if he has that privilege
          //available to him/her through his roles.
          permittedColumns = tryRole(lcc, dd,  forGrant, r);
View Full Code Here

          //Use the privileges obtained through the role to satisfy
          //the column level privileges we need. If all the remaining
          //column level privileges are satisfied through this role,
          //we will quit out of this while loop
          for(int i = unresolvedColumns.anySetBit();
            i >= 0;
            i = unresolvedColumns.anySetBit(i)) {

            if(permittedColumns != null && permittedColumns.get(i)) {
              unresolvedColumns.clear(i);
View Full Code Here

          //the column level privileges we need. If all the remaining
          //column level privileges are satisfied through this role,
          //we will quit out of this while loop
          for(int i = unresolvedColumns.anySetBit();
            i >= 0;
            i = unresolvedColumns.anySetBit(i)) {

            if(permittedColumns != null && permittedColumns.get(i)) {
              unresolvedColumns.clear(i);
            }
          }
View Full Code Here

                      currentUserId,
            getPrivName(),
            td.getSchemaName(),
            td.getName());

    int remains = unresolvedColumns.anySetBit();

    if (remains >= 0) {
      // No permission on this column.
      ColumnDescriptor cd = td.getColumnDescriptor(remains + 1);
View Full Code Here

    FormatableBitSet permittedColumns = colsPermsDesc.getColumns();
    FormatableBitSet unresolvedColumns = (FormatableBitSet)columns.clone();
    boolean result = true;

    if (permittedColumns != null) { // else none at user level
      for(int i = unresolvedColumns.anySetBit();
        i >= 0;
        i = unresolvedColumns.anySetBit(i)) {

        if(permittedColumns.get(i)) {
          unresolvedColumns.clear(i);
View Full Code Here

    boolean result = true;

    if (permittedColumns != null) { // else none at user level
      for(int i = unresolvedColumns.anySetBit();
        i >= 0;
        i = unresolvedColumns.anySetBit(i)) {

        if(permittedColumns.get(i)) {
          unresolvedColumns.clear(i);
        }
      }
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.