Package org.apache.derby.iapi.sql.dictionary

Examples of org.apache.derby.iapi.sql.dictionary.RoleClosureIterator


    // If not found in current role, get transitive
    // closure of roles granted to current role and
    // iterate over it to see if permission has
    // been granted to any of the roles the current
    // role inherits.
    RoleClosureIterator rci =
      dd.createRoleClosureIterator
      (activation.getTransactionController(),
       role, true /* inverse relation*/);

    String graphGrant;
    while (permDesc == null &&
         (graphGrant = rci.next()) != null) {
      permDesc =
        statPerm.getPermissionDescriptor
        (graphGrant, dd);
    }

View Full Code Here


        // circularity. If there exists a grant back to the role being
        // granted now, from one of the roles in the grant closure of
        // grantee, there is a circularity.

        // Via grant closure of grantee
        RoleClosureIterator rci =
            dd.createRoleClosureIterator(tc, grantee, false);

        String r;
        while ((r = rci.next()) != null) {
            if (role.equals(r)) {
                throw StandardException.newException
                    (SQLState.AUTH_ROLE_GRANT_CIRCULARITY,
                     role, grantee);
            }
View Full Code Here

    // If not found in current role, get transitive
    // closure of roles granted to current role and
    // iterate over it to see if permission has
    // been granted to any of the roles the current
    // role inherits.
    RoleClosureIterator rci =
      dd.createRoleClosureIterator
      (activation.getTransactionController(),
       role, true /* inverse relation*/);

    String graphGrant;
    while (permDesc == null &&
         (graphGrant = rci.next()) != null) {
      permDesc =
        statPerm.getPermissionDescriptor
        (graphGrant, dd);
    }

View Full Code Here

                    // invalidate dependent objects (constraints, triggers and
                    // views).  Note that until DERBY-1632 is fixed, we risk
                    // dropping objects not really dependent on this role, but
                    // one some other role just because it inherits from this
                    // one. See also DropRoleConstantAction.
                    RoleClosureIterator rci =
                        dd.createRoleClosureIterator
                        (activation.getTransactionController(),
                         role, false);

                    String r;
                    while ((r = rci.next()) != null) {
                        rdDef = dd.getRoleDefinitionDescriptor(r);

                        dd.getDependencyManager().invalidateFor
                            (rdDef, DependencyManager.REVOKE_ROLE, lcc);
                    }
View Full Code Here

    // If not found in current role, get transitive
    // closure of roles granted to current role and
    // iterate over it to see if permission has
    // been granted to any of the roles the current
    // role inherits.
    RoleClosureIterator rci =
      dd.createRoleClosureIterator
      (activation.getTransactionController(),
       role, true /* inverse relation*/);

    String graphGrant;
    while (permDesc == null &&
         (graphGrant = rci.next()) != null) {
      permDesc =
        statPerm.getPermissionDescriptor
        (graphGrant, dd);
    }

View Full Code Here

        // circularity. If there exists a grant back to the role being
        // granted now, from one of the roles in the grant closure of
        // grantee, there is a circularity.

        // Via grant closure of grantee
        RoleClosureIterator rci =
            dd.createRoleClosureIterator(tc, grantee, false);

        String r;
        while ((r = rci.next()) != null) {
            if (role.equals(r)) {
                throw StandardException.newException
                    (SQLState.AUTH_ROLE_GRANT_CIRCULARITY,
                     role, grantee);
            }
View Full Code Here

                    // invalidate dependent objects (constraints, triggers and
                    // views).  Note that until DERBY-1632 is fixed, we risk
                    // dropping objects not really dependent on this role, but
                    // one some other role just because it inherits from this
                    // one. See also DropRoleConstantAction.
                    RoleClosureIterator rci =
                        dd.createRoleClosureIterator
                        (activation.getTransactionController(),
                         role, false);

                    String r;
                    while ((r = rci.next()) != null) {
                        rdDef = dd.getRoleDefinitionDescriptor(r);

                        dd.getDependencyManager().invalidateFor
                            (rdDef, DependencyManager.REVOKE_ROLE, lcc);
                    }
View Full Code Here

    // If not found in current role, get transitive
    // closure of roles granted to current role and
    // iterate over it to see if permission has
    // been granted to any of the roles the current
    // role inherits.
    RoleClosureIterator rci =
      dd.createRoleClosureIterator
      (activation.getTransactionController(),
       role, true /* inverse relation*/);

    String graphGrant;
    while (permDesc == null &&
         (graphGrant = rci.next()) != null) {
      permDesc =
        statPerm.getPermissionDescriptor
        (graphGrant, dd);
    }

View Full Code Here

    // If not found in current role, get transitive
    // closure of roles granted to current role and
    // iterate over it to see if permission has
    // been granted to any of the roles the current
    // role inherits.
    RoleClosureIterator rci =
      dd.createRoleClosureIterator
      (activation.getTransactionController(),
       role, true /* inverse relation*/);

    String graphGrant;
    while (permDesc == null &&
         (graphGrant = rci.next()) != null) {
      permDesc =
        statPerm.getPermissionDescriptor
        (graphGrant, dd);
    }

View Full Code Here

                    // invalidate dependent objects (constraints, triggers and
                    // views).  Note that until DERBY-1632 is fixed, we risk
                    // dropping objects not really dependent on this role, but
                    // one some other role just because it inherits from this
                    // one. See also DropRoleConstantAction.
                    RoleClosureIterator rci =
                        dd.createRoleClosureIterator
                        (activation.getTransactionController(),
                         role, false);

                    String r;
                    while ((r = rci.next()) != null) {
                        rdDef = dd.getRoleDefinitionDescriptor(r);

                        dd.getDependencyManager().invalidateFor
                            (rdDef, DependencyManager.REVOKE_ROLE, lcc);
                    }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.dictionary.RoleClosureIterator

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.