else { tmpChannel.setAllowedUserList(this.userAdministration.getUserEnum()); } this.channelAdministration.editChannel(oldName, tmpChannel);
else { this.channelAdministration.editChannel(oldName,newName,paramAllowedForGuest,this.userAdministration.getUserEnum()); }
    public void editChannel(String oldName, String newName, boolean paramAllowedForGuest, Vector allowedUserNames) {				if ((oldName != null) && (newName != null) && (newName.compareTo("") != 0)) {					if((this.channelAdministration.getFromChannelListByName(newName)==null) |						 (oldName.compareTo(newName)==0)){					//Foyer darf nicht verndert werden            if (oldName.compareTo(this.channelAdministration.FOYERNAME) != 0) {                Channel tmpChannel = new Channel(newName, paramAllowedForGuest);                Enumeration enum;                // Channel ist nicht fr Gste, benutze allowedUserNames                if (!paramAllowedForGuest) {                    if (allowedUserNames != null) {                        enum = allowedUserNames.elements();                    } else {                        enum = (                            new Vector()).elements();                    }                    // fge die berechtigten Benutzer hinzu                    while (enum.hasMoreElements()) {                        tmpChannel.addToAllowedUserList(this.userAdministration                            .getFromUserListByName((String)enum.nextElement()));                    }                }                // Channel ist fr Gste freigegeben, fge alle Benutzer hinzu                else {                    tmpChannel.setAllowedUserList(this.userAdministration.getUserEnum());                }                this.channelAdministration.editChannel(oldName, tmpChannel);								this.dataBaseIO.saveToDisk();						}            }        }