public void renameGroup(String id, String oldName, String newName) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException { renameObject(DummyGroup.class, groups, id, oldName, newName); }
public void renamePrivilege(String id, String oldName, String newName) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException { renameObject(DummyPrivilege.class, privileges, id, oldName, newName); }
public void renameOrg(String id, String oldName, String newName) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException { renameObject(DummyOrg.class, orgs, id, oldName, newName); }
public void renameAccount(String id, String oldUsername, String newUsername) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, SchemaViolationException, ConflictException, InterruptedException { renameObject(DummyAccount.class, accounts, id, oldUsername, newUsername); for (DummyGroup group : groups.values()) { if (group.containsMember(oldUsername)) { group.removeMember(oldUsername); group.addMember(newUsername); } } }