oql.bind(repositoryId);
QueryResults results = oql.execute(Database.READONLY);
while (results.hasMore())
{
SmallAccessRightImpl smallAccessRight = (SmallAccessRightImpl)results.next();
AccessRight accessRight = getAccessRightWithId(smallAccessRight.getAccessRightId(), db);
accessRightList.add(accessRight);
}
results.close();