Examples of Right


Examples of org.lealone.dbobject.Right

                throw DbException.get(ErrorCode.ROLE_ALREADY_GRANTED_1, grantedRole.getSQL());
            }
        }
        Database db = session.getDatabase();
        int id = getObjectId();
        Right right = new Right(db, id, grantee, grantedRole);
        db.addDatabaseObject(session, right);
        grantee.grantRole(grantedRole, right);
    }
View Full Code Here

Examples of org.lealone.dbobject.Right

        grantee.grantRole(grantedRole, right);
    }

    private void revokeRight() {
        for (Table table : tables) {
            Right right = grantee.getRightForTable(table);
            if (right == null) {
                continue;
            }
            int mask = right.getRightMask();
            int newRight = mask & ~rightMask;
            Database db = session.getDatabase();
            if (newRight == 0) {
                db.removeDatabaseObject(session, right);
            } else {
                right.setRightMask(newRight);
                db.update(session, right);
            }
        }
    }
View Full Code Here

Examples of org.lealone.dbobject.Right

            }
        }
    }

    private void revokeRole(Role grantedRole) {
        Right right = grantee.getRightForRole(grantedRole);
        if (right == null) {
            return;
        }
        Database db = session.getDatabase();
        db.removeDatabaseObject(session, right);
View Full Code Here

Examples of org.palo.viewapi.Right

    return checkPermission(userSession.getUser(), view, right);
  }
   
  public boolean checkPermission(String sessionId, int right) throws SessionExpiredException {
    AuthUser user = getLoggedInUser(sessionId);
    Right rr = null;
   
    switch (right) {
      case  0: rr = Right.NONE; break;
      case  1: rr = Right.READ; break;
      case  2: rr = Right.WRITE; break;
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.