/** * Allow this right. * @param right the right to allow. */ void allow(Right right) { allowed.add(right); denied.remove(right); }
/** * Deny this right. * @param right the right to deny. */ void deny(Right right) { denied.add(right); allowed.remove(right); }
Right right = Right.toRight(level); if (right != Right.ILLEGAL && (!disableEditRight || right != Right.EDIT)) { rights.add(right);